源码下载地址:https://ftp.gnu.org/gnu/gcc/
下载需要的依赖https://gcc.gnu.org/pub/gcc/infrastructure/
./contrib/download_prerequisites 必须在源码目录执行
mkdir build
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
make
make install
参考如下几个链接:
https://www.jianshu.com/p/5da82ffc60ca
https://www.cnblogs.com/zengkefu/p/6193266.html
https://blog.csdn.net/RBPicsdn/article/details/79565383
编译遇到的错误
https://my.oschina.net/vaero/blog/210485
我遇到了libisl.so.15找不到的问题