[MacPorts] #66577: py311-numpy uses -march=native on PPC, which breaks the build

MacPorts noreply at macports.org
Sat Apr 15 04:12:54 UTC 2023


#66577: py311-numpy uses -march=native on PPC, which breaks the build
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  michaelld
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.0
Resolution:                |   Keywords:  snowleopard, rosetta, powerpc
      Port:  py311-numpy   |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Replying to [comment:1 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
 }}}

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


More information about the macports-tickets mailing list