[MacPorts] #68759: agrep @2.04: implicit function declarations
MacPorts
noreply at macports.org
Tue Dec 31 18:30:25 UTC 2024
#68759: agrep @2.04: implicit function declarations
-------------------------+-------------------------------------------------
Reporter: mission- | Owner: (none)
bio |
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: catalina bigsur monterey ventura
Port: agrep | sonoma sequoia
-------------------------+-------------------------------------------------
Changes (by ryandesign):
* keywords: catalina bigsur monterey ventura sonoma => catalina bigsur
monterey ventura sonoma sequoia
* cc: balanco (added)
Comment:
No, please don't do those things.
If you want to override the compiler MacPorts uses for a port, there's no
need to `select` that compiler nor to edit the Portfile; you can simply
`sudo port -s install agrep configure.compiler=macports-gcc-14`. However
compiling with gcc on macOS is generally not recommended, nor is
overriding the compiler MacPorts chose, and I do not recommend doing that
to try to ignore any implicit function declaration errors.
In this case, the preferred compiler clang is able to compile the code if
you downgrade the implicit function declaration error back to a warning.
This is not the preferred solution to this problem but it can be used as a
workaround on non-Apple Silicon systems. On ARM processors, implicit
function declarations may cause incorrect program execution so I really
don't recommend trying this on Apple Silicon systems. I have committed a
workaround to the port to disable implicit function declaration errors and
to mark the port as not supporting Apple Silicon. (On Apple Silicon Macs,
MacPorts will thus install the Intel version of agrep which should work
via Rosetta.)
--
Ticket URL: <https://trac.macports.org/ticket/68759#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list