sccache: Bug when Compiling rust-mozjs
I seem to be getting a weird error when running cargo build --release -vv
on rust-mozjs and I’m not sure why.
sccache: encountered fatal error
sccache: error: Not an archive file (invalid global header)
sccache: caused by: Not an archive file (invalid global header)
Here’s a gist with the full output: https://gist.github.com/Redfire75369/679cbd87bae84cd8eb509647ab1ab1f3
Here’s a gist when running without -vv
: https://gist.github.com/Redfire75369/840a10759351b1bb8970c820da6f7a5f
The build works fine without sccache
but this happens when sccache
is added as build.rustc-wrapper
and set CCACHE=sccache
.
UPDATE: I tested with only CCACHE=sccache
and removing `build.rustc-wrapper=“sccache” and the build succeeds.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 23 (13 by maintainers)
Ok, I’ve got a minimal reproducer:
Cargo.toml
:src/main.rs
:Build steps:
ossl/
dir contains an unzipped copy of the universal2 OpenSSL from the latest build on https://github.com/pyca/infra/actions/workflows/build-macos-openssl.ymlsame. maybe @glandium knows