Install CUDA 2.2 on Fedora11 x86_64.
There are some errors during compiling:
make[1]: Entering directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/dct8x8'
/usr/local/cuda/bin/../include/math_functions.h:404: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:409: 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:434: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
make[1]: *** [obj/release/dct8x8.cu.o] Error 255
make[1]: Leaving directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/dct8x8'
make: *** [projects/dct8x8/Makefile.ph_build] Error 2
Solution:
Edit /usr/local/cuda/include/math_functions.h, comment line 404, 409, and 434.
Another error:
make -C projects/threadMigration/
make[1]: Entering directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/threadMigration'
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
make[1]: *** [../../bin/linux/release/threadMigration] Error 1
make[1]: Leaving directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/threadMigration'
make: *** [projects/threadMigration/Makefile.ph_build] Error 2
Solution:
Execute the command by root:
ln -s /usr/lib64/nvidia/libcuda.so /usr/lib64/libcuda.so
make[1]: Entering directory `/home/frank/NVIDIA_CUDA_SDK/projects/simpleTextureDrv'
simpleTextureDrv.cpp:61: warning: deprecated conversion from string constant to ‘char*’
simpleTextureDrv.cpp:62: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/features.h:376,
from /usr/local/cuda/bin/../include/host_config.h:68,
from /usr/local/cuda/bin/../include/cuda_runtime.h:45,
from <command-line>:0:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[1]: *** [data/simpleTexture_kernel.cubin] Error 255
make[1]: Leaving directory `/home/frank/NVIDIA_CUDA_SDK/projects/simpleTextureDrv'
make: *** [projects/simpleTextureDrv/Makefile.ph_build] Error 2
Solution:
Install glibc-devel(i586)