Bug#774297: /usr/lib/nvidia-cuda-toolkit/lib//cc1plus: No such file or directory

Sylwester Arabas sarabas at igf.fuw.edu.pl
Wed Jan 7 19:35:09 UTC 2015


Hi, thanks for replying,

On 07/01/15 20:23, Andreas Beckmann wrote:
> Version: 6.0.37-5
>
> On 2014-12-31 13:31, Sylwester Arabas wrote:
>> Package: nvidia-cuda-toolkit
>> After installing current sid version of nvidia-cuda-toolkit, nvcc fails
>
> that would be 6.0.37-5?

Yes, sorry:

   $ sudo dpkg --list  | grep nvidia-cuda-toolkit
   ii  nvidia-cuda-toolkit                    6.0.37-5 
          amd64        NVIDIA CUDA development toolkit


>> with:
>>
>>    gcc: error trying to exec 'cc1plus': execvp: No such file or directory
>>
>> while nvopencc gives a bit more meaningful message:
>>
>>    nvopencc ERROR: cannot exec /usr/lib/nvidia-cuda-toolkit/lib//cc1plus:
>> No such file or directory
>
> What's your content of /usr/lib/nvidia-cuda-toolkit/lib ?

   $ ls  /usr/lib/nvidia-cuda-toolkit/lib
   be  gfec  inline

> Exact compilation command line that failed?
> Minimal example that failed (could be an empty file?)

   $ echo "int main() {}" > bug.cpp
   $ nvopencc bug.cpp
   nvopencc ERROR: cannot exec 
/usr/lib/nvidia-cuda-toolkit/lib//cc1plus: No such file or directory
   $ nvcc bug.cpp
   nvcc warning : The 'compute_10' and 'sm_10' architectures are 
deprecated, and may be removed in a future release.
   gcc: error trying to exec 'cc1plus': execvp: No such file or directory

This solves the problem:

   $ sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1plus 
/usr/lib/nvidia-cuda-toolkit/bin/
   $ nvcc bug.cpp
   nvcc warning : The 'compute_10' and 'sm_10' architectures are 
deprecated, and may be removed in a future release.
   $ echo $?
   0

HTH,
Sylwester

-- 
http://www.igf.fuw.edu.pl/~slayoo/



More information about the pkg-nvidia-devel mailing list