CUDA SDK compilation error on Fedora 11

Hi everyone,

I’m trying to set up CUDA on my desktop pc, the configuration of which is as follows: Intel Core i7 920 CPU, 3 GB DDR3 SDRAM, nVidia GeForce GTX295 GPU.

I am using the PAE kernel suitably downgraded to allow the nvidia driver to work (Fedora 11: X Windows configuration gets messed up after reboot (X server crashing) - Page 2)

[root@farpoint ~]# uname -r

2.6.29.6-217.2.3.fc11.i686.PAE

The nvidia driver is working fine…

[root@farpoint ~]# rpm -qa |grep nvidia

nvidia-x11-drv-190.18-1.fc11.i586

and I’ve installed the cuda toolkit, but when I run make for the SDK, I get an error which I’ve been unable to fix:

[root@farpoint C]# pwd

/opt/NVIDIA_GPU_Computing_SDK/C

[root@farpoint C]# make

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make -C src/MonteCarloMultiGPU/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'

/usr/local/cuda/bin/../include/math_functions.h:71: error: inline function ‘double fabs(double)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:73: error: inline function ‘float fabsf(float)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:167: error: inline function ‘double floor(double)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:169: error: inline function ‘float floorf(float)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:257: error: inline function ‘long int lrint(double)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:259: error: inline function ‘long int lrintf(float)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:262: error: inline function ‘long long int llrint(double)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:264: error: inline function ‘long long int llrintf(float)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:272: error: inline function ‘double ceil(double)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:274: error: inline function ‘float ceilf(float)’ cannot be declared weak

/usr/local/cuda/bin/../include/math_functions.h:408: error: inline function ‘int __finite(double)’ cannot be declared weak

/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:179: error: inline function ‘double ceil(double)’ cannot be declared weak

/usr/include/bits/mathcalls.h:182: error: inline function ‘double fabs(double)’ cannot be declared weak

/usr/include/bits/mathcalls.h:185: error: inline function ‘double floor(double)’ cannot be declared weak

/usr/include/bits/mathcalls.h:196: error: inline function ‘int __finite(double)’ cannot be declared weak

/usr/include/bits/mathcalls.h:326: error: inline function ‘long int lrint(double)’ cannot be declared weak

/usr/include/bits/mathcalls.h:327: error: inline function ‘long long int llrint(double)’ 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:179: error: inline function ‘float ceilf(float)’ cannot be declared weak

/usr/include/bits/mathcalls.h:182: error: inline function ‘float fabsf(float)’ cannot be declared weak

/usr/include/bits/mathcalls.h:185: error: inline function ‘float floorf(float)’ cannot be declared weak

/usr/include/bits/mathcalls.h:326: error: inline function ‘long int lrintf(float)’ cannot be declared weak

/usr/include/bits/mathcalls.h:327: error: inline function ‘long long int llrintf(float)’ 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:128: error: inline function ‘int __signbitf(float)’ cannot be declared weak

/usr/include/bits/mathinline.h:134: error: inline function ‘int __signbit(double)’ cannot be declared weak

/usr/include/bits/mathinline.h:140: error: inline function ‘int __signbitl(long double)’ cannot be declared weak

/usr/include/bits/mathinline.h:473: error: inline function ‘double fabs(double)’ cannot be declared weak

/usr/include/bits/mathinline.h:475: error: inline function ‘float fabsf(float)’ cannot be declared weak

/usr/include/bits/mathinline.h:530: error: inline function ‘double floor(double)’ cannot be declared weak

/usr/include/bits/mathinline.h:530: error: inline function ‘float floorf(float)’ cannot be declared weak

/usr/include/bits/mathinline.h:548: error: inline function ‘double ceil(double)’ cannot be declared weak

/usr/include/bits/mathinline.h:548: error: inline function ‘float ceilf(float)’ cannot be declared weak

/usr/include/bits/mathinline.h:668: error: inline function ‘long int lrintf(float)’ cannot be declared weak

/usr/include/bits/mathinline.h:673: error: inline function ‘long int lrint(double)’ cannot be declared weak

/usr/include/bits/mathinline.h:691: error: inline function ‘long long int llrintf(float)’ cannot be declared weak

/usr/include/bits/mathinline.h:696: error: inline function ‘long long int llrint(double)’ cannot be declared weak

/usr/include/bits/mathinline.h:728: error: inline function ‘int __finite(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

make[1]: *** [obj/release/MonteCarlo_SM10.cu_sm_10.o] Error 255

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'

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

[root@farpoint C]#

Google search didn’t reveal anything useful, so I decided I’d post it here. I’d appreciate any suggestions and advice to help me fix this.

Thanks in advance.

Cheers!

Vivek

This is the issue of CUDA with gcc 4.4.0

How does one solve it?

Anyone?

You will have to install gcc 4.3.

I got two ways on FC11:

  • work-around for gcc 4.4.0

http://forums.nvidia.com/index.php?showtopic=104525

  • or install compat-gcc-34 and g++34

http://forums.nvidia.com/index.php?showtopic=104346

both works.

Highman, first of all, thanks for the reply.

I added the relevant flag to common.mk and ran make. Here is the output:

[root@farpoint C]# make clean

make -C src/MonteCarloMultiGPU/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'

make -C src/asyncAPI/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/asyncAPI'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/asyncAPI'

make -C src/simpleGL/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleGL'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleGL'

make -C src/dwtHaar1D/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dwtHaar1D'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dwtHaar1D'

make -C src/eigenvalues/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/eigenvalues'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/eigenvalues'

make -C src/SobolQRNG/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/SobolQRNG'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/SobolQRNG'

make -C src/simpleVoteIntrinsics/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleVoteIntrinsics'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleVoteIntrinsics'

make -C src/matrixMulDynlinkJIT/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDynlinkJIT'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDynlinkJIT'

make -C src/simpleCUFFT/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleCUFFT'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleCUFFT'

make -C src/MersenneTwister/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MersenneTwister'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MersenneTwister'

make -C src/transpose/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/transpose'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/transpose'

make -C src/sortingNetworks/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks'

make -C src/recursiveGaussian/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/recursiveGaussian'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/recursiveGaussian'

make -C src/fastWalshTransform/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/fastWalshTransform'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/fastWalshTransform'

make -C src/convolutionFFT2D/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionFFT2D'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionFFT2D'

make -C src/bandwidthTest/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/bandwidthTest'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/bandwidthTest'

make -C src/matrixMul/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMul'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMul'

make -C src/deviceQueryDrv/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/deviceQueryDrv'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/deviceQueryDrv'

make -C src/quasirandomGenerator/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/quasirandomGenerator'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/quasirandomGenerator'

make -C src/scalarProd/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/scalarProd'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/scalarProd'

make -C src/scan/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/scan'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/scan'

make -C src/particles/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/particles'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/particles'

make -C src/fluidsGL/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/fluidsGL'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/fluidsGL'

make -C src/simpleStreams/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleStreams'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleStreams'

make -C src/clock/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/clock'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/clock'

make -C src/imageDenoising/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/imageDenoising'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/imageDenoising'

make -C src/alignedTypes/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/alignedTypes'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/alignedTypes'

make -C src/dxtc/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dxtc'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dxtc'

make -C src/simpleTemplates/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTemplates'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTemplates'

make -C src/BlackScholes/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/BlackScholes'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/BlackScholes'

make -C src/smokeParticles/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/smokeParticles'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/smokeParticles'

make -C src/cppIntegration/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/cppIntegration'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/cppIntegration'

make -C src/oceanFFT/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/oceanFFT'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/oceanFFT'

make -C src/simpleAtomicIntrinsics/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleAtomicIntrinsics'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleAtomicIntrinsics'

make -C src/postProcessGL/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/postProcessGL'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/postProcessGL'

make -C src/simpleTexture/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTexture'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTexture'

make -C src/boxFilter/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/boxFilter'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/boxFilter'

make -C src/simpleCUBLAS/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleCUBLAS'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleCUBLAS'

make -C src/simpleZeroCopy/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleZeroCopy'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleZeroCopy'

make -C src/volumeRender/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/volumeRender'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/volumeRender'

make -C src/bicubicTexture/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture'

make -C src/simpleTexture3D/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTexture3D'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTexture3D'

make -C src/threadMigration/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/threadMigration'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/threadMigration'

make -C src/convolutionSeparable/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionSeparable'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionSeparable'

make -C src/marchingCubes/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/marchingCubes'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/marchingCubes'

make -C src/binomialOptions/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/binomialOptions'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/binomialOptions'

make -C src/simpleTextureDrv/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTextureDrv'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleTextureDrv'

make -C src/dct8x8/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dct8x8'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dct8x8'

make -C src/convolutionTexture/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionTexture'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionTexture'

make -C src/SobelFilter/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/SobelFilter'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/SobelFilter'

make -C src/lineOfSight/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/lineOfSight'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/lineOfSight'

make -C src/transposeNew/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/transposeNew'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/transposeNew'

make -C src/matrixMulDrv/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDrv'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDrv'

make -C src/ptxjit/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/ptxjit'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/ptxjit'

make -C src/Mandelbrot/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/Mandelbrot'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/Mandelbrot'

make -C src/radixSort/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/radixSort'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/radixSort'

make -C src/nbody/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/nbody'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/nbody'

make -C src/simpleMultiGPU/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleMultiGPU'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleMultiGPU'

make -C src/MonteCarlo/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarlo'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarlo'

make -C src/scanLargeArray/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/scanLargeArray'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/scanLargeArray'

make -C src/reduction/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/reduction'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/reduction'

make -C src/histogram/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/histogram'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/histogram'

make -C src/deviceQuery/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/deviceQuery'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/deviceQuery'

make -C src/simplePitchLinearTexture/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simplePitchLinearTexture'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simplePitchLinearTexture'

make -C src/template/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/template'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/template'

make -C src/3DFD/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/3DFD'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/3DFD'

make -C src/threadFenceReduction/ clean 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/threadFenceReduction'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/threadFenceReduction'

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

[root@farpoint C]# clear

[root@farpoint C]# make

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

In file included from src/bank_checker.cpp:16:

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

In file included from src/bank_checker.cpp:16:

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

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

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

In file included from ./../common/inc/stopwatch.h:19,

				 from src/cutil.cpp:35:

./../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:73,

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

				 from src/cutil.cpp:35:

./../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:26,

				 from src/cutil.cpp:35:

./../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:35:

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

In file included from src/cutil.cpp:36:

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

In file included from src/cutil.cpp:36:

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

In file included from ./../common/inc/stopwatch.h:19,

				 from src/stopwatch.cpp:18:

./../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:73,

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

				 from src/stopwatch.cpp:18:

./../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:26,

				 from src/stopwatch.cpp:18:

./../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/stopwatch.cpp:18:

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

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

In file included from src/stopwatch_linux.cpp:16:

./../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

a - obj/release/bank_checker.cpp.o

a - obj/release/cmd_arg_reader.cpp.o

a - obj/release/cutil.cpp.o

a - obj/release/stopwatch.cpp.o

a - obj/release/stopwatch_linux.cpp.o

a - obj/release/multithreading.cpp.o

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/common'

make -C src/MonteCarloMultiGPU/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'

make -C src/asyncAPI/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/asyncAPI'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/asyncAPI'

make -C src/simpleGL/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleGL'

simpleGL.cpp: In function ‘void runAutoTest()’:

simpleGL.cpp:349: warning: deprecated conversion from string constant to ‘char*’

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleGL'

make -C src/dwtHaar1D/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dwtHaar1D'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/dwtHaar1D'

make -C src/eigenvalues/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/eigenvalues'

ptxas /tmp/tmpxft_00006184_00000000-2_bisect_small.ptx, line 323; warning : Double is not supported. Demoting to float

ptxas /tmp/tmpxft_000061ad_00000000-2_bisect_large.ptx, line 361; warning : Double is not supported. Demoting to float

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/eigenvalues'

make -C src/SobolQRNG/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/SobolQRNG'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/SobolQRNG'

make -C src/simpleVoteIntrinsics/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleVoteIntrinsics'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleVoteIntrinsics'

make -C src/matrixMulDynlinkJIT/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDynlinkJIT'

In file included from matrixMulDynlinkJIT.cpp:38:

cutil_short.h:16: warning: unused parameter ‘argc’

cutil_short.h:16: warning: unused parameter ‘argv’

cuda_drvapi_dynlink.c:183: warning: no previous prototype for ‘LOAD_LIBRARY’

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMulDynlinkJIT'

make -C src/simpleCUFFT/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleCUFFT'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/simpleCUFFT'

make -C src/MersenneTwister/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MersenneTwister'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MersenneTwister'

make -C src/transpose/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/transpose'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/transpose'

make -C src/sortingNetworks/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/sortingNetworks'

make -C src/recursiveGaussian/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/recursiveGaussian'

recursiveGaussian.cpp:79: warning: deprecated conversion from string constant to ‘char*’

recursiveGaussian.cpp:217: warning: unused parameter ‘x’

recursiveGaussian.cpp:217: warning: unused parameter ‘y’

recursiveGaussian.cpp:383: warning: unused parameter ‘argc’

recursiveGaussian.cpp:383: warning: unused parameter ‘argv’

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/recursiveGaussian'

make -C src/fastWalshTransform/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/fastWalshTransform'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/fastWalshTransform'

make -C src/convolutionFFT2D/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionFFT2D'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/convolutionFFT2D'

make -C src/bandwidthTest/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/bandwidthTest'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/bandwidthTest'

make -C src/matrixMul/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMul'

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/matrixMul'

make -C src/deviceQueryDrv/ 

make[1]: Entering directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/deviceQueryDrv'

deviceQueryDrv.cpp: In function ‘int main(int, char**)’:

deviceQueryDrv.cpp:37: warning: unused variable ‘err’[b]

/usr/bin/ld: cannot find -lcuda

collect2: ld returned 1 exit status

make[1]: *** [../../bin/linux/release/deviceQueryDrv] Error 1

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/deviceQueryDrv'

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

So it didn’t compile. I also tried the compat packages, that didn’t work either. Any ideas?

Have you set the correct path variables in your .bash_profile?

export PATH=/usr/local/cuda/bin:$PATH

export LD_LIBRARY_PATH=/usr/local/cuda/lib(64):$LD_LIBRARY_PATH

Yes, I have:

[root@farpoint C]# more ~/.bash_profile 

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

	. ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

PATH=$PATH:/usr/local/cuda/bin

LD_LIBRARY_PATH=/usr/local/cuda/lib

export PATH

export LD_LIBRARY_PATH

I could be wrong, but have you tried adding “/usr/local/cuda/lib” to /etc/ld.so.conf? Then run “ldconfig” and restart the terminal window.

include ld.so.conf.d/*.conf

/usr/local/cuda/lib

ld.so.conf works same as LD_LIBRARY_PATH. Both should be OK.

But It seems that change to ld.so.conf will work. LD_LIBRARY_PATH does not. why? because not correctly setting LD_LIBRARY_PATH.

Please use this:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib

Otherwise, /usr/lib may be missing from $LD_LIBRARY_PATH where libcuda.so is.

I read several posts here. Most problems are because the installation instructions are not strictly followed, e.g. the suggested driver.

When all guidelines are followed, there may be still some issues, as we use some platforms like FC11 not officially supported by CUDA. At this point, some tricks in forum applies. Otherwise, check whether we follow official guideline thoroughly.

Thats what I used: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib…I attached the wrong .bash_profile at the time. But rest assured, I have followed the instructions exactly and I still get this error on compilation:

/usr/bin/ld: cannot find -lcuda

collect2: ld returned 1 exit status

make[1]: *** [../../bin/linux/release/deviceQueryDrv] Error 1

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/deviceQueryDrv'

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

Hi!

try this on your .bashrc home file:

export LD_LIBRARY_PATH=“/usr/local/cuda/lib:other_lib_dir”

Bye.

LD_LIBRARY_PATH has absolutely nothing to do with compilation and linking, and nothing you do to set its value will have any effect on the error you are seeing.

The underlying problem is that the one of the makefiles that the sdk relies on doesn’t have the correct path to where you have installed cuda (which is non standard). For the 2.3 sdk you will probably have to edit the definition of CUDA_INSTALL_PATH in ~/NVIDIA_GPU_Computing_SDK/C/common . The sdk should then build correctly.

Yeah, your right. Darkmav, could you check the availability of libcuda.so*, finally linked to libcuda.so.190.18 under /usr/lib.

Because it is in /usr/lib, cannot be found. It means some unavailability. It is not related to common library or /usr/local/cuda/lib yet.

Again, your CUDA device driver is correctly installed?

Hi. For some reason, the forums were inaccessible from here so I could only get a chance to check this out today.

Well, there is no such file as “libcuda.so” in /usr/lib. :mellow:

I would like to believe so. Is there a way to check?

Anyone?

what does

cat /proc/modules | grep nvidia

produce?

Hi avidday, thanks in advance for your help.

Here’s the output

[vivek@farpoint ~]$ cat /proc/modules |grep nvidia

nvidia 8933788 38 - Live 0xfa0c3000 (P)

i2c_core 18056 2 nvidia,i2c_i801, Live 0xf807d000

[vivek@farpoint ~]$

I reinstalled the SDK. This is the error I get now

make[1]: *** [obj/release/MonteCarlo_SM10.cu_sm_10.o] Error 255

make[1]: Leaving directory `/opt/NVIDIA_GPU_Computing_SDK/C/src/MonteCarloMultiGPU'

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

back to square 1 :-(

I’m stuck here…I need to use CUDA for my project work, but I am just unable to get it to work on this Fedora 11 box. Any advice, suggestions and ideas would be greatly appreciated.