Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version (and fix) #307

Open
golightlyb opened this issue Feb 9, 2020 · 0 comments
Labels

Comments

@golightlyb
Copy link

I was getting this error using this repo in the make step:

/usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!

This is an issue specific to CUDA, not to this repo. wiki.debian.org/NvidiaGraphicsDrivers#CUDA suggests to compile you need to add e.g. -ccbin clang-3.8 to the nvcc command line.

But I had to dig around to find how this applies to cmake.

On my system (Debian 10) I had to do e.g.

export CUDAHOSTCXX=clang-3.5;
./configure

(ls /usr/bin/clang* and ls /usr/bin/gcc* for possible values)

Hope that helps someone else!

@castano castano added the CUDA label Aug 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants