paritytech / cachepot

cachepot is `sccache` with extra sec, which in turn is `ccache` with cloud storage
https://cachepot.cc
Apache License 2.0
171 stars 13 forks source link

Custom build command for `ring` fails #110

Closed drahnr closed 3 years ago

drahnr commented 3 years ago
   Compiling jsonrpc-derive v18.0.0
error: failed to run custom build command for `ring v0.16.20`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installeBJJXk/release/build/ring-f607334dffc6617b/build-script-build` (exit status: 101)
  --- stdout
  OPT_LEVEL = Some("3")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  CC_x86_64-unknown-linux-gnu = None
  CC_x86_64_unknown_linux_gnu = None
  HOST_CC = None
  CC = Some("cachepot clang")
  CFLAGS_x86_64-unknown-linux-gnu = None
  CFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")

  --- stderr
  running "/home/bernhard/.cargo/bin/cachepot" "cachepot" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "include" "-Wall" "-Wextra" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-fstack-protector" "-g3" "-DNDEBUG" "-c" "-o/tmp/cargo-installeBJJXk/release/build/ring-8c06859d85267280/out/aesni-x86_64-elf.o" "/home/bernhard/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/pregenerated/aesni-x86_64-elf.S"
  cachepot: error: failed to execute compile
  cachepot: caused by: Compiler not supported: "error: Found argument \'-E\' which wasn\'t expected, or isn\'t valid in this context\n\nUSAGE:\n    cachepot [FLAGS] [OPTIONS] [cmd]...\n\nFor more information try --help\n"
  thread 'main' panicked at 'execution failed', /home/bernhard/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/build.rs:656:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:

warning: cachepot: error: failed to execute compile
warning: cachepot: caused by: Compiler not supported: "error: Found argument \'-E\' which wasn\'t expected, or isn\'t valid in this context\n\nUSAGE:\n    cachepot [FLAGS] [OPTIONS] [cmd]...\n\nFor more information try --help\n"
warning: cachepot: error: failed to execute compile
warning: cachepot: caused by: Compiler not supported: "error: Found argument \'-E\' which wasn\'t expected, or isn\'t valid in this context\n\nUSAGE:\n    cachepot [FLAGS] [OPTIONS] [cmd]...\n\nFor more information try --help\n"

error: failed to compile `subkey v2.0.1 (ssh://git@github.com/paritytech/substrate.git#4f8e0cf6)`, intermediate artifacts can be found at `/tmp/cargo-installeBJJXk`

Caused by:
  build failed
drahnr commented 3 years ago

Actually related / duplicate of #107