[MacPorts] #65395: py-numpy: fails to build on macOS 10.14

MacPorts noreply at macports.org
Wed Jul 20 13:42:08 UTC 2022


#65395: py-numpy: fails to build on macOS 10.14
-----------------------+-----------------------
  Reporter:  ra1nb0w   |      Owner:  michaelld
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  py-numpy  |
-----------------------+-----------------------

Comment (by michaelld):

 OK so doing `use_parallel_build=no`, I reliably now see this:
 {{{
 :info:build creating
 build/temp.macosx-10.14-x86_64-cpython-310/build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath
 :info:build INFO: compile options: '-DNPY_INTERNAL_BUILD=1
 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1
 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/multiarray
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/common
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath
 -Inumpy/core/include
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/include/numpy
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/distutils/include
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/npysort
 -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.10/include/python3.10
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/common
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/npymath -c'
 :info:build extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt
 -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd
 -mavx512vl -mavx512bw -mavx512dq'
 :info:build INFO: gcc-mp-12:
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/multiarray/argfunc.dispatch.avx512_skx.c
 :info:build INFO: gcc-mp-12:
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.avx512_skx.c
 :info:build INFO: gcc-mp-12:
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_minmax.dispatch.avx512_skx.c
 :info:build INFO: gcc-mp-12:
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_umath_fp.dispatch.avx512_skx.c
 :info:build INFO: gcc-mp-12:
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.avx512_skx.c
 :info:build INFO: gcc-mp-12:
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_hyperbolic.dispatch.avx512_skx.c
 :info:build <stdin>:4930:20: error: invalid operand for instruction
 :info:build         vfpclasspsz     $159, %zmm0, %k2
 :info:build                               ^~~~~
 :info:build <stdin>:6084:20: error: invalid operand for instruction
 :info:build         vfpclasspdz     $159, %zmm0, %k2
 :info:build                               ^~~~~
 :info:build error: Command "/opt/local/bin/gcc-mp-12 -Wno-unused-result
 -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv
 -O3 -Wall -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/multiarray
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/common
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath
 -Inumpy/core/include
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/include/numpy
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/distutils/include
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/npysort
 -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.10/include/python3.10
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/common
 -Ibuild/src.macosx-10.14-x86_64-3.10/numpy/core/src/npymath -c
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.avx512_skx.c
 -o
 build/temp.macosx-10.14-x86_64-cpython-310/build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.avx512_skx.o
 -MMD -MF
 build/temp.macosx-10.14-x86_64-cpython-310/build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.avx512_skx.o.d
 -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma
 -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq"
 failed with exit status 1
 :info:build INFO:
 :info:build ########### EXT COMPILER OPTIMIZATION ###########
 :info:build INFO: Platform      :
 :info:build   Architecture: x64
 :info:build   Compiler    : gcc
 :info:build CPU baseline  :
 :info:build   Requested   : 'min'
 :info:build   Enabled     : SSE SSE2 SSE3
 :info:build   Flags       : -msse -msse2 -msse3
 :info:build   Extra checks: none
 :info:build CPU dispatch  :
 :info:build   Requested   : 'max -xop -fma4'
 :info:build   Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
 AVX512F AVX512CD AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
 :info:build   Generated   :
 :info:build               :
 :info:build   SSE41       : SSE SSE2 SSE3 SSSE3
 :info:build   Flags       : -msse -msse2 -msse3 -mssse3 -msse4.1
 :info:build   Extra checks: none
 :info:build   Detect      : SSE SSE2 SSE3 SSSE3 SSE41
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_unary_fp.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
 :info:build               :
 :info:build   SSE42       : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT
 :info:build   Flags       : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt
 -msse4.2
 :info:build   Extra checks: none
 :info:build   Detect      : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/multiarray/argfunc.dispatch.c
 :info:build               :
 :info:build   AVX2        : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
 F16C
 :info:build   Flags       : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt
 -msse4.2 -mavx -mf16c -mavx2
 :info:build   Extra checks: none
 :info:build   Detect      : AVX F16C AVX2
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/multiarray/argfunc.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_arithm_fp.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_minmax.dispatch.c
 :info:build               :
 :info:build   (FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
 F16C
 :info:build   Flags       : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt
 -msse4.2 -mavx -mf16c -mfma -mavx2
 :info:build   Extra checks: none
 :info:build   Detect      : AVX F16C FMA3 AVX2
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_trigonometric.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_hyperbolic.dispatch.c
 :info:build               :
 :info:build   AVX512F     : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
 F16C FMA3 AVX2
 :info:build   Flags       : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt
 -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx
 :info:build   Extra checks: AVX512F_REDUCE
 :info:build   Detect      : AVX512F
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_arithm_fp.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_trigonometric.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.c
 :info:build               :
 :info:build   AVX512_SKX  : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX
 F16C FMA3 AVX2 AVX512F AVX512CD
 :info:build   Flags       : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt
 -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd
 -mavx512vl -mavx512bw -mavx512dq
 :info:build   Extra checks: AVX512BW_MASK AVX512DQ_MASK
 :info:build   Detect      : AVX512_SKX
 :info:build               : numpy/core/src/npysort/x86-qsort.dispatch.cpp
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/multiarray/argfunc.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_minmax.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_umath_fp.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.c
 :info:build               :
 build/src.macosx-10.14-x86_64-3.10/numpy/core/src/umath/loops_hyperbolic.dispatch.c
 :info:build INFO: CCompilerOpt.cache_flush[857] : write cache to path ->
 /opt/local/var/macports/build
 /_Volumes_Common_MacPorts_ports_github_macports_python_py-
 numpy/py310-numpy/work/numpy-1.23.1/build/temp.macosx-10.14-x86_64-cpython-310/ccompiler_opt_cache_ext.py
 :info:build INFO:
 :info:build ########### CLIB COMPILER OPTIMIZATION ###########
 :info:build INFO: Platform      :
 :info:build   Architecture: x64
 :info:build   Compiler    : gcc
 :info:build CPU baseline  :
 :info:build   Requested   : 'min'
 :info:build   Enabled     : SSE SSE2 SSE3
 :info:build   Flags       : -msse -msse2 -msse3
 :info:build   Extra checks: none
 :info:build CPU dispatch  :
 :info:build   Requested   : 'max -xop -fma4'
 :info:build   Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
 AVX512F AVX512CD AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
 :info:build   Generated   : none
 :info:build INFO: CCompilerOpt.cache_flush[857] : write cache to path ->
 /opt/local/var/macports/build
 /_Volumes_Common_MacPorts_ports_github_macports_python_py-
 numpy/py310-numpy/work/numpy-1.23.1/build/temp.macosx-10.14-x86_64-cpython-310/ccompiler_opt_cache_clib.py
 }}}

 Issuing the command noted to fail from `${worksrcpath}/numpy-1.23.1`
 indeed shows the same error. Appending `-S` to save the generated assembly
 code indeed shows the quoted lines.

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


More information about the macports-tickets mailing list