根据方法是ubuntu系统上安装GCC-4.8.5,安装包下载解压了,也使用命令/contrib/download_prerequisites 和 ./configure --prefix= --enable-checking=release --enable-languages=c,c++--disable-multilib进行依赖文件下载和配置,配置时就已经有错了。这个有影响吗?在下图config.log里见具体错误。
之后的下一步make编译那一步就老报 all-stage1-gcc 和 stage1-bubble错误。总之编译make老是报all-stage1-gcc和stage1-bubble错误。这个是什么原因啊?如何解决呢?编译不过因此无法安装。
==================---config.log=============
gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)
... rest of stderr output deleted ...
configure:4215: $? = 0
configure:4204: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4215: $? = 1
configure:4204: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4215: $? = 1
configure:4235: checking for C compiler default output file name
configure:4257: gcc conftest.c >&5
configure:4261: $? = 0
configure:4298: result: a.out
configure:4314: checking whether the C compiler works
configure:4323: ./a.out
configure:4327: $? = 0
configure:4342: result: yes
前面配置出错
看你这里是在ubuntu上安装gcc的源码包,./configure的配置这里可能有点问题。
可以参考本人博客关于ubuntu安装最新gcc的教程。
https://blog.csdn.net/q544344318/article/details/129554156?spm=1001.2014.3001.5502