Skip to content
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

sccache-dist errors when compiling ring crate #2200

Open
to266 opened this issue Jun 5, 2024 · 0 comments
Open

sccache-dist errors when compiling ring crate #2200

to266 opened this issue Jun 5, 2024 · 0 comments

Comments

@to266
Copy link

to266 commented Jun 5, 2024

To reproduce, simply set up the sccache to have some kind of server and scheduler available (in my case all parties are linux boxes), and then

cargo new example \
 && cd example \
 && cargo add ring \
 && RUSTC_WRAPPER=sccache cargo build

results in

   Compiling libc v0.2.155
   Compiling cc v1.0.98
   Compiling cfg-if v1.0.0
   Compiling spin v0.9.8
   Compiling untrusted v0.9.0
   Compiling getrandom v0.2.15
   Compiling ring v0.17.8
The following warnings were emitted during compilation:

warning: bwrap: Can't find source path /home/tomas/sccache-things/build/builds/9be21159c4f51686d7cba248dd8b3e21fc751df36ad9d5e0b93f9a1c819f1fbb-81/target: Permission denied

error: failed to run custom build command for `ring v0.17.8`

Caused by:
  process didn't exit successfully: `/home/tomas/dev/example/target/debug/build/ring-651d868a799b2276/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
  OPT_LEVEL = Some("0")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  sccache: Compiler killed by signal 1
  cargo:warning=bwrap: Can't find source path /home/tomas/sccache-things/build/builds/9be21159c4f51686d7cba248dd8b3e21fc751df36ad9d5e0b93f9a1c819f1fbb-81/target: Permission denied

  --- stderr


  error occurred: Command "sccache" "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-4" "-fno-omit-frame-pointer" "-m64" "-I" "include" "-I" "/home/tomas/dev/example/target/debug/build/ring-db0ed0b75b1b5dd9/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "/home/tomas/dev/example/target/debug/build/ring-db0ed0b75b1b5dd9/out/fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args cc did not execute successfully (status code exit status: 254).

same for --release build. All with stable rust. All the other(rather many) crates seem to compile successfully in my large project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant