Errors in compiling gcc4.8.5 using gcc8.1.1

Jonathan Wakely jwakely.gcc@gmail.com
Sat Sep 29 18:16:00 GMT 2018


On Fri, 28 Sep 2018 at 15:18, C.J. wrote:
>
> Hi Jonathan,
>
> I tried again with source code without modification.
> First, I ran "./configure --prefix=/home/rx/program/gcc-4.8.5/build --with-gmp=/home/rx/program/gmp-6.1.0 --with-mpfr=/home/rx/program/mpfr-3.1.4 --disable-multilib --enable-languages=c,c++,fortran --disable-stage1-checking"

Firstly, read https://gcc.gnu.org/wiki/InstallingGCC

> And then, I ran "make"
> At the end of output, there is some error as below. The whole output file is attached to this mail.
> Is there any solution to this question? Thank you!

Instead of just "make" try:
  make STAGE1_CFLAGS="-O2 -g -std=gnu89" STAGE1_CXXFLAGS="-O2 -g -std=gnu++98"

You probably also want to add -j2 or -j4 to that command, depending
how many CPU cores your machine has.



More information about the Gcc-help mailing list