[MacPorts] #69295: lapack @3.12.0_0+gfortran+openblas (and +accelerate) fails to build on MacOS 10.15 on x86_64

MacPorts noreply at macports.org
Wed Feb 7 12:29:54 UTC 2024


#69295: lapack @3.12.0_0+gfortran+openblas (and +accelerate) fails to build on
MacOS 10.15 on x86_64
----------------------+----------------------
  Reporter:  Gandoon  |      Owner:  tenomoto
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.9.1
Resolution:           |   Keywords:  catalina
      Port:  lapack   |
----------------------+----------------------

Old description:

> 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 `+gfortran`but 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 the
> same error message.

New description:

 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 `+gfortran`but 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).

--

Comment (by Gandoon):

 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.

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


More information about the macports-tickets mailing list