-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Termux can not use emcc #23458
Comments
What happens if you try to run on of the executable directly, i.e. node or clang? Can you run What does What does |
/data/data/com.termux/files/home/emsdk/node/20.18.0_64bit/bin/node --version |
Looks like you are somehow missing that needed shared libraries to run node. What does What does What linux distro are you using? |
~/emsdk $ file /data/data/com.termux/files/home/emsdk/node/20.18.0_64bit/bin/node ~/emsdk $ file ~/../usr/bin/ls |
And I use termux so there's no any linux distro is used by me |
I have no idea want termux is. What does |
It looks like you might not have the glibc libraries installed in termux. I see some instructions for getting starting with glibc packages here: https://github.com/termux/glibc-packages. Note that emsdk binaries are all linked against glibc and require glibc |
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.1 (89ce854)
Failing command line in full:
emcc: warning: cannot check node version: [Errno 2] No such file or directory: '/data/data/com.termux/files/home/emsdk/node/20.18.0_64bit/bin/node' [-Wversion-check]
emcc: error: '/data/data/com.termux/files/home/emsdk/upstream/bin/clang --version' failed: [Errno 2] No such file or directory: '/data/data/com.termux/files/home/emsdk/upstream/bin/clang'
Full link command and output with
-v
appended:~/emsdk $ source ./emsdk_env.sh
Setting up EMSDK environment (suppress these messages with EMSDK_QUIET=1)
Adding directories to PATH:
PATH += /data/data/com.termux/files/home/emsdk
PATH += /data/data/com.termux/files/home/emsdk/upstream/emscripten
Setting environment variables:
PATH = /data/data/com.termux/files/home/emsdk:/data/data/com.termux/files/home/emsdk/upstream/emscripten:/data/data/com.termux/files/home/.pub-cache/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/home/dotnet:/data/data/com.termux/files/home/.config/v-analyzer/bin
EMSDK = /data/data/com.termux/files/home/emsdk
EMSDK_NODE = /data/data/com.termux/files/home/emsdk/node/20.18.0_64bit/bin/node
~/emsdk $ emcc
emcc: warning: cannot check node version: [Errno 2] No such file or directory: '/data/data/com.termux/files/home/emsdk/node/20.18.0_64bit/bin/node' [-Wversion-check]
emcc: error: '/data/data/com.termux/files/home/emsdk/upstream/bin/clang --version' failed: [Errno 2] No such file or directory: '/data/data/com.termux/files/home/emsdk/upstream/bin/clang'
Everything is okay before i run emcc,and i think it may was caused by different architectures(My system: arm64)
The text was updated successfully, but these errors were encountered: