-1

当我通过命令行中的 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。我现在该怎么办

4

1 回答 1

0

这是 gcc 4.4.1 编译器中的回归。你应该更新你的 Ubuntu 系统来修复它,或者使用高于 4.4.5 的版本。准确的版本(12.04)包括一个补丁版本的 gcc。

有关详细信息,请参阅此错误报告

于 2013-09-01T15:16:52.117 回答