# CUDA SDK compilation error on Fedora 11

**URL:** <https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619>\
**Category:** CUDA Programming and Performance\
**Created:** [August 15, 2009, 7:41am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619 "2009-08-15T07:41:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 15, 2009, 7:41am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/1 "2009-08-15T07:41:25Z")

</div>

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](http://forums.fedoraforum.org/showthread.php?p=1253878&posted=1#post1253878))

```auto
[root@farpoint ~]# uname -r

2.6.29.6-217.2.3.fc11.i686.PAE

```

The nvidia driver is working fine…

```auto
[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:

```auto
[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

---

<div class="post-metadata">

**Author:** ![highman](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@highman](https://forums.developer.nvidia.com/u/highman)\
**Post date:** [August 15, 2009, 10:21am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/2 "2009-08-15T10:21:03Z")

</div>

This is the issue of CUDA with gcc 4.4.0

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 15, 2009, 10:48am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/3 "2009-08-15T10:48:18Z")

</div>

> [@](#):
>
> This is the issue of CUDA with gcc 4.4.0

How does one solve it?

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 16, 2009, 12:02pm UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/4 "2009-08-16T12:02:38Z")

</div>

> [@](#):
>
> How does one solve it?

Anyone?

---

<div class="post-metadata">

**Author:** ![avidday](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/avidday/32/59219_2.png) [@avidday](https://forums.developer.nvidia.com/u/avidday)\
**Post date:** [August 16, 2009, 2:54pm UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/5 "2009-08-16T14:54:37Z")

</div>

You will have to install gcc 4.3.

---

<div class="post-metadata">

**Author:** ![highman](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@highman](https://forums.developer.nvidia.com/u/highman)\
**Post date:** [August 16, 2009, 7:59pm UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/6 "2009-08-16T19:59:16Z")

</div>

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.

> [@](#):
>
> You will have to install gcc 4.3.

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 20, 2009, 9:11am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/7 "2009-08-20T09:11:47Z")

</div>

Highman, first of all, thanks for the reply.

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

```auto
[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?

---

<div class="post-metadata">

**Author:** ![montmorency](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@montmorency](https://forums.developer.nvidia.com/u/montmorency)\
**Post date:** [August 20, 2009, 10:28am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/8 "2009-08-20T10:28:15Z")

</div>

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

> [@](#):
>
> [root@farpoint C]# make
> 
> 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][/code]
> 
> So it didn’t compile. I also tried the compat packages, that didn’t work either. Any ideas?

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 20, 2009, 5:19pm UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/9 "2009-08-20T17:19:41Z")

</div>

> [@](#):
>
> 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:

```auto
[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

```

---

<div class="post-metadata">

**Author:** ![normspe](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@normspe](https://forums.developer.nvidia.com/u/normspe)\
**Post date:** [August 21, 2009, 1:18am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/10 "2009-08-21T01:18:34Z")

</div>

> [@](#):
>
> Yes, I have:
> 
> ```auto
> [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**

---

<div class="post-metadata">

**Author:** ![highman](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@highman](https://forums.developer.nvidia.com/u/highman)\
**Post date:** [August 21, 2009, 8:06am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/11 "2009-08-21T08:06:32Z")

</div>

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.

> [@](#):
>
> LD\_LIBRARY\_PATH=/usr/local/cuda/lib

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.

> [@](#):
>
> 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**

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 21, 2009, 9:44am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/12 "2009-08-21T09:44:49Z")

</div>

> [@](#):
>
> 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:

```auto
/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

```

---

<div class="post-metadata">

**Author:** ![rixpolo](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rixpolo](https://forums.developer.nvidia.com/u/rixpolo)\
**Post date:** [August 21, 2009, 11:25am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/13 "2009-08-21T11:25:09Z")

</div>

Hi!

try this on your .bashrc home file:

export LD\_LIBRARY\_PATH=“/usr/local/cuda/lib:other\_lib\_dir”

Bye.

> [@](#):
>
> 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:
> 
> ```auto
> /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
> 
> ```

---

<div class="post-metadata">

**Author:** ![avidday](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/avidday/32/59219_2.png) [@avidday](https://forums.developer.nvidia.com/u/avidday)\
**Post date:** [August 21, 2009, 11:30am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/14 "2009-08-21T11:30:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![highman](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@highman](https://forums.developer.nvidia.com/u/highman)\
**Post date:** [August 21, 2009, 12:46pm UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/15 "2009-08-21T12:46:21Z")

</div>

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?

> [@](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 28, 2009, 3:47pm UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/16 "2009-08-28T15:47:36Z")

</div>

> [@](#):
>
> 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.

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:

> [@](#):
>
> Again, your CUDA device driver is correctly installed?

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

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [August 30, 2009, 11:57am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/17 "2009-08-30T11:57:34Z")

</div>

> [@](#):
>
> 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?

---

<div class="post-metadata">

**Author:** ![avidday](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/avidday/32/59219_2.png) [@avidday](https://forums.developer.nvidia.com/u/avidday)\
**Post date:** [August 30, 2009, 4:49pm UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/18 "2009-08-30T16:49:44Z")

</div>

what does

```auto
cat /proc/modules | grep nvidia

```

produce?

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [September 1, 2009, 11:12am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/19 "2009-09-01T11:12:34Z")

</div>

Hi avidday, thanks in advance for your help.

> [@](#):
>
> what does
> 
> ```auto
> cat /proc/modules | grep nvidia
> 
> ```
> 
> produce?

Here’s the output

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

nvidia 8933788 38 - Live 0xfa0c3000 (P)

i2c_core 18056 2 nvidia,i2c_i801, Live 0xf807d000

[vivek@farpoint ~]$

```

---

<div class="post-metadata">

**Author:** ![darkmav](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@darkmav](https://forums.developer.nvidia.com/u/darkmav)\
**Post date:** [September 1, 2009, 11:34am UTC](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619/20 "2009-09-01T11:34:10Z")

</div>

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

```auto
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.

[Next page](https://forums.developer.nvidia.com/t/cuda-sdk-compilation-error-on-fedora-11/11619.md?page=2)
