You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You already have onnxruntime, providing onnx will be very helpful. (There were several discussions "can't install onnx" on termux's subreddit).
I tried to install, but getting error "unable to find library -lgcc":
pip install onnx
Collecting onnx
Downloading onnx-1.17.0.tar.gz (12.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 13.8 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [227 lines of output]
Collecting setuptools>=64
Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
Collecting protobuf>=3.20.2
Downloading protobuf-5.29.3-py3-none-any.whl.metadata (592 bytes)
Collecting cmake
Downloading cmake-3.31.4.tar.gz (34 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Using cached setuptools-75.8.0-py3-none-any.whl (1.2 MB)
Downloading protobuf-5.29.3-py3-none-any.whl (172 kB)
Building wheels for collected packages: cmake
Building wheel for cmake (pyproject.toml): started
Building wheel for cmake (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for cmake (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [199 lines of output]
*** scikit-build-core 0.10.7 using CMake 3.31.4 (wheel)
*** Configuring CMake...
loading initial cache file build/py3-none-linux_aarch64/CMakeInit.txt
-- The CXX compiler identification is Clang 19.1.7
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ***************************************************
-- Build CMake from source: ON
-- ***************************************************
-- SuperBuild - CMakeProject-src-download
-- SuperBuild - CMakeProject-src-download - URL: https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4.tar.gz
-- SuperBuild - CMakeProject-src-download - CMakeProject_SOURCE_DIR: /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/CMake-src
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - not found
-- Looking for __GLIBC_MINOR__
-- Looking for __GLIBC_MINOR__ - not found
-- SuperBuild - CMakeProject-build
-- SuperBuild - CMakeProject-build - CMakeProject_BINARY_DIR: /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build
-- SuperBuild - CMakePythonDistributions
-- Configuring done (4.3s)
-- Generating done (0.0s)
-- Build files have been written to: /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64
*** Building project with Ninja...
[1/25] Creating directories for 'CMakeProject-src-download'
[1/25] Performing download step (download, verify and extract) for 'CMakeProject-src-download'
-- Downloading...
dst='/data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/cmake-3.31.4.tar.gz'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4.tar.gz'
-- [download 0% complete]
-- [download 1% complete]
............
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
file='/data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/cmake-3.31.4.tar.gz'
-- Downloading... done
-- extracting...
src='/data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/cmake-3.31.4.tar.gz'
dst='/data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/CMake-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[3/25] No update step for 'CMakeProject-src-download'
[4/25] No patch step for 'CMakeProject-src-download'
[5/25] No configure step for 'CMakeProject-src-download'
[6/25] No build step for 'CMakeProject-src-download'
[7/25] No install step for 'CMakeProject-src-download'
[8/25] Completed 'CMakeProject-src-download'
[9/25] Creating directories for 'CMakeProject-build'
[10/25] No download step for 'CMakeProject-build'
[11/25] No update step for 'CMakeProject-build'
[12/25] No patch step for 'CMakeProject-build'
[12/25] Performing configure step for 'CMakeProject-build'
loading initial cache file /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/initial-cache.txt
loading initial cache file /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build-prefix/tmp/CMakeProject-build-cache-Release.cmake
-- The C compiler identification is Clang 19.1.7
-- The CXX compiler identification is Clang 19.1.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang
-- Check for working C compiler: /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang - broken
CMake Error at /data/data/com.termux/files/usr/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build/CMakeFiles/CMakeScratch/TryCompile-7DetfH'
Run Build Command(s): /data/data/com.termux/files/usr/bin/ninja -v cmTC_b119f
[1/2] /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1 -O2 -g -DNDEBUG -MD -MT CMakeFiles/cmTC_b119f.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_b119f.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_b119f.dir/testCCompiler.c.o -c /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build/CMakeFiles/CMakeScratch/TryCompile-7DetfH/testCCompiler.c
[2/2] : && /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1 -O2 -g -DNDEBUG -lstdc++ -lgcc -lrt CMakeFiles/cmTC_b119f.dir/testCCompiler.c.o -o cmTC_b119f && :
FAILED: cmTC_b119f
: && /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1 -O2 -g -DNDEBUG -lstdc++ -lgcc -lrt CMakeFiles/cmTC_b119f.dir/testCCompiler.c.o -o cmTC_b119f && :
ld.lld: error: unable to find library -lgcc
aarch64-linux-android-clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
FAILED: CMakeProject-build-prefix/src/CMakeProject-build-stamp/CMakeProject-build-configure /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build-prefix/src/CMakeProject-build-stamp/CMakeProject-build-configure
cd /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build && /data/data/com.termux/files/usr/bin/cmake -C /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/initial-cache.txt -GNinja -C/data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build-prefix/tmp/CMakeProject-build-cache-Release.cmake -S /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/CMake-src -B /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build && /data/data/com.termux/files/usr/bin/cmake -E touch /data/data/com.termux/files/usr/tmp/pip-install-r4hici4m/cmake_8ff289dfb168450286355075407a5a8e/build/py3-none-linux_aarch64/CMakeProject-build-prefix/src/CMakeProject-build-stamp/CMakeProject-build-configure
ninja: build stopped: subcommand failed.
*** CMake build failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cmake
Failed to build cmake
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cmake)
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The text was updated successfully, but these errors were encountered:
Name
onnx
Home page URL
https://github.com/onnx/onnx
Source code URL
https://github.com/onnx/onnx/releases
Packaging policy acknowledgement
Additional information
You already have onnxruntime, providing onnx will be very helpful. (There were several discussions "can't install onnx" on termux's subreddit).
I tried to install, but getting error "unable to find library -lgcc":
The text was updated successfully, but these errors were encountered: