[MacPorts] #68545: py311-numpy @1.26.1 build failure - cannot find cython
MacPorts
noreply at macports.org
Wed Oct 25 13:30:36 UTC 2023
#68545: py311-numpy @1.26.1 build failure - cannot find cython
-----------------------+-----------------------
Reporter: RobK88 | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: lion
Port: py-numpy |
-----------------------+-----------------------
Comment (by RobK88):
Here is a workaround. Now `py311-numpy` will find the `py311-cython`
libraries.
{{{
bash-3.2$ port select --summary
Name Selected Options
==== ======== =======
clang none mp-clang-11 mp-clang-14 mp-clang-15 mp-clang-16 mp-
clang-17 mp-clang-3.7 mp-clang-7.0 mp-clang-9.0 none
cython none cython27 cython311 none
gcc none llvm-gcc42 mp-gcc12 mp-gcc13 none
llvm none mp-llvm-11 mp-llvm-14 mp-llvm-15 mp-llvm-16 mp-
llvm-17 mp-llvm-3.4 mp-llvm-3.7 mp-llvm-7.0 mp-llvm-9.0 none
pip none pip311 none
pip2 none none
pip3 none pip311 none
postgresql none postgresql15 none
pygments none py310-pygments py311-pygments none
python none python25-apple python26-apple python27
python27-apple python310 python311 python39 none
python2 none python25-apple python26-apple python27
python27-apple none
python3 none python310 python311 python39 none
ruby none ruby30 none
bash-3.2$
bash-3.2$ sudo port select --set cython cython311
Password:
Selecting 'cython311' for 'cython' succeeded. 'cython311' is now active.
bash-3.2$
bash-3.2$ port outdated
The following installed ports are outdated:
py311-numpy 1.25.2_0 < 1.26.1_0
bash-3.2$ sudo port clean py311-numpy
---> Cleaning py311-numpy
bash-3.2$
bash-3.2$ sudo port -v upgrade outdated
---> Computing dependencies for py311-numpy.
etc
etc
}}}
But the build fails for other reasons:
{{{
The Meson build system
Version: 1.2.99
Source dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py311-numpy/work/numpy-1.26.1
Build dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py311-numpy/work/numpy-1.26.1/.mesonpy-y4fzpkbo/build
Build type: cross build
Project name: NumPy
Project version: 1.26.1
C compiler for the host machine: cc -arch x86_64 (clang 4.2 "Apple LLVM
version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)")
C linker for the host machine: cc -arch x86_64 ld64 136
C++ compiler for the host machine: c++ -arch x86_64 (clang 4.2 "Apple LLVM
version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)")
C++ linker for the host machine: c++ -arch x86_64 ld64 136
Cython compiler for the host machine: cython (cython 0.29.36)
C compiler for the build machine: ccache cc (clang 4.2 "Apple LLVM version
4.2 (clang-425.0.28) (based on LLVM 3.2svn)")
C linker for the build machine: cc ld64 136
C++ compiler for the build machine: ccache c++ (clang 4.2 "Apple LLVM
version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)")
C++ linker for the build machine: c++ ld64 136
Cython compiler for the build machine: cython (cython 0.29.36)
Build machine cpu family: x86
Build machine cpu: i386
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program python3 found: YES
(/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11)
Found Pkg-config: NO
Run-time dependency python found: YES 3.11
Has header "Python.h" with dependency python: YES
Compiler for C supports arguments -fno-strict-aliasing: NO
Compiler for C supports arguments -ftrapping-math: NO
Test features "SSE SSE2 SSE3" : Parial support, missing(SSE SSE2 SSE3)
Test features "SSE" : Unsupported due to Implied feature "SSE2" is not
supported
Test features "SSE2" : Unsupported due to Arguments "-msse, -msse2" are
not supported
Test features "SSE3" : Unsupported due to Implied feature "SSE" is not
supported
Test features "SSSE3" : Unsupported due to Implied feature "SSE" is not
supported
Test features "SSE41" : Unsupported due to Implied feature "SSE" is not
supported
Test features "POPCNT" : Unsupported due to Implied feature "SSE" is not
supported
Test features "SSE42" : Unsupported due to Implied feature "SSE" is not
supported
Test features "AVX" : Unsupported due to Implied feature "SSE" is not
supported
Test features "F16C" : Unsupported due to Implied feature "SSE" is not
supported
Test features "FMA3" : Unsupported due to Implied feature "SSE" is not
supported
Test features "AVX2" : Unsupported due to Implied feature "SSE" is not
supported
Test features "AVX512F" : Unsupported due to Implied feature "SSE" is not
supported
Test features "AVX512CD" : Unsupported due to Implied feature "SSE" is not
supported
Test features "AVX512_KNL" : Unsupported due to Implied feature "SSE" is
not supported
Test features "AVX512_KNM" : Unsupported due to Implied feature "SSE" is
not supported
Test features "AVX512_SKX" : Unsupported due to Implied feature "SSE" is
not supported
Test features "AVX512_CLX" : Unsupported due to Implied feature "SSE" is
not supported
Test features "AVX512_CNL" : Unsupported due to Implied feature "SSE" is
not supported
Test features "AVX512_ICL" : Unsupported due to Implied feature "SSE" is
not supported
Test features "AVX512_SPR" : Unsupported due to Implied feature "SSE" is
not supported
Configuring npy_cpu_dispatch_config.h using configuration
Message:
CPU Optimization Options
baseline:
Requested : min
Enabled :
dispatch:
Requested : max -xop -fma4
Enabled :
Library m found: YES
Found CMake: NO
Run-time dependency scipy-openblas found: NO (tried pkgconfig, framework
and cmake)
WARNING: MKLROOT env var set to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py311-numpy/work/numpy-1.26.1/.mesonpy-y4fzpkbo/build/None, but not
pointing to an MKL install
Run-time dependency mkl found: NO (tried pkgconfig and system)
WARNING: MKLROOT env var set to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py311-numpy/work/numpy-1.26.1/.mesonpy-y4fzpkbo/build/None, but not
pointing to an MKL install
Run-time dependency mkl found: NO (tried pkgconfig and system)
../../numpy/meson.build:119:13: ERROR: Unhandled python exception
This is a Meson bug and should be reported!
ERROR Backend subprocess exited when trying to invoke build_wheel
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py311-numpy/work/numpy-1.26.1" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
-m build --no-isolation --wheel --outdir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-numpy/py311-numpy/work
Exit code: 1
Error: Failed to build py311-numpy: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-numpy/py311-numpy/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68545#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list