[MacPorts] #68329: py311-scipy @1.10.1_0+gfortran+openblas not building on Sonoma apple silicon
MacPorts
noreply at macports.org
Wed Oct 4 12:01:11 UTC 2023
#68329: py311-scipy @1.10.1_0+gfortran+openblas not building on Sonoma apple
silicon
--------------------------+-----------------------
Reporter: quintusdias | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: py311-scipy |
--------------------------+-----------------------
Comment (by cjones051073):
I am also running into this, although the error seems to be slightly
different for me. The important part would appear to be
{{{
INFO: /usr/bin/clang /opt/local/var/macports/build
/_Users_chris_Projects_MacPorts_ports_python_py-
scipy/py311-scipy/work/.tmp/tmplvun8a3d/opt/local/var/macports/build
/_Users_chris_Projects_MacPorts_ports_python_py-
scipy/py311-scipy/work/.tmp/tmplvun8a3d/source.o -L/opt/local/lib
-lopenblas -o /opt/local/var/macports/build
/_Users_chris_Projects_MacPorts_ports_python_py-
scipy/py311-scipy/work/.tmp/tmplvun8a3d/a.out
ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in
'/opt/local/lib/libopenblas-r1.dylib'
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
}}}
I strongly suspect this is just the Xcode 15 linker issue again, having
trouble with the openblas dylib which was created in part with GCC.
I've tried a few ways to get the build to go back to the legacy liker,
which should work with something like
{{{
if {${os.platform} eq "darwin" && ${os.major} >= 22} {
if { [vercmp ${xcodeversion} >= 15.0] || [vercmp ${xcodecltversion} >=
15.0] } {
# On macOS13 and newer ensure the 'legacy' linker is used as GCC
currently has problems
# with the new default linker in Xcode 15. See e.g.
# https://developer.apple.com/documentation/xcode-release-
notes/xcode-15-release-notes#Linking
# https://discussions.apple.com/thread/255137447
# https://developer.apple.com/forums/thread/737707
# https://github.com/Homebrew/homebrew-core/issues/145991
configure.ldflags-append -Wl,-ld_classic
}
}
}}}
but this port does not seem to be respecting the above flags.
--
Ticket URL: <https://trac.macports.org/ticket/68329#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list