I’m trying to set up CUDA 2.3 and Matlab ,I followed the steps and I get these errors.
cuda@avalon:~/NVIDIA_GPU_Computing_SDK/C$ make
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make -C src/smokeParticles/
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/src/smokeParticles'
/usr/bin/ld: cannot find -lXmu
collect2: ld returned 1 exit status
make[1]: *** [../../bin/linux/release/smokeParticles] Error 1
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/src/smokeParticles'
make: *** [src/smokeParticles/Makefile.ph_build] Error 2
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: g++: No se encontró el programa
make[1]: *** [obj/release/bank_checker.cpp.o] Error 127
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make: *** [lib/libcutil.so] Error 2
I’ve a new problem with installation of CUDA 2.3 for Linux (Ubuntu 9.10) and i use gcc version 4.4.1 and g++ version 4.3.4
this is the result when i use make make verbose=1
cuda@avalon:~/NVIDIA_GPU_Computing_SDK/C$ make verbose=1
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
mkdir -p ./../lib
mkdir -p obj/release
mkdir -p ./../lib
ar rucv ./../lib/libcutil.a obj/release/bank_checker.cpp.o obj/release/cmd_arg_reader.cpp.o obj/release/cutil.cpp.o obj/release/stopwatch.cpp.o obj/release/stopwatch_linux.cpp.o obj/release/multithreading.cpp.o
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
mkdir -p ./../lib
mkdir -p obj/release
mkdir -p ./../lib
ar rucv ./../lib/libparamgl.a obj/release/paramgl.cpp.o obj/release/param.cpp.o
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
mkdir -p ./../lib
mkdir -p obj/release
mkdir -p ./../lib
ar rucv ./../lib/librendercheckgl.a obj/release/rendercheck_gl.cpp.o
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/common'
make -C src/clock/
make[1]: se ingresa al directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/src/clock'
mkdir -p ../../lib
mkdir -p obj/release
mkdir -p ../../bin/linux/release
/usr/local/cuda/bin/nvcc --compiler-options -fno-strict-aliasing -I. -I/usr/local/cuda/include -I../../common/inc -DUNIX -O2 -o obj/release/clock.cu.o -c clock.cu
/usr/local/cuda/bin/../include/math_functions.h:412: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:417: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
/usr/include/bits/mathinline.h:36: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:42: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:48: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:442: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
clock.cu: In function ‘int main(int, char**)’:
clock.cu:96: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘clock_t’
make[1]: *** [obj/release/clock.cu.o] Error 255
make[1]: se sale del directorio `/home/cuda/NVIDIA_GPU_Computing_SDK/C/src/clock'
make: *** [src/clock/Makefile.ph_build] Error 2
I had some similar problems on Ubuntu 9.10 and sdk 3.0, but I think the solution is the same as in your case: use older “gcc” and “g++” compilers to avoid the strict policies of the new 4.4 version:
sudo apt-get install gcc-4.1 g++-4.1
And then force nvcc to use it: modify file “$YOUR_SDK_DIR/C/common/common.mk”