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

MacPorts noreply at macports.org
Wed Dec 28 14:37:03 UTC 2022


#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
 Keywords:  snowleopard, rosetta, powerpc  |       Port:  py311-numpy
-------------------------------------------+-------------------------
 {{{
 :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
 }}}

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


More information about the macports-tickets mailing list