[MacPorts] #69297: luametatex @2.10.08 does not build on PPC Tiger, Mac OS X 10.4.11, because of "cc1: error: unrecognized command line option "-Wno-unused-result""
MacPorts
noreply at macports.org
Wed Feb 7 08:11:18 UTC 2024
#69297: luametatex @2.10.08 does not build on PPC Tiger, Mac OS X 10.4.11, because
of "cc1: error: unrecognized command line option "-Wno-unused-result""
-------------------------+-----------------------
Reporter: ballapete | Owner: drkp
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords: ppc tiger
Port: luametatex |
-------------------------+-----------------------
Changes (by ryandesign):
* cc: dports@… (removed)
* status: new => assigned
* owner: (none) => drkp
Comment:
Its CMakeLists.txt says:
{{{
set(CMAKE_C_STANDARD 11)
}}}
We could indicate that in the Portfile with:
{{{
compiler.c_standard 2011
}}}
That would cause MacPorts to select a newer compiler that hopefully
understands those warning flags so no patch would be needed.
However, if I understand CMake correctly, that line in CMakeLists.txt is
only indicating a preference for C11 if it is available, not that it is
required. Does your patch removing those warning flags allow the port to
build with GCC 4.2.1? If so, then C11 is clearly not required and your
patch would be the way to go. In that case, please report the bug to the
developers of luametatex. They should be testing the compiler for support
of each warning flag before adding them.
--
Ticket URL: <https://trac.macports.org/ticket/69297#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list