Opened 16 months ago

Last modified 6 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)

main.log (122.7 KB) - added by barracuda156 16 months ago.

Download all attachments as: .zip

Change History (7)

Changed 16 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 16 months ago by kencu (Ken)

is this on a 10.6 system running rosetta, or on 10.6-for-PPC?

comment:2 in reply to:  1 Changed 16 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 16 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 in reply to:  1 Changed 13 months ago by barracuda156

Edited: Sorry, ignore this, outdated portfile. Will try again now.

UPD. Yeah, it still fails with -march= flag.

: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)
:info:build INFO: C compiler: /opt/local/bin/gcc-mp-12 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/
: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: '-O3'
:info:build INFO: CCompilerOpt.cc_test_flags[1073] : testing flags (-Werror)
:info:build INFO: C compiler: /opt/local/bin/gcc-mp-12 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/
: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: '-Werror'
Last edited 13 months ago by barracuda156 (previous) (diff)

comment:5 Changed 6 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:6 Changed 6 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.