#68691 closed defect (duplicate)
mumps @5.6.2_0+gfortran+mpich+openblas: ld: unknown options: -commons
Reported by: | murrayE | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | arm64 sonoma | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), catap (Kirill A. Korinsky), Dave-Allured (Dave Allured) |
Port: | mumps |
Description
This is even when using Xcode 15.1 Beta. There are *many* warnings during build about mismatched types and ranks . But perhaps crux of the failure is this, from near end of the main.log:
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_mumps/mumps/work/MUMPS_5.6.2/PORD/lib' :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_mumps/mumps/work/compwrap/cc/opt/local/bin/mpicc-mpich-mp -dynamiclib -install_name /opt/local/lib/libpord.dylib graph.o gbipart.o gbisect.o ddcreate.o ddbisect.o nestdiss.o multisector.o gelim.o bucket.o tree.o symbfac.o interface.o sort.o minpriority.o -o libpord.dylib :info:build ld: unknown options: -commons :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[1]: *** [libpord.dylib] Error 1
Attachments (1)
Change History (9)
Changed 12 months ago by murrayE
comment:1 Changed 12 months ago by catap (Kirill A. Korinsky)
murrayE, unfortunately I haven't got Sonoma to test a fix. But if you can help me by edit a port file via port edit mumps
and adding somewhere after -fPIC
a line: configure.ldflags-append -Wl,-ld_classic
.
comment:2 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to MarcusCalhoun-Lopez |
---|---|
Status: | new → assigned |
Summary: | mumps-5.6.2_0+gfortran+mpich+openblas.darwin_23.arm64 fails to build under Sonoma 14.1.1 → mumps @5.6.2_0+gfortran+mpich+openblas: ld: unknown options: -commons |
comment:3 follow-up: 5 Changed 12 months ago by Dave-Allured (Dave Allured)
I checked source code and port files for Mumps 5.6.2. -commons is not specified or needed anywhere by Mumps, because Mumps does not use fortran COMMON or EQUIVALENCE anywhere. (Reference: Xcode docs for "ld".)
Meanwhile, it looks like -commons is being injected here from /opt/local/bin/mpicc-mpich-mp. -commons is a known problem with the Sonoma/Xcode 15.0 linker. So check mpicc-mpich for -commons problems. It is possible that there is already an open ticket for this. That is all I have time for right now.
Oh yeah, I agree that @catap's -ld_classic suggestion may be a viable temporary workaround. That is also tricky because the previous linker will choke if it gets that flag unintentionally.
comment:4 Changed 12 months ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
comment:5 follow-up: 6 Changed 12 months ago by catap (Kirill A. Korinsky)
Replying to Dave-Allured:
Meanwhile, it looks like -commons is being injected here from /opt/local/bin/mpicc-mpich-mp. -commons is a known problem with the Sonoma/Xcode 15.0 linker. So check mpicc-mpich for -commons problems. It is possible that there is already an open ticket for this. That is all I have time for right now.
So, this means that as soon as mpich is updated, it should be fixed as well
comment:6 Changed 12 months ago by Dave-Allured (Dave Allured)
Replying to catap:
So, this means that as soon as mpich is updated, it should be fixed as well
Yes I expect so. Alternatively if the upcoming Xcode 15.1 linker fixes -commons, that should also fix this. However, given the complete lack of intelligence about -commons in Apple's various Xcode release notes, I do not hold out much hope for that.
comment:7 Changed 12 months ago by kencu (Ken)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
duplicate of #68346, which is tracking the issue with -commons
main.log