Opened 8 months ago

Last modified 7 months ago

#69295 closed defect

lapack @3.12.0_0+gfortran+openblas (and +accelerate) fails to build on MacOS 10.15 on x86_64 — at Version 2

Reported by: Gandoon (Erik Hedlund) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: catalina Cc: Dave-Allured (Dave Allured)
Port: lapack

Description (last modified by Gandoon (Erik Hedlund))

Trying to upgrade lapack +gfortran +openblas from @3.11.0_1 to 3.12.0_0 on a legacy system, MacOS 10.15.7. Last successful build was the one I am trying to upgrade from, built on 22 January 2024. See an excerpt from the attached log below.

. . .
:info:build   "_ztrsm_64_", referenced from:
:info:build       _cblas_ztrsm_64 in cblas_ztrsm.c.o
:info:build   "_ztrsv_64_", referenced from:
:info:build       _cblas_ztrsv_64 in cblas_ztrsv.c.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [lib/libcblas.3.12.0.dylib] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_lapack/lapack/work/build'
:info:build make[1]: *** [CBLAS/src/CMakeFiles/cblas.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build [  9%] Building Fortran object SRC/CMakeFiles/lapack.dir/slarfb.f.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_lapack/lapack/work/build/SRC && /opt/local/bin/ccache /o
pt/local/bin/gfortran-mp-13 -Dlapack_EXPORTS  -pipe -Os -m64 -frecursive -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -c /opt/local/var/macports/build/_
opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_lapack/lapack/work/lapack-3.12.0/SRC/slarfb.f -o CMakeFiles/lapack.dir/slarfb.f.o
. . .
[ 47%] Built target lapack
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_lapack/lapack/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_lapack/lapack/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_lapack/lapack/work/build" && /usr/bin/make -j8 -w all VERBOSE=ON
Exit code: 2
Error: Failed to build lapack: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_lapack/lapack/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

As can be seen, quite early on in the build process some symbols cannot be found. After that a bunch more is built successfully before the whole thing grinds to an unrecoverable halt.

Does anyone have a suggestion as for what to do here? It is not clear to me exactly what is the problem. I did also try using +accelerate instead, despite being uncertain whether this will negatively impact ports depending on lapack, but the error persists. I finally also tried using +gcc13 instead of +gfortranbut as expected, that was equally unsuccessful.

I noticed that there actually seems to be another, older active ticket that seems to be related, using +accelerate +gcc10: #67262 but with a similar error message (different symbol, but the same libcblas is involved).

Change History (4)

Changed 8 months ago by Gandoon (Erik Hedlund)

Attachment: lapack-main3.log added

Log from failed build of +openblas on MacOS 10.15

Changed 8 months ago by Gandoon (Erik Hedlund)

Attachment: lapack-main4+accelerate.log added

Log from failed build of +accelerate on MacOS 10.15

comment:1 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: Dave-Allured added
Keywords: OpenBlas accelerate removed
Owner: set to tenomoto
Status: newassigned

comment:2 Changed 8 months ago by Gandoon (Erik Hedlund)

Description: modified (diff)

My recent edit of the ticket just clarified that it was not exactly the same issue as in #67262, but I expect it is similar enough to mention.

Note: See TracTickets for help on using tickets.