I've installed cudnn but couldn't verify the installation because of this error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
After searching I found out that I should install another version of gcc and make a symbolic link for that. So I'm following this guide But I'm getting this error:
/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
So my questions here are:
Does
#error -- unsupported GNU version! gcc versions later than 8 are not supported!
have anything to do with ubuntu 20.04? I mean if I install a stable version the problem will be solved or not?How to fix the gcc error?