[MacPorts] #68908: py311-numpy @1.26.1 ignores env vars: ERROR: Unknown compiler(s): [['cython'], ['cython3']]

MacPorts noreply at macports.org
Sun Dec 17 05:25:55 UTC 2023


#68908: py311-numpy @1.26.1 ignores env vars: ERROR: Unknown compiler(s):
[['cython'], ['cython3']]
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  michaelld
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  tiger, leopard, snowleopard,
      Port:              |  powerpc
  py311-numpy            |
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Ok, so one thing which broken this was pep517, which was unnecessarily
 forced for python <3.12. Without that it builds (though `gfortran` is not
 found and, I believe, arch optimizations will not be done on `ppc`, since
 detection was broken long back):
 {{{
 --->  Configuring py311-numpy
 --->  Building py311-numpy
 Executing:  cd "/opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/numpy-1.26.1"
 &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 setup.py --no-user-cfg build -j6
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/numpy-1.26.1/setup.py:17: DeprecationWarning: The
 distutils package is deprecated and slated for removal in Python 3.12. Use
 setuptools or check PEP 632 for potential alternatives
   from distutils.errors import CompileError
 Running from numpy source directory.
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/numpy-1.26.1/setup.py:75: 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


   import numpy.distutils.command.sdist
 Processing numpy/random/_bounded_integers.pxd.in
 Processing numpy/random/_bounded_integers.pyx.in
 Processing numpy/random/_common.pyx
 Processing numpy/random/_generator.pyx
 Processing numpy/random/_mt19937.pyx
 Processing numpy/random/_pcg64.pyx
 Processing numpy/random/_philox.pyx
 Processing numpy/random/_sfc64.pyx
 Processing numpy/random/bit_generator.pyx
 Processing numpy/random/mtrand.pyx
 fatal: not a git repository (or any of the parent directories): .git
 Cythonizing sources
 INFO: blas_opt_info:
 INFO: blas_armpl_info:
 INFO: customize UnixCCompiler
 INFO:   libraries armpl_lp64_mp not found in
 ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib',
 '/usr/lib', '/opt/local/lib']
 INFO:   NOT AVAILABLE
 INFO:
 INFO: blas_mkl_info:
 INFO: Disabled blas_mkl_info: (MKLROOT is None)
 INFO: Disabled blas_mkl_info: (MKLROOT is None)
 INFO:   libraries mkl_rt not found in []
 INFO:   NOT AVAILABLE
 INFO:
 INFO: blas_ssl2_info:
 INFO:   libraries fjlapackexsve not found in
 ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib',
 '/usr/lib', '/opt/local/lib']
 INFO:   NOT AVAILABLE
 INFO:
 INFO: blis_info:
 INFO:   FOUND:
 INFO:     libraries = ['blis', 'blis']
 INFO:     library_dirs = ['/opt/local/lib']
 INFO:     define_macros = [('HAVE_CBLAS', None)]
 INFO:     include_dirs = ['/opt/local/include',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include']
 INFO:     language = c
 INFO:
 INFO:   FOUND:
 INFO:     libraries = ['blis', 'blis']
 INFO:     library_dirs = ['/opt/local/lib']
 INFO:     define_macros = [('HAVE_CBLAS', None)]
 INFO:     include_dirs = ['/opt/local/include',
 '/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include']
 INFO:     language = c
 INFO:
 dyld: lazy symbol binding failed: Symbol not found: _apr_xlate_open
   Referenced from: /opt/local/lib/libsvn_subr-1.0.dylib
   Expected in: /opt/local/lib/libaprutil-1.0.dylib

 dyld: Symbol not found: _apr_xlate_open
   Referenced from: /opt/local/lib/libsvn_subr-1.0.dylib
   Expected in: /opt/local/lib/libaprutil-1.0.dylib

 non-existing path in 'numpy/distutils': 'site.cfg'
 non-existing path in 'numpy/f2py': 'backends/meson.build.template'
 INFO: lapack_opt_info:
 INFO: lapack_armpl_info:
 INFO:   libraries armpl_lp64_mp not found in
 ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib',
 '/usr/lib', '/opt/local/lib']
 INFO:   NOT AVAILABLE
 INFO:
 INFO: lapack_mkl_info:
 INFO: Disabled lapack_mkl_info: (MKLROOT is None)
 INFO: Disabled lapack_mkl_info: (MKLROOT is None)
 INFO:   libraries mkl_rt not found in []
 INFO:   NOT AVAILABLE
 INFO:
 INFO: lapack_ssl2_info:
 INFO:   libraries fjlapackexsve not found in
 ['/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib',
 '/usr/lib', '/opt/local/lib']
 INFO:   NOT AVAILABLE
 INFO:
 INFO: openblas_lapack_info:
 INFO: C compiler: /opt/local/bin/gcc-mp-12 -fno-common -dynamic -DNDEBUG
 -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/

 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports/build
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-numpy
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-numpy/py311-numpy/work/.tmp
 creating /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31
 INFO: compile options: '-c'
 INFO: gcc-mp-12: /opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/source.c
 INFO: /opt/local/bin/gcc-mp-12 -arch ppc /opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/source.o -L/opt/local/lib
 -lopenblas -o /opt/local/var/macports/build
 /_opt_PPCSnowLeopardPorts_python_py-
 numpy/py311-numpy/work/.tmp/tmpdo7omz31/a.out
 INFO:   FOUND:
 INFO:     libraries = ['openblas', 'openblas']
 INFO:     library_dirs = ['/opt/local/lib']
 INFO:     language = c
 INFO:     define_macros = [('HAVE_CBLAS', None)]
 INFO:     runtime_library_dirs = ['/opt/local/lib']
 INFO:
 INFO:   FOUND:
 INFO:     libraries = ['openblas', 'openblas']
 INFO:     library_dirs = ['/opt/local/lib']
 INFO:     language = c
 INFO:     define_macros = [('HAVE_CBLAS', None)]
 INFO:     runtime_library_dirs = ['/opt/local/lib']
 INFO:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/distutils/dist.py:274:
 UserWarning: Unknown distribution option: 'define_macros'
   warnings.warn(msg)
 running build
 running config_cc
 INFO: unifing config_cc, config, build_clib, build_ext, build commands
 --compiler options
 running config_fc
 INFO: unifing config_fc, config, build_clib, build_ext, build commands
 --fcompiler options
 running build_src
 INFO: build_src
 INFO: building py_modules sources
 creating build
 creating build/src.macosx-10.6-ppc-3.11
 creating build/src.macosx-10.6-ppc-3.11/numpy
 creating build/src.macosx-10.6-ppc-3.11/numpy/distutils
 INFO: building library "npymath" sources
 WARN: Could not locate executable gfortran
 WARN: Could not locate executable f95
 creating build/src.macosx-10.6-ppc-3.11/numpy/core
 creating build/src.macosx-10.6-ppc-3.11/numpy/core/src
 creating build/src.macosx-10.6-ppc-3.11/numpy/core/src/npymath
 }}}

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


More information about the macports-tickets mailing list