csuhan/s2anet

compile error

Sairam13001 opened this issue · 1 comments

I installed pytorch = 1.3.1 and cuda 10.1.243

When I ran python setup.py develop, I am getting the following error:


In file included from /usr/local/cuda/include/cuda_runtime.h:83,
from :
/usr/local/cuda/include/crt/host_config.h:129:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
129 | #error -- unsupported GNU version! gcc versions later than 7 are not supported!
| ^~~~~
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 1


Currently I have a GCC version of: "gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0"

Could you kindly let me know how I can solve this error. Should I install an older gcc version? Is that the problem?

solved!