[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build failure with gcc 4.7.2

From: Maoyin Sun
Subject: Build failure with gcc 4.7.2
Date: Sun, 2 Aug 2020 23:17:37 +0200

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

The related compile command is:

gcc -std=gnu99 -DEXEEXT=\"\"   -I. -I./lib -I. -I./lib
-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

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

Best regards,

tel:+49 15256965008 <+49+15256965008>
mailto:simonmysun@gmail.com <simonmysun@gmail.com>
[image: Avatar]
Gaudeāmus igitur, iuvenēs dum sumus

So. 2. Aug. 2020 23:17:28 CEST (UTC+2)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]