Opened 22 months ago
Last modified 11 months ago
#66577 assigned defect
py311-numpy uses -march=native on PPC, which breaks the build
Reported by: | barracuda156 | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.0 |
Keywords: | snowleopard, rosetta, powerpc | Cc: | Dave-Allured (Dave Allured) |
Port: | py311-numpy |
Description
:info:build INFO: compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -Ibuild/src.macosx-10.6-ppc-3.11/numpy/core/src/common -Ibuild/src.macosx-10.6-ppc-3.11/numpy/core/src/npymath -c' :info:build extra options: '-march=native' :info:build WARN: CCompilerOpt.dist_test[630] : CCompilerOpt._dist_test_spawn[764] : Command (/opt/local/bin/gcc-mp-12 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/ -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -Ibuild/src.macosx-10.6-ppc-3.11/numpy/core/src/common -Ibuild/src.macosx-10.6-ppc-3.11/numpy/core/src/npymath -c /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.23.5/numpy/distutils/checks/test_flags.c -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-numpy/py311-numpy/work/.tmp/tmpgbslfmky/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.23.5/numpy/distutils/checks/test_flags.o -MMD -MF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-numpy/py311-numpy/work/.tmp/tmpgbslfmky/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.23.5/numpy/distutils/checks/test_flags.o.d -march=native) failed with exit status 1 output -> :info:build gcc-mp-12: error: unrecognized command-line option '-march=native'; did you mean '-mcpu=native'? :info:build WARN: CCompilerOpt.cc_test_flags[1077] : testing failed :info:build INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-O3)
And then:
:info:build ########### CLIB COMPILER OPTIMIZATION ########### :info:build INFO: Platform : :info:build Architecture: unsupported :info:build Compiler : gcc :info:build CPU baseline : :info:build Requested : optimization disabled :info:build Enabled : none :info:build Flags : none :info:build Extra checks: none :info:build Requested : optimization disabled :info:build CPU dispatch : :info:build Enabled : none :info:build Generated : none :info:build INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /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.23.5/build/temp.macosx-10.6-ppc-3.11/ccompiler_opt_cache_clib.py :info:build * Building wheel... :info:build ERROR Backend subprocess exited when trying to invoke build_wheel :info:build 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.23.5" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m build --wheel --no-isolation --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-numpy/py311-numpy/work --skip-dependency-check :info:build Exit code: 1 :error:build Failed to build py311-numpy: command execution failed :debug:build Error code: CHILDSTATUS 90500 1
Attachments (1)
Change History (7)
Changed 22 months ago by barracuda156
comment:1 follow-ups: 2 4 Changed 22 months ago by kencu (Ken)
comment:2 Changed 22 months ago by barracuda156
Replying to kencu:
is this on a 10.6 system running rosetta, or on 10.6-for-PPC?
Rosetta. I do not open tickets specifically for 10.6 PPC (if a failure is not also confirmed on 10.5 and/or Rosetta), and whenever I refer to it for w/e, that is done explicitly.
comment:3 Changed 22 months ago by barracuda156
However, while the failure may be specific to Rosetta, PPC support in non-existent there. I will see if I can fix that – at that Altivec is used, for instance.
comment:4 Changed 18 months ago by barracuda156
Replying to kencu:
is this on a 10.6 system running rosetta, or on 10.6-for-PPC?
It got further broken. Now it fails even earlier:
---> Building py311-numpy Executing: cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_python_py-numpy/py311-numpy/work/numpy-1.23.5" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_PPCRosettaPorts_python_py-numpy/py311-numpy/work --skip-dependency-check * Building wheel... Running from numpy source directory. <string>:86: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python >= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools < 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 413, in build_wheel return self._build_with_temp_dir(['bdist_wheel'], '.whl', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir self.run_setup() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 485, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/build_meta.py", line 335, in run_setup exec(code, locals()) File "<string>", line 101, in <module> File "/opt/local/var/macports/build/_opt_PPCRosettaPorts_python_py-numpy/py311-numpy/work/numpy-1.23.5/numpy/distutils/core.py", line 24, in <module> from numpy.distutils.command import config, config_compiler, \ File "/opt/local/var/macports/build/_opt_PPCRosettaPorts_python_py-numpy/py311-numpy/work/numpy-1.23.5/numpy/distutils/command/build_ext.py", line 22, in <module> from numpy.distutils.ccompiler_opt import new_ccompiler_opt, CCompilerOpt File "/opt/local/var/macports/build/_opt_PPCRosettaPorts_python_py-numpy/py311-numpy/work/numpy-1.23.5/numpy/distutils/ccompiler_opt.py", line 511 ) ^ IndentationError: unindent does not match any outer indentation level ERROR Backend subprocess exited when trying to invoke build_wheel Command failed: cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_python_py-numpy/py311-numpy/work/numpy-1.23.5" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_PPCRosettaPorts_python_py-numpy/py311-numpy/work --skip-dependency-check Exit code: 1
comment:5 Changed 11 months ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
comment:6 Changed 11 months ago by barracuda156
Should actually be not too hard to fix. If arch detection is made sane, it will likely fix the build.
Note: See
TracTickets for help on using
tickets.
is this on a 10.6 system running rosetta, or on 10.6-for-PPC?