[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
Mon Jun 28 16:39:18 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):
with Tiger and Leopard, both PPC and Intel, you quickly come across a
large number of ports that need gcc7. So pretty much 100% of users will
have that installed in short order if they want to have any modern ports.
Anything that needs C11 or c++11 or more needs gcc7.
As there is no buildbot, this is not generally a hindrance as it is not
uninstalled & reinstalled with every buildbot build cycle -- one a user
has it installed, s/he's good to go.
It's possible there may be a user or two who is on Tiger or Leopard, wants
bison, but has otherwise no need for anything that needs gcc7. I can't
really picture this scenario, but I won't deny that it could happen. So if
you have time to fix it so that bison, and hopefully the test suite (as
we'd certainly like to test it on Tiger), builds fine with apple-gcc42,
that would sure be great.
I don't know how much work it might be to fix the remaining items.
In the larger picture I find that once a software project goes down the
path of C11 / c++11 features, then they usually just add more; so even if
you fixed this bison for apple-gcc42 today, it's often just broken again
on tomorrow's update. So I don't personally find that a fruitful use of my
own time, except for ports needed for bootstrapping to the key toolchain
items (apple-gcc42, cctools, ld64, and then gcc5+).
--
Ticket URL: <https://trac.macports.org/ticket/59927#comment:37>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list