为GPGPU构建模拟器时出现编译器错误

时间:2013-08-31 08:59:30

标签: c++ gcc makefile ubuntu-10.04

当我在命令行中使用make命令构建模拟器时,它在开始时正常工作,最后导致以下结果

make -C ./libcuda/ depend
make[1]: Entering directory `/home/sai/gpgpu-sim/v3.x/libcuda'
Makefile:140: Makefile.makedepend: No such file or directory
touch Makefile.makedepend
makedepend -fMakefile.makedepend -p../build/4000/release/libcuda/ cuda_runtime_api.cc 2> /dev/null
make[1]: `depend' is up to date.
make[1]: Leaving directory `/home/sai/gpgpu-sim/v3.x/libcuda'
make -C ./libcuda/
make[1]: Entering directory `/home/sai/gpgpu-sim/v3.x/libcuda'
touch Makefile.makedepend
makedepend -fMakefile.makedepend -p../build/4000/release/libcuda/ cuda_runtime_api.cc 2> /dev/null
g++  -std=c++0x -O3 -g -Wall -Wno-unused-function -Wno-sign-compare -fPIC  -DCUDART_VERSION=4000 -I./ -I/usr/local/cuda/include  -c cuda_runtime_api.cc -o ../build/4000/release/libcuda/cuda_runtime_api.o
cuda_runtime_api.cc: In function ‘void extract_code_using_cuobjdump()’:
cuda_runtime_api.cc:1306: warning: ignoring return value of ‘int system(const char*)’,declared with attribute warn_unused_result
cuda_runtime_api.cc: In function ‘char* readfile(std::string)’:
cuda_runtime_api.cc:1408: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
cuda_runtime_api.cc: In function ‘void** __cudaRegisterFatBinary(void*)’:
cuda_runtime_api.cc:1686: internal compiler error: **in gen_type_die_with_usage, at dwarf2out.c:14767
Please submit a full bug report,**
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make[1]: *** [../build/4000/release/libcuda/cuda_runtime_api.o] Error 1
make[1]: Leaving directory `/home/sai/gpgpu-sim/v3.x/libcuda'
make: *** [cudalib] Error 2

这是gcc编译器中的问题,我在我的Ubuntu 10.04.3上使用gcc 4.4或其他东西。 我现在该怎么办

1 个答案:

答案 0 :(得分:0)

这是gcc 4.4.1编译器中的回归。您应该更新您的Ubuntu系统以修复它,或使用优于4.4.5的版本。精确版本(12.04)包括gcc的修补版本。

有关详细信息,请参阅this bug report