Please let me correct myself: Gentoo Prefix Bootstrap is trying to compile bison 3.7 with gcc 4.4.7
On Sun, Aug 2, 2020 at 11:17 PM Maoyin Sun <simonmy...@gmail.com> wrote: > Hi there, > > I am trying to bootstrap Gentoo Prefix on a very old RHDL machine with gcc > 4.7.2. When compiling bison 3.7, it yields: > > ``` > src/parse-simulation.c:64: error: redefinition of typedef 'parse_state' > src/parse-simulation.h:74: note: previous declaration of 'parse_state' was > here > ``` > > The related compile command is: > > ``` > gcc -std=gnu99 -DEXEEXT=\"\" -I. -I./lib -I. -I./lib > -DINSTALLDIR=\"/opt/risk/tmp/xz4a0b2/gentoo/tmp/usr/bin\" > -I/opt/risk/tmp/xz4a0b2/gentoo/tmp/usr/include -O2 -pipe -O2 -pipe -c -o > src/bison-parse-simulation.o `test -f 'src/parse-simulation.c' || echo > './'`src/parse-simulation.c > ``` > > The same time I am looking into why Gentoo Prefix does not build a proper > version of gcc before this. But I also checked the build log and it has > detected that only C++98 is supported, which does not allow redefinition of > `typedef`. So I believe that either the configure script should fail, or > the `typedef` redefinition should not be used. > > I might be wrong so please tell whether I am operating falsely or this is > a bug. > > Best regards, > Maoyin > > ------------------------------ > tel:+49 15256965008 <+49+15256965008> > mailto:simonmy...@gmail.com <simonmy...@gmail.com> > https://simonmysun.github.io/ > [image: Avatar] > Gaudeāmus igitur, iuvenēs dum sumus > > So. 2. Aug. 2020 23:17:28 CEST (UTC+2) >