mozilla / mozilla/sccache

sccache exits with error when passed .s files

Open
#2,731 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
7.7k
Forks
748
Avg merge
4d 7h
Merged PRs (30d)
21

Description

After updating sccache to version 0.15.0, we get build errors for .s assembly files

make[1]: Entering directory 'foo'
[arm64-v8a] Compile        : libname <= file.s
sccache: encountered fatal error
sccache: error: failed to zip up compiler outputs
sccache: caused by: failed to zip up compiler outputs
sccache: caused by: failed to open file `"foo/build/androidndk_90_ARM64_compile_test//local/arm64-v8a/objs/libname/src/arm64/file.o.d"`
sccache: caused by: failed to open file `foo/build/androidndk_90_ARM64_compile_test//local/arm64-v8a/objs/libname/src/arm64/file.o.d`: No such file or directory (os error 2)
make[1]: *** [/opt/android/ndk/27.2.12479018/build/core/build-binary.mk:421: build/androidndk_90_ARM64_compile_test//local/arm64-v8a/objs/libname/src/arm64/file.o] Error 254

In our build system there is not way to avoid passing the .s to sccache. Is it possible to let sccache ignore them? Or perhaps just continue when it cannot find the .0.d files? Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with an Android NDK build that passes a .s assembly file through sccache, using the missing .o.d path shown in the report. Trace how sccache handles compiler outputs for this input; done means the assembly build no longer exits fatally when that dependency file is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.