Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to install or compile GCC 7.3 for CUDA 10 in Fedora 29?

Since Fedora 28, the OS install GCC 8.X version. How can I install or compile GCC 7.3 in Fedora 29? I got such an error after trying to compile an open source project:

/usr/local/cuda-10.0/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
#error -- unsupported GNU version! gcc versions later than 7 are not supported!
^~~~~

I've read this GCC documentation https://gcc.gnu.org/install/index.html. However, I still cannot understand everything.