Build failure with gcc 4.7.2

Maoyin Sun <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <CAM49HNihL-b1ckuZ3P3z1t2bbzf3MkAUNr1qG-m5PoH4s3AwKQ@mail.gmail.com>
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:[email protected] <[email protected]>
https://simonmysun.github.io/
[image: Avatar]
Gaudeāmus igitur, iuvenēs dum sumus

So. 2. Aug. 2020 23:17:28 CEST (UTC+2)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.