我将在 Gem5-gpu 模拟器上编译 Rodinia 基准测试,当我让它抱怨 gcc-4.4 并给我以下错误:
make gem5-fusion
make -f Makefile.gem5-fusion
make[1]: Entering directory '/home/hodjat91/Desktop/gem5-gpu/benchmarks/rodinia/backprop'
gcc-4.4 -DOUTPUT -O3 -I../../../gem5/util/m5 -I../../libcuda -I/usr/local/cuda//include -I/home/hodjat91/NVIDIA_GPU_Computing_SDK/C/common/inc/ -L/home/hodjat91/NVIDIA_GPU_Computing_SDK/C/lib -g -c facetrain.c -o facetrain.c_o
make[1]: gcc-4.4: Command not found
../common/common.mk:139: recipe for target 'facetrain.c_o' failed
make[1]: *** [facetrain.c_o] Error 127
make[1]: Leaving directory '/home/hodjat91/Desktop/gem5-gpu/benchmarks/rodinia/backprop'
Makefile:8: recipe for target 'gem5-fusion' failed
make: *** [gem5-fusion] Error 2
我的系统上有 gcc 5.3。
谢谢
答案1
获取 g++-4.4 / gcc-4.4 :gedit /etc/apt/sources.list
然后在文件中添加两行新行:
deb [URL] trusty main universe
deb [URL] trusty-updates main universe
我的例子:
deb http://dk.archive.ubuntu.com/ubuntu/ trusty main universe
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main universe
运行sudo apt-get update
,就可以安装 gcc-4.4 :sudo apt-get install g++-4.4