Open AnatolySh opened 9 months ago
I’m building ninja in a RISC-V riscv64
container and it outputs the exactly same error.
By my testing the latest version on ninja that can be successfully built is 1.10.2.3
.
Errors start at 1.10.2.4
.
By the way, apt install ninja-build
might also be an alternative option.
I have the same issue on Raspberry Pi 4, with Python 3.10 in a pipenv. For me, 1.10.2.3 doesn't work either.
[pipenv.exceptions.InstallError]: Collecting ninja==1.11.1.1 (from -r /tmp/pipenv-6ty1o75f-requirements/pipenv-quit4dpn-hashed-reqs.txt (line 1))
[pipenv.exceptions.InstallError]: Using cached ninja-1.11.1.1.tar.gz (132 kB)
[pipenv.exceptions.InstallError]: Installing build dependencies: started
[pipenv.exceptions.InstallError]: Installing build dependencies: finished with status 'done'
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: started
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: finished with status 'done'
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): started
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): finished with status 'done'
[pipenv.exceptions.InstallError]: Building wheels for collected packages: ninja
[pipenv.exceptions.InstallError]: Building wheel for ninja (pyproject.toml): started
[pipenv.exceptions.InstallError]: Building wheel for ninja (pyproject.toml): finished with status 'error'
[pipenv.exceptions.InstallError]: Failed to build ninja
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × Building wheel for ninja (pyproject.toml) did not run successfully.
[pipenv.exceptions.InstallError]: │ exit code: 1
[pipenv.exceptions.InstallError]: ╰─> [13 lines of output]
[pipenv.exceptions.InstallError]: /tmp/pip-build-env-69ro1t0h/overlay/lib/python3.10/site-packages/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output
[pipenv.exceptions.InstallError]: warnings.warn("git archive did not support describe output")
[pipenv.exceptions.InstallError]: /tmp/pip-build-env-69ro1t0h/overlay/lib/python3.10/site-packages/setuptools_scm/git.py:327: UserWarning: unprocessed git archival found (no export subst applied)
[pipenv.exceptions.InstallError]: warnings.warn("unprocessed git archival found (no export subst applied)")
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-69ro1t0h/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 645, in setup
[pipenv.exceptions.InstallError]: cmkr = cmaker.CMaker(cmake_executable)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-69ro1t0h/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 148, in __init__
[pipenv.exceptions.InstallError]: self.cmake_version = get_cmake_version(self.cmake_executable)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-69ro1t0h/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 105, in get_cmake_version
[pipenv.exceptions.InstallError]: raise SKBuildError(msg) from err
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Problem with the CMake installation, aborting build. CMake executable is cmake
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for ninja
[pipenv.exceptions.InstallError]: ERROR: Could not build wheels for ninja, which is required to install pyproject.toml-based projects
For version 1.10.2.3 this comes up:
[pipenv.exceptions.InstallError]: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
[pipenv.exceptions.InstallError]: Collecting ninja==1.10.2.3 (from -r /tmp/pipenv-mzkr_bl0-requirements/pipenv-i30nzh3n-hashed-reqs.txt (line 1))
[pipenv.exceptions.InstallError]: Using cached ninja-1.10.2.3.tar.gz (26 kB)
[pipenv.exceptions.InstallError]: Installing build dependencies: started
[pipenv.exceptions.InstallError]: Installing build dependencies: finished with status 'done'
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: started
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: finished with status 'done'
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): started
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): finished with status 'done'
[pipenv.exceptions.InstallError]: Building wheels for collected packages: ninja
[pipenv.exceptions.InstallError]: Building wheel for ninja (pyproject.toml): started
[pipenv.exceptions.InstallError]: Building wheel for ninja (pyproject.toml): finished with status 'error'
[pipenv.exceptions.InstallError]: Failed to build ninja
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × Building wheel for ninja (pyproject.toml) did not run successfully.
[pipenv.exceptions.InstallError]: │ exit code: 1
[pipenv.exceptions.InstallError]: ╰─> [9 lines of output]
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-6wddquri/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 645, in setup
[pipenv.exceptions.InstallError]: cmkr = cmaker.CMaker(cmake_executable)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-6wddquri/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 148, in __init__
[pipenv.exceptions.InstallError]: self.cmake_version = get_cmake_version(self.cmake_executable)
[pipenv.exceptions.InstallError]: File "/tmp/pip-build-env-6wddquri/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 105, in get_cmake_version
[pipenv.exceptions.InstallError]: raise SKBuildError(msg) from err
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Problem with the CMake installation, aborting build. CMake executable is cmake
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for ninja
[pipenv.exceptions.InstallError]: ERROR: Could not build wheels for ninja, which is required to install pyproject.toml-based projects
Same issue appear when I try to install streamlit on RiscV
Same issue when building for armhf arch and docker platform linux/arm32/v7
The problem:
I'm trying to install ninja in a Docker container on an arm32v7/debian image which doesn't have a corresponding wheel on PyPi and I am getting an error during the build process. Currently I'm using python 3.9 and pip 23.3.1 I tried different versions of either of them and got the same result
Dockerfile:
Console output: