[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"

MacPorts noreply at macports.org
Wed Apr 1 06:20:13 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:  kencu
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:  fixed      |   Keywords:
      Port:  bison      |
------------------------+--------------------

Comment (by kencu):

 Well, that's nice to hear.

 Honest truth is not many upstream projects are too interested in tweaking
 builds for compilers like gcc-4.2 any more, and working around things
 missing from the MacOSX Tiger headers even less, so we are fairly used to
 doing a little surgery on these ports for our rather dedicated legacy
 system user base.

 redefining typedefs was introduced in some compiler version > gcc-4.2 -- I
 don't recall just when it occurred -- but in the way MacPorts works, it's
 basically a built-in next compiler step to set the bar at C11 and that
 sets a generation of compilers that do work rather than doing a lot of
 experimenting to find out just exactly which version of gcc allowed it and
 then undertaking a project of blacklisting or fallbacking.

 Appreciate your interest.

-- 
Ticket URL: <https://trac.macports.org/ticket/59927#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list