Ubuntu 17.04: nvcc error "No supported gcc/g++ host compiler found"

Bug #1667815 reported by Mike Gresens
6
This bug affects 1 person
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-cuda-toolkit/zesty,now 8.0.44-3 amd64
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__4_22:14:01_CDT_2016
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/lib/nvidia-cuda-toolkit/bin/nvcc" \
    -c \
    -ccbin=g++ \
    -std=c++11 \
    --use_fast_math \
    --default-stream=per-thread \
    --expt-extended-lambda \
    -gencode=arch=compute_60,code=\"sm_60,compute_60\" \
    -m64 \
    --compiler-options \
    -fno-strict-aliasing \
    -I/usr/local/cuda/include \
    -I/usr/local/optix/include \
    -Isource \
    -DUNIX \
    -O3 \
    -o bin/gcc-6.3.0/release/source/test.o -c source/test.cu

ERROR: No supported gcc/g++ host compiler found, but clang-3.8 is available.
       Use 'nvcc -ccbin clang-3.8' to use that instead.

Mike Gresens (msg-72)
affects: nvidia-graphics-drivers-375 (Ubuntu) → nvidia-cuda-toolkit (Ubuntu)
Revision history for this message
Mike Gresens (msg-72) wrote :

According to
http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#system-requirements
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.

Changed in nvidia-cuda-toolkit (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.