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

Wrong blis version on Termux #924

Open
Manamama opened this issue Mar 21, 2024 · 3 comments
Open

Wrong blis version on Termux #924

Manamama opened this issue Mar 21, 2024 · 3 comments

Comments

@Manamama
Copy link

Manamama commented Mar 21, 2024

When installing spacy on Termux, the dependencies chain kept failing with your thinc.

When looking closer :

... 
Collecting blis<0.8.0,>=0.7.8 (from thinc<8.3.0,>=8.2.2)
  Downloading blis-0.7.11.tar.gz (2.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 667.4 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: murmurhash<1.1.0,>=1.0.2 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (1.0.10)
Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (2.0.8)
Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (3.0.9)
Requirement already satisfied: wasabi<1.2.0,>=0.8.1 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (1.1.2)
Requirement already satisfied: srsly<3.0.0,>=2.4.0 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (2.4.8)
Requirement already satisfied: catalogue<2.1.0,>=2.0.4 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (2.0.10)
Requirement already satisfied: confection<1.0.0,>=0.0.1 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (0.1.4)
Requirement already satisfied: setuptools in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (69.1.0)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (2.6.1)
Requirement already satisfied: packaging>=20.0 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (24.0)
Requirement already satisfied: numpy>=1.19.0 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from thinc<8.3.0,>=8.2.2) (1.26.4)
Requirement already satisfied: annotated-types>=0.4.0 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->thinc<8.3.0,>=8.2.2) (0.5.0)
Requirement already satisfied: pydantic-core==2.16.2 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->thinc<8.3.0,>=8.2.2) (2.16.2)
Requirement already satisfied: typing-extensions>=4.6.1 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->thinc<8.3.0,>=8.2.2) (4.10.0)
Building wheels for collected packages: blis
  Building wheel for blis (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for blis (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [107 lines of output]
... 
        File "/data/data/com.termux/files/usr/tmp/pip-build-env-e04p2970/overlay/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 91, in run
          _build_ext.run(self)
        File "/data/data/com.termux/files/usr/tmp/pip-build-env-e04p2970/overlay/lib/python3.11/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
          _build_ext.build_ext.run(self)
        File "/data/data/com.termux/files/usr/tmp/pip-build-env-e04p2970/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "<string>", line 104, in build_extensions
        File "<string>", line 232, in compile_objects
        File "<string>", line 247, in build_object
        File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['clang', '-c', '/data/data/com.termux/files/usr/tmp/pip-install-y8rnef8j/blis_711203a8e9a447a2b9dcb45ec3fd79d7/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c', '-o', '/data/data/com.termux/files/usr/tmp/tmp741d3zs7/bli_gemm_armv8a_asm_d6x8.o', '-O3', '-ftree-vectorize', '-mtune=cortex-a57', '-march=armv8-a+fp+simd', '-mcpu=cortex-a57', '-fPIC', '-std=c99', '-D_GNU_SOURCE', '-D_POSIX_C_SOURCE=200112L', '-DBLIS_VERSION_STRING="0.7.0"', '-DBLIS_IS_BUILDING_LIBRARY', '-Iinclude/linux-cortexa57', '-I./frame/3/', '-I./frame/ind/ukernels/', '-I./frame/3/', '-I./frame/1m/', '-I./frame/1f/', '-I./frame/1/', '-I./frame/include', '-I/data/data/com.termux/files/usr/tmp/pip-install-y8rnef8j/blis_711203a8e9a447a2b9dcb45ec3fd79d7/blis/_src/include/linux-cortexa57']' returned non-zero exit status 1.
      [end of output]

i realzed that it is because of the too strict version of blis in your requirements.

This blis installs "natively" in Termux:

~/downloads/spaCy $ pip show blis
Name: blis
Version: 0.9.1
Summary: The Blis BLAS-like linear algebra library, as a self-contained C-extension.
Home-page: https://github.com/explosion/cython-blis
Author: Explosion
Author-email: [email protected]
License: BSD
Location: /data/data/com.termux/files/usr/lib/python3.11/site-packages
Requires: numpy
Required-by: thinc
~/downloads/spaCy $ 

Advice: be less restrictive in these.

Ref.

/downloads/spaCy $ termux-info

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=19453
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:

sources.list

deb https://mirror.sunred.org/termux/termux-main stable main

sources.list.d/x11.list

deb https://mirror.sunred.org/termux/termux-x11 x11 main

sources.list.d/tur.list

deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous

sources.list.d/root.list

deb https://mirror.sunred.org/termux/termux-root root stable

sources.list.d/pointless.list

deb https://its-pointless.github.io/files/21 termux extras
Updatable packages:
All packages up to date
termux-tools version:
1.41.2
Android version:
11
Kernel build information:
Linux localhost 4.14.186+ #1 SMP PREEMPT Thu Mar 17 16:28:22 CST 2022 aarch64 Android
Device manufacturer:
realme
Device model:
RMX3085
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.x11 versionCode:14
com.termux.boot versionCode:7
com.termux.widget versionCode:13

@danieldk
Copy link
Collaborator

i realzed that it is because of the too strict version of blis in your requirements.

blis is intentionally pinned to an older version because blis 0.9.x has known issues leading to segmentation faults in some kernels. I am a bit surprised however that pip does not install a binary wheel, since we do have an aarch64 wheel for Python 3.11:

https://pypi.org/project/blis/0.7.11/#files

@Manamama
Copy link
Author

Manamama commented Jun 21, 2024

Upon a forced reinstall, I have had a deja vu, so looked up my own solution. ;).

This is what happens IRL, same Termux:

~/downloads/fixed $ pip show blis         Name: blis                                Version: 0.9.1                            Summary: The Blis BLAS-like linear algebra library, as a self-contained C-extension.Home-page: https://github.com/explosion/cython-blis                                 Author: Explosion                         Author-email: [email protected]        License: BSD-3-Clause                     Location: /data/data/com.termux/files/usr/lib/python3.11/site-packages              Requires: numpy                           Required-by:                              ~/downloads/fixed $

But:
pip install -U -v --force-reinstall thinc
causes:

Collecting blis<0.8.0,>=0.7.8               Using cached blis-0.7.11.tar.gz (2.9 MB)                                            Installing build dependencies: started    Running command pip subprocess to install build dependencies                        Using pip 24.1 from /data/data/com.termux/files/usr/lib/python3.11/site-packages/pip (python 3.11)                            Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cpu, https://download.pytorch.org/whl/cpu, https://download.pytorch.org/whl/cpu           Ignoring numpy: markers 'python_version < "3.9"' don't match your environment       Collecting setuptools                       Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/55/b3/b3a3415d2debd837106ed417f8681d8af63037fed367fa1b85dbfef081f1/setuptools-70.1.0-py3-none-any.whl.metadata       Using cached setuptools-70.1.0-py3-none-any.whl.metadata (6.0 kB)                 Collecting cython<3.0,>=0.25                Obtaining dependency information for cython<3.0,>=0.25 from https://files.pythonhosted.org/packages/7e/26/9d8de10005fedb1eceabe713348d43bae1dbab1786042ca0751a2e2b0f8c/Cython-0.29.37-py2.py3-none-any.whl.metadata                                         Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB)                  Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/3a/be/650f9c091ef71cb01d735775d554e068752d3ff63d7943b26316dc401749/numpy-1.21.2.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/5f/d6/ad58ded26556eaeaa8c971e08b6466f17c4ac4d786cd3d800e26ce59cc01/numpy-1.21.3.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/c2/a8/a924a09492bdfee8c2ec3094d0a13f2799800b4fdc9c890738aeeb12c72e/numpy-1.21.5.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                    Collecting numpy>=1.25.0                    Using cached numpy-2.0.0-cp311-cp311-linux_aarch64.whl                            Using cached setuptools-70.1.0-py3-none-any.whl (882 kB)                            Using cached Cython-0.29.37-py2.py3-none-any.whl (989 kB)                           Installing collected packages: setuptools, numpy, cython                              Creating /data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/bin                                               changing mode of /data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/bin/f2py to 755                           changing mode of /data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/bin/numpy-config to 755                   changing mode of /data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/bin/cygdb to 755                          changing mode of /data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/bin/cython to 755                         changing mode of /data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/bin/cythonize to 755
...
Successfully installed cython-0.29.37 numpy-2.0.0 setuptools-70.1.0                 Installing build dependencies: finished with status 'done'                          Getting requirements to build wheel: started                                        Running command Getting requirements to build wheel                                 WARNING: linker: Warning: "/data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/lib/python3.11/site-packages/numpy/_core/_multiarray_umath.cpython-311.so" unused DT entry: unknown processor-specific (type 0x70000005 arg 0x0) (ignoring)                                             BLIS_COMPILER? None                       Compiling blis/cy.pyx because it changed.                                           Compiling blis/py.pyx because it changed.                                           [1/2] Cythonizing blis/cy.pyx             [2/2] Cythonizing blis/py.pyx             Getting requirements to build wheel: finished with status 'done'                    Preparing metadata (pyproject.toml): started                                        Running command Preparing metadata (pyproject.toml)                                 WARNING: linker: Warning: "/data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/lib/python3.11/site-packages/numpy/_core/_multiarray_umath.cpython-311.so" unused DT entry: unknown processor-specific (type 0x70000005 arg 0x0) (ignoring)                                             BLIS_COMPILER? None                       running dist_info                         creating /data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info                                       writing /data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info/PKG-INFO                               writing dependency_links to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info/dependency_links.txt                                         writing requirements to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info/requires.txt           writing top-level names to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info/top_level.txt       writing manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info/SOURCES.txt'            reading manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info/SOURCES.txt'            reading manifest template 'MANIFEST.in'                                             adding license file 'LICENSE'             writing manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis.egg-info/SOURCES.txt'            creating '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-xfmz8ixv/blis-0.7.11.dist-info'                             Preparing metadata (pyproject.toml): finished with status 'done'                    Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/3a/be/650f9c091ef71cb01d735775d554e068752d3ff63d7943b26316dc401749/numpy-1.21.2.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/5f/d6/ad58ded26556eaeaa8c971e08b6466f17c4ac4d786cd3d800e26ce59cc01/numpy-1.21.3.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/c2/a8/a924a09492bdfee8c2ec3094d0a13f2799800b4fdc9c890738aeeb12c72e/numpy-1.21.5.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                      Link requires a different Python (3.11.9 not in: '>=3.7,<3.11'): https://files.pythonhosted.org/packages/45/b7/de7b8e67f2232c26af57c205aaad29fe17754f793404f59c8a730c7a191a/numpy-1.21.6.zip (from https://pypi.org/simple/numpy/) (requires-python:>=3.7,<3.11)                                    Collecting numpy>=1.25.0                    Using cached numpy-2.0.0-cp311-cp311-linux_aarch64.whl                            Using cached setuptools-70.1.0-py3-none-any.whl (882 kB)                            Using cached Cython-0.29.37-py2.py3-none-any.whl (989 kB)                           Building wheels for collected packages: blis                                          Building wheel for blis (pyproject.toml): started                                   Running command Building wheel for blis (pyproject.toml)                            WARNING: linker: Warning: "/data/data/com.termux/files/usr/tmp/pip-build-env-w1uh8rkm/overlay/lib/python3.11/site-packages/numpy/_core/_multiarray_umath.cpython-311.so" unused DT entry: unknown processor-specific (type 0x70000005 arg 0x0) (ignoring)                                             BLIS_COMPILER? None                       running bdist_wheel                       running build                             running build_py                          creating build                            creating build/lib.linux-aarch64-cpython-311                                        creating build/lib.linux-aarch64-cpython-311/blis                                   copying blis/__init__.py -> build/lib.linux-aarch64-cpython-311/blis                copying blis/about.py -> build/lib.linux-aarch64-cpython-311/blis                   copying blis/benchmark.py -> build/lib.linux-aarch64-cpython-311/blis               creating build/lib.linux-aarch64-cpython-311/blis/tests                             copying blis/tests/__init__.py -> build/lib.linux-aarch64-cpython-311/blis/tests    copying blis/tests/common.py -> build/lib.linux-aarch64-cpython-311/blis/tests      copying blis/tests/test_dotv.py -> build/lib.linux-aarch64-cpython-311/blis/tests                                             copying blis/tests/test_gemm.py -> build/lib.linux-aarch64-cpython-311/blis/tests                                             copying blis/cy.pyx -> build/lib.linux-aarch64-cpython-311/blis                     copying blis/py.pyx -> build/lib.linux-aarch64-cpython-311/blis                     copying blis/__init__.pxd -> build/lib.linux-aarch64-cpython-311/blis               copying blis/cy.pxd -> build/lib.linux-aarch64-cpython-311/blis                     running build_ext                         /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                       78 | "                                            \n\t"                                | ^                                 /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                    /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                    /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                    /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                    /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                    /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                    /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: error: inline assembly requires more registers than available                                    /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:1132:1: error: inline assembly requires more registers than available                                   1132 | "                                            \n\t"                                | ^                                 /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:1132:1: error: inline assembly requires more registers than available                                  /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:1132:1: error: inline assembly requires more registers than available                                  /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:1132:1: error: inline assembly requires more registers than available                                  /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:1132:1: error: inline assembly requires more registers than available                                  /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:1132:1: error: inline assembly requires more registers than available                                  /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: warning: inline asm clobber list contains reserved registers: X18 [-Winline-asm]                    78 | "                                            \n\t"                                | ^                                 /data/data/com.termux/files/usr/tmp/pip-install-d8i3xmmi/blis_7abe770116444d0ea6cf69cb2be98ce4/blis/_src/kernels/armv8a/3/bli_gemm_armv8a_asm_d6x8.c:78:1: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.                                     1 warning and 14 errors generated.        Build options linux unix

...

Root cause the same as above. One needs to git clone yours and tinker with the blis versions. (It works fine with the newest here.)

Successfully installed annotated-types-0.7.0 blis-0.9.1 catalogue-2.0.10 confection-0.1.5 cymem-2.0.8 murmurhash-1.0.10 numpy-2.0.0 packaging-24.1 preshed-3.0.9 pydantic-2.7.4 pydantic-core-2.18.4 setuptools-70.1.0 srsly-2.4.8 thinc-9.0.0 typing-extensions-4.12.2 wasabi-1.1.3                  ~/downloads/thinc $ uname -a              Linux localhost 4.14.186+ #1 SMP PREEMPT Thu Mar 17 16:28:22 CST 2022 aarch64 Android                                         ~/downloads/thinc $

@Manamama
Copy link
Author

Manamama commented Jun 21, 2024

A quick aide-memoire:
sed -i 's/blis>=0.7.8,<0.8.0/blis>=0.7.8/g' requirements.txt setup.cfg pyproject.toml
grep "blis>=" *
pip install -U -v --force-reinstall .

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

No branches or pull requests

2 participants