On Wed, 19 Aug 2020 at 00:15, Felipe Moura Oliveira via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > Hi all. > > I need gcc 4.2 to compile old project. > I tried to build gcc 4.2 in several ways and with several configurations > and at the end I had the same error log. > I'm stuck in it for about 3 days T_T. > My process: > 1 - cloned gcc repository and change to branch gcc-4.2. > 2 - created dir in parallel with code. > 3 - run *sudo ../gcc-4.2.0/configure --enable-languages=c,c++ > --disable-stage1-checking --disable-multilib --disable-werror > --disable-bootstrap* Why are you using sudo? > 4 - I open Makefile and change : > > CC = gcc > CXX = g++ > > to > > CC = gcc -fgnu89-inline > CXX = g++ -fgnu89-inline > > (https://unix.stackexchange.com/questions/219708/arch-compiling-toplev-o-fails-in-gcc-install) > > Because I had same behavior. > > 5 - sudo make -j1 Don't build as root! That's very silly. > > After 10 minutes my build crash with msg: > ... > ../../gcc-4.2.0/gcc/config/i386/i386.h:155: error: storage class > specified for parameter ‘x86_partial_reg_dependency’ It looks to me like your sources are corrupt somehow. This line is not a function parameter.