[MacPorts] #65128: xar @1.8.0.487.100.1: error: variable-sized object may not be initialized
MacPorts
noreply at macports.org
Sat May 7 18:23:38 UTC 2022
#65128: xar @1.8.0.487.100.1: error: variable-sized object may not be initialized
-------------------------+-------------------------------------------------
Reporter: | Owner: Schamschula
barracuda156 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, tiger, leopard,
Port: xar | snowleopard
-------------------------+-------------------------------------------------
Comment (by kencu):
I think it is a gcc / clang difference.
Quite possibly clang should not accept that code, but does. I saw
something about it being accepted after a certain clang version
(3.something) so maybe that is why forcing a newer clang worked.
Anyways, some simple enough options. I guess the patch would hinge on
whether gcc was the build compiler -- or could just be always applied, and
then probably no need for forcing a c11 compiler at all I would think.
Up to you.
--
Ticket URL: <https://trac.macports.org/ticket/65128#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list