Problems compiling GPU Computing SDK Code Samples

So i installed twice this package but when i tried to compile it a third time on a third computer, i get this error:


make -C src/simpleSurfaceWrite/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/simpleSurfaceWrite' gcc: No such file or directory make[1]: *** [obj/x86_64/release/simpleSurfaceWrite.cu_20.o] Error 1 make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/simpleSurfaceWrite’
make: *** [src/simpleSurfaceWrite/Makefile.ph_build] Error 2

mm… help? im pretty sure i did the same things i had done on the 2 previous compilations…

So i installed twice this package but when i tried to compile it a third time on a third computer, i get this error:


make -C src/simpleSurfaceWrite/
make[1]: Entering directory /root/NVIDIA_GPU_Computing_SDK/C/src/simpleSurfaceWrite' gcc: No such file or directory make[1]: *** [obj/x86_64/release/simpleSurfaceWrite.cu_20.o] Error 1 make[1]: Leaving directory /root/NVIDIA_GPU_Computing_SDK/C/src/simpleSurfaceWrite’
make: *** [src/simpleSurfaceWrite/Makefile.ph_build] Error 2

mm… help? im pretty sure i did the same things i had done on the 2 previous compilations…

ah ! I am having the exact issue on my fedora 14 64 bit machine. Cuda toolkit installation went well though. is appericiate any help in this regard.

make[1]: Entering directory `/home/testuser/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: g++: Command not found

make[1]: *** [obj/x86_64/release/bank_checker.cpp.o] Error 127

make[1]: Leaving directory `/home/testuser/NVIDIA_GPU_Computing_SDK/C/common’

make: *** [lib/libcutil.so] Error 2

what does

which g++

show?

Hi,

.

I resolved the g++ issue by installing g++ via yum. g++ (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4). After this some files are created in /bin/linux/release, however make still complains as :

In file included from src/bank_checker.cpp:15:0:

./…/common/inc/bank_checker.h:34:41: warning: type qualifiers ignored on function return type

./…/common/inc/bank_checker.h:220:39: warning: type qualifiers ignored on function return type

src/bank_checker.cpp:57:24: warning: type qualifiers ignored on function return type

src/bank_checker.cpp:259:12: warning: type qualifiers ignored on function return type

In file included from ./…/common/inc/stopwatch.h:18:0,

             from src/cutil.cpp:33:

./…/common/inc/stopwatch_base.h:56:34: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_base.h:60:41: warning: type qualifiers ignored on function return type

In file included from ./…/common/inc/stopwatch_base.h:72:0,

             from ./../common/inc/stopwatch.h:18,

             from src/cutil.cpp:33:

./…/common/inc/stopwatch_base.inl:67:36: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_base.inl:78:43: warning: type qualifiers ignored on function return type

In file included from ./…/common/inc/stopwatch.h:25:0,

             from src/cutil.cpp:33:

./…/common/inc/stopwatch_linux.h:46:34: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:50:41: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:126:27: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:143:34: warning: type qualifiers ignored on function return type

In file included from src/cutil.cpp:33:0:

./…/common/inc/stopwatch.h:35:27: warning: type qualifiers ignored on function return type

In file included from src/cutil.cpp:34:0:

./…/common/inc/bank_checker.h:34:41: warning: type qualifiers ignored on function return type

./…/common/inc/bank_checker.h:220:39: warning: type qualifiers ignored on function return type

In file included from ./…/common/inc/stopwatch.h:18:0,

             from src/stopwatch.cpp:17:

./…/common/inc/stopwatch_base.h:56:34: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_base.h:60:41: warning: type qualifiers ignored on function return type

In file included from ./…/common/inc/stopwatch_base.h:72:0,

             from ./../common/inc/stopwatch.h:18,

             from src/stopwatch.cpp:17:

./…/common/inc/stopwatch_base.inl:67:36: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_base.inl:78:43: warning: type qualifiers ignored on function return type

In file included from ./…/common/inc/stopwatch.h:25:0,

             from src/stopwatch.cpp:17:

./…/common/inc/stopwatch_linux.h:46:34: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:50:41: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:126:27: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:143:34: warning: type qualifiers ignored on function return type

In file included from src/stopwatch.cpp:17:0:

./…/common/inc/stopwatch.h:35:27: warning: type qualifiers ignored on function return type

src/stopwatch.cpp:71:12: warning: type qualifiers ignored on function return type

In file included from src/stopwatch_linux.cpp:15:0:

./…/common/inc/stopwatch_linux.h:46:34: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:50:41: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:126:27: warning: type qualifiers ignored on function return type

./…/common/inc/stopwatch_linux.h:143:34: warning: type qualifiers ignored on function return type

a - obj/x86_64/release/bank_checker.cpp.o

a - obj/x86_64/release/cmd_arg_reader.cpp.o

a - obj/x86_64/release/cutil.cpp.o

a - obj/x86_64/release/stopwatch.cpp.o

a - obj/x86_64/release/stopwatch_linux.cpp.o

a - obj/x86_64/release/multithreading.cpp.o

make[1]: Leaving directory `/root/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Entering directory `/root/NVIDIA_GPU_Computing_SDK/C/common’

a - obj/x86_64/release/paramgl.cpp.o

a - obj/x86_64/release/param.cpp.o

make[1]: Leaving directory `/root/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Entering directory `/root/NVIDIA_GPU_Computing_SDK/C/common’

a - obj/x86_64/release/rendercheck_gl.cpp.o

make[1]: Leaving directory `/root/NVIDIA_GPU_Computing_SDK/C/common’

make[1]: Entering directory `/root/NVIDIA_GPU_Computing_SDK/shared’

a - obj/x86_64/release/shrUtils.cpp.o

a - obj/x86_64/release/rendercheckGL.cpp.o

a - obj/x86_64/release/cmd_arg_reader.cpp.o

make[1]: Leaving directory `/root/NVIDIA_GPU_Computing_SDK/shared’

make -C src/mergeSort/

make[1]: Entering directory `/root/NVIDIA_GPU_Computing_SDK/C/src/mergeSort’

mergeSort_host.cpp: In function ‘void mergeRanksAndIndices(uint*, uint*, uint, uint)’:

mergeSort_host.cpp:137:20: warning: unused variable ‘lenA’

make[1]: Leaving directory `/root/NVIDIA_GPU_Computing_SDK/C/src/mergeSort’

make -C src/fluidsGL/

make[1]: Entering directory `/root/NVIDIA_GPU_Computing_SDK/C/src/fluidsGL’

fluidsGL.cu:28:27: fatal error: X11/Xlib.h: No such file or directory

compilation terminated.

make[1]: *** [obj/x86_64/release/fluidsGL.cu.o] Error 1

make[1]: Leaving directory `/root/NVIDIA_GPU_Computing_SDK/C/src/fluidsGL’

make: *** [src/fluidsGL/Makefile.ph_build] Error 2

any help would be appericiated

MAdal

fluidsGL.cu:28:27: fatal error: X11/Xlib.h: No such file or directory

is the relevant error. It is telling you that the X11 development headers aren’t installed in the same way that nvcc was telling that you had no c++ compiler installed. If you learn to read the error messages, the solutions to these sort of problems will become self-evident.