Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumPy 1.25.0: "One of the required function to build numpy is not available" #1022

Closed
Peter9897 opened this issue Nov 20, 2023 · 7 comments
Closed

Comments

@Peter9897
Copy link

Peter9897 commented Nov 20, 2023

I wanted to build a numpy wheel with the package build tool, however i get an error when running the build

this is my meta.yaml for numpy:

  name: numpy
  version: "1.25.0"

source:
  url: https://files.pythonhosted.org/packages/d0/b2/fe774844d1857804cc884bba67bec38f649c99d0dc1ee7cbbf1da601357c/numpy-1.25.0.tar.gz

build:
  number: 0

requirements:
  build:
    - Cython 0.29.34
  host:
    - chaquopy-openblas 0.2.20
    - python 

this is my entire build log

build-wheel: cd /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0
build-wheel: rm -rf /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a
build-wheel: mkdir -p /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a
build-wheel: Using cached source archive
build-wheel: tar -C /tmp/build-wheel-qrldswuo -xf numpy-1.25.0.tar.gz
build-wheel: mv /tmp/build-wheel-qrldswuo/numpy-1.25.0 /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src
build-wheel: rm -rf /tmp/build-wheel-qrldswuo
build-wheel: mkdir -p /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements
build-wheel: mkdir -p /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include
build-wheel: mkdir -p /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib
build-wheel: unzip -q -d /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy /home/default/Coding/chaquopy/maven/com/chaquopy/python/target/3.10.6-1/target-3.10.6-1-armeabi-v7a.zip include/* jniLibs/*
build-wheel: mv /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/jniLibs/armeabi-v7a/* /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib
build-wheel: rm -r /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/jniLibs
build-wheel: unzip -d /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements -q /home/default/Coding/chaquopy/server/pypi/dist/chaquopy-openblas/chaquopy_openblas-0.2.20-5-py3-none-android_16_armeabi_v7a.whl
build-wheel: ln -s libsqlite3_chaquopy.so /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib/libsqlite3.so
build-wheel: ln -s libssl_chaquopy.so /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib/libssl.so
build-wheel: ln -s libpython3.10.so /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib/libpython3..so
build-wheel: ln -s libcrypto_chaquopy.so /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib/libcrypto.so
build-wheel: /home/default/Coding/chaquopy/server/pypi/build/_bootstrap/3.10/bin/pip --version
build-wheel: mkdir -p /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env
build-wheel: python3.10 -m venv --without-pip /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env
build-wheel: /home/default/Coding/chaquopy/server/pypi/build/_bootstrap/3.10/bin/pip --python /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/bin/python install Cython==0.29.34 wheel==0.38.1 setuptools==59.2.0 'Cython>=0.29.34,<3.0'
Collecting Cython==0.29.34
  Using cached Cython-0.29.34-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
Collecting wheel==0.38.1
  Using cached wheel-0.38.1-py3-none-any.whl (35 kB)
Collecting setuptools==59.2.0
  Using cached setuptools-59.2.0-py3-none-any.whl (952 kB)
Installing collected packages: wheel, setuptools, Cython
Successfully installed Cython-0.29.34 setuptools-59.2.0 wheel-0.38.1
build-wheel: abi=armeabi-v7a; api_level=21; prefix=/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy; . /home/default/Coding/chaquopy/server/pypi/../../target/build-common.sh; export
build-wheel: mkdir -p /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers
Running from numpy source directory.
setup.py:69: 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
running egg_info
running build_src
INFO: build_src
creating numpy.egg-info
writing numpy.egg-info/PKG-INFO
writing dependency_links to numpy.egg-info/dependency_links.txt
writing entry points to numpy.egg-info/entry_points.txt
writing top-level names to numpy.egg-info/top_level.txt
writing manifest file 'numpy.egg-info/SOURCES.txt'
reading manifest file 'numpy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'LICENSES_bundled.txt'
warning: no previously-included files found matching 'azure-*.yml'
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
no previously-included directories found matching 'benchmarks/env'
no previously-included directories found matching 'benchmarks/results'
no previously-included directories found matching 'benchmarks/html'
no previously-included directories found matching 'benchmarks/numpy'
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.swp' found anywhere in distribution
warning: no previously-included files matching '*.bak' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
adding license file 'LICENSE.txt'
writing manifest file 'numpy.egg-info/SOURCES.txt'
build-wheel: /home/default/Coding/chaquopy/server/pypi/build/_bootstrap/3.10/bin/pip --python /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/bin/python install wheel
Requirement already satisfied: wheel in ./cp310-cp310-android_21_armeabi_v7a/env/lib/python3.10/site-packages (0.38.1)
build-wheel: abi=armeabi-v7a; api_level=21; prefix=/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy; . /home/default/Coding/chaquopy/server/pypi/../../target/build-common.sh; export
build-wheel: /home/default/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar rc /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib/libpthread.a
build-wheel: /home/default/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar rc /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/lib/librt.a
build-wheel: cd /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src
Running from numpy source directory.
setup.py:69: 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
Cythonizing sources
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_generator.pyx
Processing numpy/random/_bounded_integers.pyx.in
Processing numpy/random/bit_generator.pyx
Processing numpy/random/_pcg64.pyx
Processing numpy/random/_philox.pyx
Processing numpy/random/_mt19937.pyx
Processing numpy/random/_common.pyx
Processing numpy/random/mtrand.pyx
Processing numpy/random/_sfc64.pyx
INFO: blas_opt_info:
INFO: blas_armpl_info:
INFO: customize UnixCCompiler
INFO:   libraries armpl_lp64_mp not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: blas_mkl_info:
INFO:   libraries mkl_rt not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: blas_ssl2_info:
INFO:   libraries fjlapackexsve not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: blis_info:
INFO:   libraries blis not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: openblas_info:
INFO: C compiler: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -I/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include -march=armv7-a -mthumb -idirafter /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include/python3.10 -fPIC

creating /tmp/tmp5ex4qb8l/tmp
creating /tmp/tmp5ex4qb8l/tmp/tmp5ex4qb8l
INFO: compile options: '-c'
INFO: armv7a-linux-androideabi21-clang: /tmp/tmp5ex4qb8l/source.c
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmp5ex4qb8l/tmp/tmp5ex4qb8l/source.o -lopenblas -o /tmp/tmp5ex4qb8l/a.out
ld: error: unable to find library -lopenblas
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO:   NOT AVAILABLE
INFO: 
INFO: accelerate_info:
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries tatlas not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_blas_info:
INFO:   libraries satlas not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_blas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries ptf77blas,ptcblas,atlas not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_blas_info:
INFO:   libraries f77blas,cblas,atlas not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu/atlas', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/distutils/system_info.py:2154: UserWarning: 
    Optimized (vendor) Blas libraries are not found.
    Falls back to netlib Blas library which has worse performance.
    A better performance should be easily gained by switching
    Blas library.
  if self._calc_info(blas):
INFO: blas_info:
INFO: C compiler: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -I/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include -march=armv7-a -mthumb -idirafter /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include/python3.10 -fPIC

creating /tmp/tmpc6n1vddj/tmp
creating /tmp/tmpc6n1vddj/tmp/tmpc6n1vddj
INFO: compile options: '-I/usr/local/include -I/usr/include/suitesparse -I/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/include -c'
INFO: armv7a-linux-androideabi21-clang: /tmp/tmpc6n1vddj/source.c
Chaquopy: ignored invalid -I directory: '/usr/local/include'
Chaquopy: ignored invalid -I directory: '/usr/include/suitesparse'
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmpc6n1vddj/tmp/tmpc6n1vddj/source.o -lblas -o /tmp/tmpc6n1vddj/a.out
ld: error: unable to find library -lblas
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmpc6n1vddj/tmp/tmpc6n1vddj/source.o -lcblas -lblas -o /tmp/tmpc6n1vddj/a.out
ld: error: unable to find library -lcblas
ld: error: unable to find library -lblas
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmpc6n1vddj/tmp/tmpc6n1vddj/source.o -lblas -lblas -o /tmp/tmpc6n1vddj/a.out
ld: error: unable to find library -lblas
ld: error: unable to find library -lblas
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmpc6n1vddj/tmp/tmpc6n1vddj/source.o -lcblas -o /tmp/tmpc6n1vddj/a.out
ld: error: unable to find library -lcblas
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmpc6n1vddj/tmp/tmpc6n1vddj/source.o -lblas -o /tmp/tmpc6n1vddj/a.out
ld: error: unable to find library -lblas
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO:   FOUND:
INFO:     libraries = ['blas', 'blas']
INFO:     library_dirs = ['/usr/lib/x86_64-linux-gnu']
INFO:     include_dirs = ['/usr/local/include', '/usr/include/suitesparse', '/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/include']
INFO: 
INFO:   FOUND:
INFO:     define_macros = [('NO_ATLAS_INFO', 1)]
INFO:     libraries = ['blas', 'blas']
INFO:     library_dirs = ['/usr/lib/x86_64-linux-gnu']
INFO:     include_dirs = ['/usr/local/include', '/usr/include/suitesparse', '/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/include']
INFO: 
non-existing path in 'numpy/distutils': 'site.cfg'
INFO: lapack_opt_info:
INFO: lapack_armpl_info:
INFO:   libraries armpl_lp64_mp not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: lapack_mkl_info:
INFO:   libraries mkl_rt not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: lapack_ssl2_info:
INFO:   libraries fjlapackexsve not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: openblas_lapack_info:
INFO: C compiler: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -I/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include -march=armv7-a -mthumb -idirafter /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include/python3.10 -fPIC

creating /tmp/tmpzijs8bye/tmp
creating /tmp/tmpzijs8bye/tmp/tmpzijs8bye
INFO: compile options: '-c'
INFO: armv7a-linux-androideabi21-clang: /tmp/tmpzijs8bye/source.c
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmpzijs8bye/tmp/tmpzijs8bye/source.o -lopenblas -o /tmp/tmpzijs8bye/a.out
ld: error: unable to find library -lopenblas
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO:   NOT AVAILABLE
INFO: 
INFO: openblas_clapack_info:
INFO: C compiler: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -I/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include -march=armv7-a -mthumb -idirafter /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/requirements/chaquopy/include/python3.10 -fPIC

creating /tmp/tmptw5r92st/tmp
creating /tmp/tmptw5r92st/tmp/tmptw5r92st
INFO: compile options: '-c'
INFO: armv7a-linux-androideabi21-clang: /tmp/tmptw5r92st/source.c
INFO: /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/wrappers/armv7a-linux-androideabi21-clang /tmp/tmptw5r92st/tmp/tmptw5r92st/source.o -lopenblas -llapack -o /tmp/tmptw5r92st/a.out
ld: error: unable to find library -lopenblas
ld: error: unable to find library -llapack
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO:   NOT AVAILABLE
INFO: 
INFO: flame_info:
INFO:   libraries flame not found in ['/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries tatlas,tatlas not found in /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib
INFO:   libraries tatlas,tatlas not found in /usr/local/lib
INFO:   libraries tatlas,tatlas not found in /usr/lib64
INFO:   libraries tatlas,tatlas not found in /usr/lib
INFO:   libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu/atlas
INFO:   libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu
INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_3_10_info:
INFO:   libraries satlas,satlas not found in /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib
INFO:   libraries satlas,satlas not found in /usr/local/lib
INFO:   libraries satlas,satlas not found in /usr/lib64
INFO:   libraries satlas,satlas not found in /usr/lib
INFO:   libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu/atlas
INFO:   libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu
INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_threads_info:
INFO: Setting PTATLAS=ATLAS
INFO:   libraries ptf77blas,ptcblas,atlas not found in /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu/atlas
INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu
INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: atlas_info:
INFO:   libraries f77blas,cblas,atlas not found in /home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib
INFO:   libraries f77blas,cblas,atlas not found in /usr/local/lib
INFO:   libraries f77blas,cblas,atlas not found in /usr/lib64
INFO:   libraries f77blas,cblas,atlas not found in /usr/lib
INFO:   libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu/atlas
INFO:   libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu
INFO: <class 'numpy.distutils.system_info.atlas_info'>
INFO:   NOT AVAILABLE
INFO: 
INFO: lapack_info:
INFO:   FOUND:
INFO:     libraries = ['lapack', 'lapack']
INFO:     library_dirs = ['/usr/lib/x86_64-linux-gnu']
INFO:     language = f77
INFO: 
INFO:   FOUND:
INFO:     libraries = ['lapack', 'lapack', 'blas', 'blas']
INFO:     library_dirs = ['/usr/lib/x86_64-linux-gnu']
INFO:     language = f77
INFO:     define_macros = [('NO_ATLAS_INFO', 1)]
INFO:     include_dirs = ['/usr/local/include', '/usr/include/suitesparse', '/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/include']
INFO: 
Warning: attempted relative import with no known parent package
/usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
running bdist_wheel
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.linux_armv7l-3.10
creating build/src.linux_armv7l-3.10/numpy
creating build/src.linux_armv7l-3.10/numpy/distutils
INFO: building library "npymath" sources
WARN: Could not locate executable armflang
WARN: Could not locate executable /home/default/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang -shared
creating build/src.linux_armv7l-3.10/numpy/core
creating build/src.linux_armv7l-3.10/numpy/core/src
creating build/src.linux_armv7l-3.10/numpy/core/src/npymath
INFO: conv_template:> build/src.linux_armv7l-3.10/numpy/core/src/npymath/npy_math_internal.h
INFO:   adding 'build/src.linux_armv7l-3.10/numpy/core/src/npymath' to include_dirs.
INFO: conv_template:> build/src.linux_armv7l-3.10/numpy/core/src/npymath/ieee754.c
INFO: conv_template:> build/src.linux_armv7l-3.10/numpy/core/src/npymath/npy_math_complex.c
INFO: None - nothing done with h_files = ['build/src.linux_armv7l-3.10/numpy/core/src/npymath/npy_math_internal.h']
INFO: building library "npyrandom" sources
INFO: building extension "numpy.core._multiarray_tests" sources
creating build/src.linux_armv7l-3.10/numpy/core/src/multiarray
INFO: conv_template:> build/src.linux_armv7l-3.10/numpy/core/src/multiarray/_multiarray_tests.c
INFO: building extension "numpy.core._multiarray_umath" sources
Traceback (most recent call last):
  File "/home/default/.local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/home/default/.local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/home/default/.local/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib/python3.10/site-packages/setuptools/build_meta.py", line 230, in build_wheel
    return self._build_with_temp_dir(['bdist_wheel'], '.whl',
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib/python3.10/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
    self.run_setup()
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup
    super(_BuildMetaLegacyBackend,
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup
    exec(compile(code, __file__, 'exec'), locals())
  File "setup.py", line 567, in <module>
    setup_package()
  File "setup.py", line 559, in setup_package
    setup(**metadata)
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/env/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 324, in run
    self.run_command("build")
  File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/distutils/command/build.py", line 62, in run
    old_build.run(self)
  File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/distutils/command/build_src.py", line 144, in run
    self.build_sources()
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/distutils/command/build_src.py", line 161, in build_sources
    self.build_extension_sources(ext)
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/distutils/command/build_src.py", line 318, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/distutils/command/build_src.py", line 378, in generate_sources
    source = func(extension, build_dir)
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/core/setup.py", line 446, in generate_config_h
    check_math_capabilities(config_cmd, ext, moredefs, mathlibs)
  File "/home/default/Coding/chaquopy/server/pypi/packages/numpy/build/1.25.0/cp310-cp310-android_21_armeabi_v7a/src/numpy/core/setup.py", line 178, in check_math_capabilities
    raise SystemError("One of the required function to build numpy is not"
SystemError: One of the required function to build numpy is not available (the list is ['sin', 'cos', 'tan', 'sinh', 'cosh', 'tanh', 'fabs', 'floor', 'ceil', 'sqrt', 'log10', 'log', 'exp', 'asin', 'acos', 'atan', 'fmod', 'modf', 'frexp', 'ldexp', 'expm1', 'log1p', 'acosh', 'asinh', 'atanh', 'rint', 'trunc', 'exp2', 'copysign', 'nextafter', 'strtoll', 'strtoull', 'cbrt', 'log2', 'pow', 'hypot', 'atan2', 'creal', 'cimag', 'conj']).
build-wheel: Error: Backend subprocess exited when trying to invoke build_wheel```
@mhsmith
Copy link
Member

mhsmith commented Nov 27, 2023

Sorry for the slow reply. You created #1026 a few days later about a different problem with NumPy 1.25.1. Does that mean you solved this issue, or are you just getting different errors from different versions?

@mhsmith mhsmith changed the title build-wheel: Error: Backend subprocess exited when trying to invoke build_wheel NumPy 1.25.0: "One of the required function to build numpy is not available" Nov 27, 2023
@Peter9897
Copy link
Author

i didnt really solve it, i read on another similar issue in termux (linux terminal for android) that it was mostly a problem with the check and not the actual function, so i tried removing the check (i know thats absolutely dumb) just to check if it would work without it, and then i ran into the other problem, wich i think i found the reason for (will comment on the other issue)

@mhsmith
Copy link
Member

mhsmith commented Nov 27, 2023

Actually, I think I remember this error now, and the solution was changing the version of setuptools, as you can see at the bottom of numpy/patches/chaquopy.patch. But your log doesn't mention any patches.

You can't just remove all the existing patches and expect it to work. If they don't apply to the newer version, then some of them might be unnecessary, but others will need to be adapted.

@Peter9897
Copy link
Author

Ah yes i didnt include the patches, they gave this error

Hunk #1 succeeded at 84 with fuzz 2 (offset 45 lines).
patching file pyproject.toml
Hunk #1 FAILED at 2.
1 out of 1 hunk FAILED -- saving rejects to file pyproject.toml.rej
build-wheel: Error: Command '['patch', '-p1', '-i', '/home/default/Coding/chaquopy/server/pypi/packages/numpy/patches/chaquopy.patch']' returned non-zero exit status 1.

the pyproject.toml.rej file shows:

--- pyproject.toml	2022-09-09 13:36:30.619459000 +0000
+++ pyproject.toml	2023-08-31 11:38:08.304445745 +0000
@@ -2,7 +2,10 @@
 # Minimum requirements for the build system to execute.
 requires = [
     "packaging==20.5; platform_machine=='arm64'",  # macos M1
-    "setuptools==59.2.0",
+
+    # Chaquopy: was 59.2.0, which failed to detect modf and frexp for some reason.
+    "setuptools==63.0.0",
+
     "wheel==0.37.0",
     "Cython>=0.29.30,<3.0",
 ]

even tho i have setuptools 59.2.0 installed

@mhsmith
Copy link
Member

mhsmith commented Nov 27, 2023

Then you'll have to look at the pyproject.toml file and work out how to update the patch to achieve the same effect.

@Peter9897
Copy link
Author

yes, i looked into the patch stuff a bit and changed in manually, i have a wheel file generated now, i really hope i works, thanks for your help i tried so f-ing long to get this to work

@mhsmith mhsmith closed this as completed in 9172f8c Dec 7, 2023
@mhsmith
Copy link
Member

mhsmith commented Dec 7, 2023

NumPy version 1.26.2 is now in the public repository for Python 3.9, 3.10 and 3.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants