[MacPorts] #59927: bison @3.5 does not build with older gcc versions (gcc-4.2 and similar) because "#pragma GCC diagnostic not allowed inside functions" (was: bison @3.5 does not build on PPC Tiger, Mac OS X 10.4.11, because "#pragma GCC diagnostic not allowed inside functions")
MacPorts
noreply at macports.org
Wed Jan 8 17:56:24 UTC 2020
#59927: bison @3.5 does not build with older gcc versions (gcc-4.2 and similar)
because "#pragma GCC diagnostic not allowed inside functions"
------------------------+--------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: bison |
------------------------+--------------------
Changes (by kencu):
* keywords: tiger =>
Old description:
> {{{
> /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DEXEEXT=\"\" -I. -I./lib -I.
> -I./lib -DINSTALLDIR=\"/opt/local/bin\" -I/opt/local/include -pipe -Os
> -arch ppc -MT src/bison-InadequacyList.o -MD -MP -MF src/.deps/bison-
> InadequacyList.Tpo -c -o src/bison-InadequacyList.o `test -f
> 'src/InadequacyList.c' || echo './'`src/InadequacyList.c
> src/InadequacyList.c: In function 'InadequacyList__new_conflict':
> src/InadequacyList.c:37: error: #pragma GCC diagnostic not allowed inside
> functions
> src/InadequacyList.c:37: error: #pragma GCC diagnostic not allowed inside
> functions
> src/InadequacyList.c:40: error: #pragma GCC diagnostic not allowed inside
> functions
> make: *** [src/bison-InadequacyList.o] Error 1
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_bison/bison/work/bison-3.5'
> Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_bison/bison/work/bison-3.5"
> && /usr/bin/make -w all
> Exit code: 2
> }}}
New description:
This error shows up on systems that default to gcc-4.2 (10.4 and 10.5):
{{{
/opt/local/bin/gcc-apple-4.2 -std=gnu99 -DEXEEXT=\"\" -I. -I./lib -I.
-I./lib -DINSTALLDIR=\"/opt/local/bin\" -I/opt/local/include -pipe -Os
-arch ppc -MT src/bison-InadequacyList.o -MD -MP -MF src/.deps/bison-
InadequacyList.Tpo -c -o src/bison-InadequacyList.o `test -f
'src/InadequacyList.c' || echo './'`src/InadequacyList.c
src/InadequacyList.c: In function 'InadequacyList__new_conflict':
src/InadequacyList.c:37: error: #pragma GCC diagnostic not allowed inside
functions
src/InadequacyList.c:37: error: #pragma GCC diagnostic not allowed inside
functions
src/InadequacyList.c:40: error: #pragma GCC diagnostic not allowed inside
functions
make: *** [src/bison-InadequacyList.o] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_bison/bison/work/bison-3.5'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_devel_bison/bison/work/bison-3.5"
&& /usr/bin/make -w all
Exit code: 2
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/59927#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list