-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Meson is unable to find ninja (ERROR: Could not detect Ninja) #10987
Comments
I have put debugger inside mesonbuild/environment.py. It is able to find ninja, but it throws Permissin error, even though i have set all the permissions and i am able to execute the command from terminal
|
Might be useful to make sure the ninja Meson detects is what you think it is. |
See scikit-build/ninja-python-distributions#157, which seems related |
This is only an issue with the latest release a few hours ago, older ones were fine. |
This also seems to be happening in a docker container that is supposed to pick up a Ubuntu-packaged version of upstream unpatched ninja, not the scikit-build patchset. So yeah, that other issue is certainly unrelated. |
So the only thing that meson is doing differently basically seems to be "run it from python", very confusing... If you start up a python console in the affected machine, does this work? >>> import subprocess
>>> subprocess.run(['ninja', '--version'], capture_output=True) And: >>> from mesonbuild.mesonlib import Popen_safe
>>> Popen_safe(['ninja', '--version']) |
I think I'll have a patch out for the 1.11.1 issue soon. Looks like ninja 1.11.1 isn't compatible with manylinux1. Though why is it passing tests? Anyway, manylinux2010 builds don't suffer the same problem, and I can upload 2010 builds to the same release. ;) |
|
Nah, still not fixed, because the original reporter wasn't using a pip installed ninja, but was using the Ubuntu packaged version without the It was then erroneously diagnosed as "this scikit-build/ninja-python-distributions issue looks related". |
Oops, sorry, was replying to all the issues, forget this one wasn't our problem. :D |
I had the same problem,Because of the “.git.kitware.jobserver-1” suffix problem: [root@d6b309491377 data]# ninja --version [root@d6b309491377 data]# which ninja solve: [root@d6b309491377 data]# ninja --version |
What docker image can be used to reproduce? |
On termux,it produces the same problem. |
ERROR: Could not detect Ninja
I am trying to setup Ubuntu 22.04 for our project.
These are the versions I have in baremetal and it seems to be working fine
But when i try to replicate the same on Docker environment, I get build errors from meson
I searched about this error and it has been suggested to try installing ninja with pip3 and it should work. But i tried that and still got the same error
So, I installed meson version 0.56.2 and ninja version 1.10.1, but when you run meson command, it ends up in error ERROR: Could not detect Ninja v1.7 or newer
To Reproduce
meson.build
Expected behavior
Build should be successful and in the end we should get Found ninja-1.10.1 at /usr/bin/ninja
system parameters
It is a plain native build
Python Version: 3.10.6
OS: Ubuntu 22.04
Meson Version: 0.56.2
Ninja Version: 1.10.1
The text was updated successfully, but these errors were encountered: