file is empty

/usr/bin/ld: error: /usr/local/cuda/lib/ file is empty

Above is the error I receive while compiling the samples from CUDA-5

Any idea what could be wrong?


Hi biebo,
To verify, can you get me the sizes of the files in /usr/local/cuda/lib? This is done with `ls -l /usr/local/cuda/lib"

Can you point me to where you downloaded the package that you used to install?

Also, was there enough diskspace on that partition to install the entire toolkit? You can tell this with df -h /usr/local

I have more ideas, but these are a good start to narrow down. Thanks!



You are amazing ! the problem was that the disk had not enough space. I made some space and installed the CUDA-Tollkit and now it works :)


I’m glad to hear it’s working now. In the future, the installer will do some checks to let you know if there’s not enough disk space :)