[MacPorts] #68346: scotch @7.0.4_0+mpich: ld: unknown options: -commons
MacPorts
noreply at macports.org
Sat Oct 14 21:07:54 UTC 2023
#68346: scotch @7.0.4_0+mpich: ld: unknown options: -commons
----------------------+--------------------------
Reporter: murrayE | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: sonoma arm64
Port: scotch |
----------------------+--------------------------
Comment (by kencu):
The flag is coming in from another port, as above, mpich-default, in this
exact file:
{{{
/opt/local/bin/mpicc-mpich-mp
}}}
here:
{{{
final_ldflags="
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-Wl,-commons,use_dylibs"
}}}
There is some kind of configuration problem with mpich -- I built it on
Sonoma with Xcode 15 and it still had this flag embedded, even though the
linker rejects it.
Someone will sort that out, but for now you can just remove that flag from
the ascii textfile driver, changing that line to this:
{{{
final_ldflags="
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk"
}}}
and all is well:
{{{
% port -v installed scotch
The following ports are currently installed:
scotch @7.0.4_0+mpich (active) requested_variants='' platform='darwin
23' archs='arm64' date='2023-10-14T14:03:33-0700'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68346#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list