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

Andreas Beckmann anbe at debian.org
Wed Jan 7 20:34:25 UTC 2015


On 2015-01-07 20:35, Sylwester Arabas wrote:
>> 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

Reproducible.
Great, another binary with an insane search path algorithm ... but is there any real use case to call nvopencc directly?

>   $ 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

Not reproducible.

$ nvcc -v bug.cpp 
nvcc warning : The 'compute_10' and 'sm_10' architectures are deprecated, and may be removed in a future release.
#$ _SPACE_= 
#$ _CUDART_=cudart
#$ _HERE_=/usr/lib/nvidia-cuda-toolkit/bin
#$ _THERE_=/usr/lib/nvidia-cuda-toolkit/bin
#$ _TARGET_SIZE_=
#$ _TARGET_DIR_=
#$ _TARGET_SIZE_=64
#$ NVVMIR_LIBRARY_DIR=/usr/lib/nvidia-cuda-toolkit/libdevice
#$ PATH=/usr/lib/nvidia-cuda-toolkit/bin:/home/beckmann/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/opt/software/bin:/opt/software/bin
#$ INCLUDES=-I/usr/lib/nvidia-cuda-toolkit/include  
#$ LIBRARIES=-L/usr/lib/x86_64-linux-gnu -L/usr/lib/i386-linux-gnu  
#$ LIBRARIES=-L/usr/lib/x86_64-linux-gnu -L/usr/lib/i386-linux-gnu    -lcudart
#$ gcc -c -x c++ -D__NVCC__  -I/usr/lib/nvidia-cuda-toolkit/include   -m64 -o "/tmp/tmpxft_000004a7_00000000-1_bug.o" "bug.cpp" 
#$ g++ -m64 -o "a.out" -Wl,--start-group "/tmp/tmpxft_000004a7_00000000-1_bug.o" -L/usr/lib/x86_64-linux-gnu -L/usr/lib/i386-linux-gnu    -lcudart -lcudadevrt  -lcudart_static  -lrt -lpthread  -ldl  -Wl,--end-group 
$ echo $?
0
$ gcc --version
gcc (Debian 4.9.1-19) 4.9.1
$ g++ --version
g++ (Debian 4.9.1-19) 4.9.1


Andreas



More information about the pkg-nvidia-devel mailing list