-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Bug]: Error while installing ninja #8951
Comments
Looks like you need to
And also install libandroid-spawn. |
Closing since we haven't heard anything from OP |
Nope, same error
|
Error looks completely different to me. Try adding |
Hi @Grimler91 thanks for suggestions about the
Any suggestions for this
|
Install binutils |
@Grimler91 WHOA !! You are awesome man ! Works like charm. So here is all what I did (reference for anonymous):
Cheers ! |
I tried @RSwarnkar solution, but I'm getting the following error:
|
I'm having the same error as @egeres despite installing binutils and libandroid-spawn and adding it to LDFLAGS. And the output doesn't clearly say what the problem is, just that command failed. It looks like ElideMiddle.ElideInTheMiddle test fails but i'm not sure.
|
After a closer inspection of a log i found more test failures, probably libandroid-spawn doesn't do something these tests expect?
|
Interestingly, it reproduces with this same log on both android 7 and android 9 |
For now i managed to work around this by cloning https://github.com/scikit-build/ninja-python-distributions, checking out the latest version and setting RUN_NINJA_TEST to OFF in CmakeLists.txt. Then simply |
I don't know if this can be useful for anybody, but problem is subprocess_test.cc (line 35) which runs "ls /" as test command and on android that fails with "permission denied". Changing it for example to "ls /sdcard/" works. |
@alexpira is root permission the only workaround? Termux-setup-storage doesn't work. |
@aseok Root is not needed. |
@xhy2008 Just don't install It is enough to do Now if you need to install some Python module requiring |
Thank you! |
I can't figure out how to install that. pkg install libandroid-spawn says it can't locate it. |
Problem description
I'm trying to install ninja but it got error:-
What steps will reproduce the bug?
pip install ninja
What is the expected behavior?
Ninja should be installed
System information
termux-info:
The text was updated successfully, but these errors were encountered: