Skip to content

Instantly share code, notes, and snippets.

@chadoh
Created July 15, 2021 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadoh/a6a15e65f0cb328cfd801c49f36a2ac6 to your computer and use it in GitHub Desktop.
Save chadoh/a6a15e65f0cb328cfd801c49f36a2ac6 to your computer and use it in GitHub Desktop.
Error I get when trying to use sccache (in an attempt to save disc space on my machine) in nearcore running `make sandbox`
core ⮀ master ⮀ make sandbox
CARGO_PROFILE_RELEASE_DEBUG=true cargo build -p neard --features sandbox
Compiling unicode-xid v0.2.1
Compiling proc-macro2 v1.0.24
Compiling syn v1.0.60
Compiling libc v0.2.86
Compiling autocfg v1.0.1
Compiling cfg-if v1.0.0
Compiling serde_derive v1.0.123
Compiling serde v1.0.123
sccache: encountered fatal error
sccache: error: Failed to create temp dir
sccache: caused by: Failed to create temp dir
sccache: caused by: No such file or directory (os error 2) at path "/var/folders/ft/3pfgmys17374js6g63l6v0r80000gn/T/vPvOvzc/sccacheh3CcJq"
error: could not compile `unicode-xid`
Caused by:
process didn't exit successfully: `/Users/chadoh/.cargo/bin/sccache rustc --crate-name unicode_xid /Users/chadoh/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=4afb3e2e0e407eed -C extra-filename=-4afb3e2e0e407eed --out-dir /Users/chadoh/code/n/core/target/debug/deps -L dependency=/Users/chadoh/code/n/core/target/debug/deps --cap-lints allow -D warnings` (exit code: 254)
warning: build failed, waiting for other jobs to finish...
sccache: encountered fatal error
sccache: error: Failed to create temp dir
sccache: caused by: Failed to create temp dir
sccache: caused by: No such file or directory (os error 2) at path "/var/folders/ft/3pfgmys17374js6g63l6v0r80000gn/T/vPvOvzc/sccachesmzjmV"
sccache: encountered fatal error
sccache: error: Failed to create temp dir
sccache: caused by: Failed to create temp dir
sccache: caused by: No such file or directory (os error 2) at path "/var/folders/ft/3pfgmys17374js6g63l6v0r80000gn/T/vPvOvzc/sccachet4SRwC"
error: build failed
make: *** [sandbox] Error 101
@xandkar
Copy link

xandkar commented Jan 24, 2023

In case anyone gets here via a web search for the same error - restarting the sccache server fixed the problem for me:

sccache --stop-server && sccache --start-server

Thanks to @GopherJ mozilla/sccache#837 (comment) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment