Ubuntu 17.04: nvcc error "No supported gcc/g++ host compiler found"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-cuda-toolkit (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Problem:
Ubuntu 17.04: Using nvcc with g++ (6.3) does not work.
Note:
Ubuntu 16.10: Using nvcc with g++ (6.2) does work.
System:
Description: Ubuntu Zesty Zapus (development branch)
Release: 17.04
Packages:
nvidia-
gcc-6/zesty,now 6.3.0-2ubuntu1 amd64
Versions:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Sun_Sep_
Cuda compilation tools, release 8.0, V8.0.44
g++ (Ubuntu 6.3.0-2ubuntu1) 6.3.0 20161229
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
==>
"/usr/
-c \
-ccbin=g++ \
-std=c++11 \
--use_fast_math \
--default-
--expt-
-gencode=
-m64 \
--compiler-
-fno-
-I/
-I/
-Isource \
-DUNIX \
-O3 \
-o bin/gcc-
ERROR: No supported gcc/g++ host compiler found, but clang-3.8 is available.
Use 'nvcc -ccbin clang-3.8' to use that instead.
affects: | nvidia-graphics-drivers-375 (Ubuntu) → nvidia-cuda-toolkit (Ubuntu) |
According to docs.nvidia. com/cuda/ cuda-installati on-guide- linux/# system- requirements
http://
the nvcc does not support g++-6 at all!? :-(
After installing g++-5 by
sudo apt install g++-5
the nvcc started to work again.