[MacPorts] #68908: py-numpy: pep517 backend broken: ERROR: Unknown compiler(s): [['cython'], ['cython3']]
MacPorts
noreply at macports.org
Sun Dec 17 06:46:27 UTC 2023
#68908: py-numpy: pep517 backend broken: ERROR: Unknown compiler(s): [['cython'],
['cython3']]
-------------------------+-------------------------------------------------
Reporter: | Owner: michaelld
barracuda156 |
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: tiger, leopard, snowleopard,
Port: | powerpc
py311-numpy |
-------------------------+-------------------------------------------------
Comment (by barracuda156):
I have fixed the bug in `meson-python`, now the build is recognized as
native, but fails on:
{{{
---> Configuring py311-numpy
---> Building py311-numpy
Executing: cd "/opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_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_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work
* Getting build dependencies for wheel...
* Building wheel...
+
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-meson/meson/meson.py setup
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1 /opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/numpy-1.26.1
/.mesonpy-bjry3rb8/build -Dbuildtype=release -Db_ndebug=if-release
-Db_vscrt=md --native-file=/opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/numpy-1.26.1
/.mesonpy-bjry3rb8/build/meson-python-native-file.ini
Traceback (most recent call last):
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/mesonmain.py", line 194, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/msetup.py", line 358, in run
app.generate()
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/msetup.py", line 183, in generate
return self._generate(env, capture, vslite_ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/msetup.py", line 228, in _generate
intr.run()
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreter/interpreter.py", line 2997, in run
super().run()
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 164, in
run
self.evaluate_codeblock(self.ast, start=1)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 190, in
evaluate_codeblock
raise e
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 182, in
evaluate_codeblock
self.evaluate_statement(cur)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 196, in
evaluate_statement
return self.function_call(cur)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 521, in
function_call
res = func(node, func_args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 277, in
wrapper
return f(*nargs, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 596, in
wrapper
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreter/interpreter.py", line 2409, in
func_subdir
self.evaluate_codeblock(codeblock)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 190, in
evaluate_codeblock
raise e
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 182, in
evaluate_codeblock
self.evaluate_statement(cur)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 206, in
evaluate_statement
return self.evaluate_if(cur)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 301, in
evaluate_if
self.evaluate_codeblock(i.block)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 190, in
evaluate_codeblock
raise e
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 182, in
evaluate_codeblock
self.evaluate_statement(cur)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 228, in
evaluate_statement
self.evaluate_foreach(cur)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 472, in
evaluate_foreach
self.evaluate_codeblock(node.block)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 190, in
evaluate_codeblock
raise e
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 182, in
evaluate_codeblock
self.evaluate_statement(cur)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 206, in
evaluate_statement
return self.evaluate_if(cur)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 306, in
evaluate_if
self.evaluate_codeblock(node.elseblock)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 190, in
evaluate_codeblock
raise e
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 182, in
evaluate_codeblock
self.evaluate_statement(cur)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 198, in
evaluate_statement
self.assignment(cur)
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 635, in
assignment
value = self.evaluate_statement(node.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 196, in
evaluate_statement
return self.function_call(cur)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/interpreterbase.py", line 521, in
function_call
res = func(node, func_args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 826, in
wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 826, in
wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 826, in
wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 4 more times]
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 109, in
wrapped
ret = f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 127, in
wrapped
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 277, in
wrapper
return f(*nargs, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreterbase/decorators.py", line 596, in
wrapper
return f(*wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreter/interpreter.py", line 1774, in
func_dependency
d = df.lookup(kwargs)
^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreter/dependencyfallbacks.py", line 355, in
lookup
dep = func(kwargs, func_args, func_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/interpreter/dependencyfallbacks.py", line 87, in
_do_dependency
dep = dependencies.find_external_dependency(name, self.environment,
kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/dependencies/detect.py", line 124, in
find_external_dependency
d = c()
^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/dependencies/blas_lapack.py", line 524, in __init__
if environment.machines[for_machine].is_darwin() and
self.check_macOS_recent_enough():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
numpy/py311-numpy/work/numpy-1.26.1/vendored-
meson/meson/mesonbuild/dependencies/blas_lapack.py", line 529, in
check_macOS_recent_enough
sdk_version = subprocess.run(cmd, capture_output=True, check=True,
text=True).stdout.strip()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py",
line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['xcrun', '-sdk', 'macosx',
'--show-sdk-version']' returned non-zero exit status 64.
The Meson build system
Version: 1.2.99
Source dir: /opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/numpy-1.26.1
Build dir: /opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/numpy-1.26.1
/.mesonpy-bjry3rb8/build
Build type: native build
Project name: NumPy
Project version: 1.26.1
C compiler for the host machine: /opt/local/bin/gcc-mp-12 (gcc 12.3.0
"gcc-mp-12 (MacPorts gcc12 12.3.0_0) 12.3.0")
C linker for the host machine: /opt/local/bin/gcc-mp-12 ld64 97.17
C++ compiler for the host machine: /opt/local/bin/g++-mp-12 (gcc 12.3.0
"g++-mp-12 (MacPorts gcc12 12.3.0_0) 12.3.0")
C++ linker for the host machine: /opt/local/bin/g++-mp-12 ld64 97.17
Cython compiler for the host machine: /opt/local/bin/cython-3.11 (cython
0.29.34)
Host machine cpu family: ppc
Host machine cpu: power macintosh
Program python found: YES
(/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11)
Found pkg-config: /opt/local/bin/pkg-config (0.29.2)
Run-time dependency python found: YES 3.11
Has header "Python.h" with dependency python-3.11: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
Message: Disabling CPU feature detection due to unsupported architecture:
"ppc"
Configuring npy_cpu_dispatch_config.h using configuration
Message:
CPU Optimization Options
baseline:
Requested : none
Enabled :
dispatch:
Requested : none
Enabled :
Library m found: YES
Found CMake: /opt/local/bin/cmake (3.27.2)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency scipy-openblas found: NO (tried pkgconfig, framework
and cmake)
WARNING: MKLROOT env var set to /opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/numpy-1.26.1
/.mesonpy-bjry3rb8/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_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/numpy-1.26.1
/.mesonpy-bjry3rb8/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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68908#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list