我已经安装了 cudnn,但无法验证安装,因为这个错误:#error -- unsupported GNU version! gcc versions later than 8 are not supported!
经过搜索,我发现我应该安装另一个版本的 gcc 并为其创建符号链接。所以我按照本指南但我收到了这个错误:
/home/---/objdir/../gcc-4.6.2/libgcc/../gcc/config/i386/linux-unwind.h:54:47: error: dereferencing pointer to incomplete type
make[3]: *** [/home/---/objdir/../gcc-4.6.2/libgcc/shared-object.mk:12: unwind-dw2.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/---/objdir/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [Makefile:18509: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory '/home/---/objdir'
make[1]: *** [Makefile:23788: stage1-bubble] Error 2
make[1]: Leaving directory '/home/---/objdir'
make: *** [Makefile:899: all] Error 2
所以我的问题是:
和 ubuntu 20.04有
#error -- unsupported GNU version! gcc versions later than 8 are not supported!
关系吗?我的意思是如果我安装一个稳定版本,问题会解决吗?如何修复 gcc 错误?