[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 Jun 30 14:42:22 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):

 I went on a big project of enabling and running test suites for all the
 software I came across over the past couple of years. I thought this was
 especially useful for never-tested systems like Tiger.

 So 18 months ago I definitely would have elected to enable the testable
 bison built with gcc7, rather than the untestable bison built with apple-
 gcc42.

 I still think this is (for my way of thinking) the better idea, but it's a
 no maintainer port and you can have a different idea.

 I just pegged the bison built with gcc7 in my repo. Simple.

 I would encourage you to install gcc7/libgcc7 and have that done with as
 you will certainly need it soon enough if you want to be working on Tiger
 at all.

 Thanks for taking the time to go exploring in the older regions of macOS!
 I used Tiger when it first came out and still do here at home on a daily
 basis... it runs my faxing service using hylafax, for one, and has been so
 doing since 2005.

 I wouldn't be eager to see a lot of ports be modified to work with ancient
 apple-gcc42 rather than the much more modern gcc7, but once again, it's an
 open-source project going here so I don't have any control over what is
 done.

 According to upstream gcc11 / libgcc11 works great on Tiger. I recently
 enabled that on SnowLeopard, and I was thinking to bring it all the way
 back to Tiger at some opportune moment, in my own repos if not in
 MacPorts.

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


More information about the macports-tickets mailing list