[MacPorts] #68329: py311-scipy @1.10.1_0+gfortran+openblas not building on Sonoma apple silicon

MacPorts noreply at macports.org
Fri Nov 3 16:07:18 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 jowens):

 I am not sure this is related / the same: my install is failing because
 "No BLAS/LAPACK libraries found" but I have OpenBLAS installed, so not
 sure what's gone wrong. I'm vaguely thinking this is a different problem
 but my install will eventually fail for the same reason as those above?



 {{{
 $ sudo port clean py311-scipy
 --->  Cleaning py311-scipy
 $ port installed | grep -i openblas
   OpenBLAS @0.3.24_0+gcc13+lapack+native (active)
 $ sudo port install py311-scipy
 --->  Computing dependencies for py311-scipy
 --->  Fetching archive for py311-scipy
 --->  Attempting to fetch
 py311-scipy-1.10.1_0+gfortran+openblas.darwin_23.arm64.tbz2 from
 http://mirror.fcix.net/macports/packages/py311-scipy
 --->  Attempting to fetch
 py311-scipy-1.10.1_0+gfortran+openblas.darwin_23.arm64.tbz2 from
 https://packages.macports.org/py311-scipy
 --->  Attempting to fetch
 py311-scipy-1.10.1_0+gfortran+openblas.darwin_23.arm64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/py311-scipy
 --->  Fetching distfiles for py311-scipy
 --->  Verifying checksums for py311-scipy
 --->  Extracting py311-scipy
 --->  Applying patches to py311-scipy
 --->  Configuring py311-scipy
 --->  Building py311-scipy
 Error: Failed to build py311-scipy: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-scipy/py311-scipy/main.log for
 details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port py311-scipy failed
 $ tail -40
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-scipy/py311-scipy/main.log
 :info:build     the LAPACK environment variable.
 :info:build   return getattr(self, '_calc_info_{}'.format(name))()
 :info:build INFO: lapack_src_info:
 :info:build INFO:   NOT AVAILABLE
 :info:build INFO:
 :info:build
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/numpy/distutils/system_info.py:1974: UserWarning:
 :info:build     Lapack (http://www.netlib.org/lapack/) sources not found.
 :info:build     Directories to search for the sources can be specified in
 the
 :info:build     numpy/distutils/site.cfg file (section [lapack_src]) or by
 setting
 :info:build     the LAPACK_SRC environment variable.
 :info:build   return getattr(self, '_calc_info_{}'.format(name))()
 :info:build INFO:   NOT AVAILABLE
 :info:build INFO:
 :info:build Traceback (most recent call last):
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 scipy/py311-scipy/work/scipy-1.10.1/setup.py", line 533, in <module>
 :info:build     setup_package()
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 scipy/py311-scipy/work/scipy-1.10.1/setup.py", line 529, in setup_package
 :info:build     setup(**metadata)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/numpy/distutils/core.py", line 136, in setup
 :info:build     config = configuration()
 :info:build              ^^^^^^^^^^^^^^^
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 scipy/py311-scipy/work/scipy-1.10.1/setup.py", line 431, in configuration
 :info:build     raise NotFoundError(msg)
 :info:build numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK
 libraries found. Note: Accelerate is no longer supported.
 :info:build To build Scipy from sources, BLAS & LAPACK libraries need to
 be installed.
 :info:build See site.cfg.example in the Scipy source directory and
 :info:build https://docs.scipy.org/doc/scipy/reference/building/index.html
 for details.
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-scipy/py311-scipy/work/scipy-1.10.1"
 &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 setup.py --no-user-cfg config_fc --fcompiler gnu95 --f77exec
 /opt/local/bin/gfortran-mp-13 --f77flags='-m64 -Os -fno-second-underscore'
 --f90exec /opt/local/bin/gfortran-mp-13 --f90flags='-m64 -Os -fno-second-
 underscore' config --cc /usr/bin/clang --include-dirs /opt/local/include
 --library-dirs /opt/local/lib build -j10
 :info:build Exit code: 1
 :error:build Failed to build py311-scipy: command execution failed
 :debug:build Error code: CHILDSTATUS 83145 1
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-scipy/py311-scipy/main.log for
 details.
 }}}

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


More information about the macports-tickets mailing list