-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Ninja not executing archive command despite its presence in build.ninja file #2553
Comments
Can you be more specific about what's going on here, what I mean is:
A minimal |
It is a clean build and it creates glib/libglib-2.0.so.0 file but not glib/libglib-2.0.a. "ninja -t commands glib/libglib-2.0.a" command ends with the ar command as follows: The output of "ninja -t inputs all" doesn't include glib/libglib-2.0.a. This is the same even in the working case. |
I just wanted to understand more. Can you tell why "ninja -t inputs all" should have "glib/libglib-2.0.a" in the output? |
If Are you sure the archive is listed in your |
Yes, the archive is listed in "build all:" and is not a validation target. Even in a clean build,it doesn't create the archive. How can we make sure |
Then this looks like a bug in the A reproduction case is needed to inspect what's going on here. Can you share your Ninja build plan somewhere? We don't need build artifacts or source files, just the |
Please ignore the echo commands in rules c_LINKER and AIX_LINKER. I added those for debugging. |
We are trying to build glib2 with the latest ninja 1.12.1.
In AIX, we archive shared libraries. The rule for the same is written in build.ninja as follows:
rule AIX_LINKER
command = ar -q -v $out $in && rm -f $in
description = Archiving AIX shared library
and the command to build the archive is as follows.
build glib/libglib-2.0.a: AIX_LINKER glib/libglib-2.0.so.0
This command is not being executed.
In the build all: section of the build.ninja file, we do have the "glib/libglib-2.0.a" target.
Ninja was working fine till 1.11.1 in AIX. Please let me know what could be the reason for this.
The text was updated successfully, but these errors were encountered: