error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
程序员文章站
2022-05-29 11:54:01
...
当我在运行make.sh脚本的时候,出现以下错误:
error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
经过一番谷歌,尝试到可用的解决办法是:
修改gcc的版本,具体操作如下:
sudo rm /usr/local/cuda/bin/gcc
sudo rm /usr/local/cuda/bin/g++
sudo apt install gcc-5 g++-5
sudo ln -s /usr/bin/gcc-5 /usr/local/cuda/bin/gcc
sudo ln -s /usr/bin/g++-5 /usr/local/cuda/bin/g++