[MacPorts] #59927: bison: update to 3.8 (was: bison @3.5 does not build with older gcc versions (gcc-4.2 and similar) because "#pragma GCC diagnostic not allowed inside functions")

MacPorts noreply at macports.org
Sat Aug 7 14:51:56 UTC 2021


#59927: bison: update to 3.8
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:
      Port:  bison      |
------------------------+----------------------
Changes (by kencu):

 * status:  reopened => assigned
 * owner:  kencu => (none)


Old 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
> }}}

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:55>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list