[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
Tue Jun 29 05:25:38 UTC 2021


#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):

 Actually, there is something funny about that commit. Where did all this
 stuff come from?
 {{{
  (dar, master, py38-reproject, revert-6945-rust-1.43.0, wireshark):
 }}}
 and what I put here [59927#comment:32] suggests I got it to work with
 apple-gcc42, and yet there was a commit two months later to enable C11?

 It's all a bit strange. Probably worth a second look.

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


More information about the macports-tickets mailing list