[MacPorts] #68346: mpich-default embeds -commons into the mpicc-mpich-mp driver script, causing builds with Xcode 15's linker to fail

MacPorts noreply at macports.org
Sat Oct 14 21:30:25 UTC 2023


#68346: mpich-default embeds -commons into the mpicc-mpich-mp driver script,
causing builds with Xcode 15's linker to fail
-----------------------------------+--------------------------
  Reporter:  murrayE               |      Owner:  (none)
      Type:  defect                |     Status:  new
  Priority:  Normal                |  Milestone:
 Component:  ports                 |    Version:  2.8.1
Resolution:                        |   Keywords:  sonoma arm64
      Port:  mpich-default scotch  |
-----------------------------------+--------------------------

Comment (by murrayE):

 Replying to [comment:14 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'
 > }}}

 How does an innocent end-user like me take care of "remove[ing]that flag
 from the ascii textfile driver"?

-- 
Ticket URL: <https://trac.macports.org/ticket/68346#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list