I am shifting to Linux from windows after a long gap. I installed driver, CUDA SDK and Tool kit 2.3. nvcc is working fine but I am facing following errors when I make.
make[1]: *** [obj/release/cutil.cpp.o] Error 1
make: *** [lib/libcutil.so] Error 2
Can anyone tell me why I am getting these errors. The detail is given below.
Thanks in advance,
Heshsham
[root@Heshsham C]# pwd
/root/NVIDIA_GPU_Computing_SDK/C
[root@Heshsham C]# ls
bin common doc lib Makefile releaseNotesData ReleaseNotes.html src tools
[root@Heshsham C]# make
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/common' src/cutil.cpp:29:27: error: builtin_types.h: No such file or directory In file included from ./../common/inc/stopwatch.h:18, from src/cutil.cpp:34: ./../common/inc/stopwatch_base.h:56: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_base.h:60: warning: type qualifiers ignored on function return type In file included from ./../common/inc/stopwatch_base.h:72, from ./../common/inc/stopwatch.h:18, from src/cutil.cpp:34: ./../common/inc/stopwatch_base.inl:67: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_base.inl:78: warning: type qualifiers ignored on function return type In file included from ./../common/inc/stopwatch.h:25, from src/cutil.cpp:34: ./../common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type In file included from src/cutil.cpp:34: ./../common/inc/stopwatch.h:35: warning: type qualifiers ignored on function return type In file included from src/cutil.cpp:35: ./../common/inc/bank_checker.h:34: warning: type qualifiers ignored on function return type ./../common/inc/bank_checker.h:220: warning: type qualifiers ignored on function return type make[1]: *** [obj/release/cutil.cpp.o] Error 1 make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/common’
make: *** [lib/libcutil.so] Error 2
I doubt is was the same error, although it might have looked similar. Ubuntu 9.10 ships with gcc-4.4, which is unsupported and the c++ compilers produces a number of errors when processing CUDA 2.3 include files.
Ubuntu 9.04 includes gcc-4.3 and, as you say, it is supported and works without incident. I am, however, willing to be that in both cases you installed the toolkit in the default place (ie. /usr/local/cuda) which is why your errors are not the same as this problem.
Shall I change it to /usr/local/cuda/cuda/bin or /usr/local/cuda/cuda? Actually I tried both ways and got the errors. I am providing errors in both cases. Also do I need to make such changes of path anywhere else in the common.mk or there is only one place where I need to make such changes? Also it is clear from the output that not all SDK codes are being compiled, although there are many sdk code in my case it is compiling only some of the examples.