-
Notifications
You must be signed in to change notification settings - Fork 4.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
Zero byte static library file prevents ar from archiving #5908
Comments
It is not limited to Android and also happens for Ubuntu builds:
|
Note: prior to calling |
jin
added
area-EngProd
Bazel CI, infrastructure, bootstrapping, release, and distribution tooling
and removed
team-Android
Issues for Android team
labels
Aug 21, 2018
@gjasny does this problem occur when using a local cache? |
jin
added
team-Execution
and removed
area-EngProd
Bazel CI, infrastructure, bootstrapping, release, and distribution tooling
labels
Aug 21, 2018
philwo
added
type: bug
P2
We'll consider working on this in future. (Assignee optional)
category: remote execution / caching
and removed
untriaged
labels
Sep 10, 2018
We were using a remote cache. But I have not seen the problem since a month. We could close it and I re-open once the problem re-appears. |
@gjasny sounds good! Will close this for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem / feature request:
Recently we added Android NDK ARMv7, ARMv8, and x86_64 to our CI. From time to time we see the following errors for the arm flavours (maybe x86_64 was just lucky):
Inspection of the
librtctransportengine_avtp3.a
file revealed that it is zero bytes and thus lacking a proper header which makesar
bail out withFile format not recognized
.Now I wonder how that empty file could appear in the first place?
We're using a remote rest cache that sometimes is overloaded and might refuse or fail to deliver cache objects. I could imagine that upon a cache failure an empty file is left behind. For other cache objects like a C++ compiler invocation that might go unnoticed because the compiler overwrites the target file whereas ar appends output.
Do you have some hints how to debug that issue further? Is bazel actually calling ar to update static libraries or is it always performing a complete re-creation where we could delete the target file before?
What operating system are you running Bazel on?
Ubuntu 16.04 docker container on a AWS Linux 2 host
What's the output of
bazel info release
?release 0.16.1
The text was updated successfully, but these errors were encountered: