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

docs: Add install clang requirement, revm v3.5.0 failed to build in Ubuntu #768

Closed
HadiEsna opened this issue Oct 5, 2023 · 5 comments
Closed
Labels
good first issue Good for newcomers

Comments

@HadiEsna
Copy link

HadiEsna commented Oct 5, 2023

I tried to build this repo on my ubuntu server and it failed. See below for more information. I also tried this in another linux server. Same results.

  • Steps to reproduce :
    git clone git@github.com:bluealloy/revm.git
    cd revm/
    cargo build --release

  • The error that I got :

error: failed to run custom build command for `c-kzg v0.1.1`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/root/source/revm/target/release/build/c-kzg-a2b11cbb8c293f53/build-script-build` (exit status: 101)
  --- stdout
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("3")
  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=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  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
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/c-kzg-0.1.1/c-kzg-sys/blst/bindings" "-DLIB_PREFIX=ckzg" "-DFIELD_ELEMENTS_PER_BLOB=4096" "-o" "/root/source/revm/target/release/build/c-kzg-90aa3497317bc9dc/out/43c0e3c2ddb1f165-c_kzg_4844.o" "-c" "/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/c-kzg-0.1.1/c-kzg-sys/src/c_kzg_4844.c"
  exit status: 0
  cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
  AR_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
  AR_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_AR
  HOST_AR = None
  cargo:rerun-if-env-changed=AR
  AR = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
  ARFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
  ARFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_ARFLAGS
  HOST_ARFLAGS = None
  cargo:rerun-if-env-changed=ARFLAGS
  ARFLAGS = None
  running: ZERO_AR_DATE="1" "ar" "cq" "/root/source/revm/target/release/build/c-kzg-90aa3497317bc9dc/out/libckzg.a" "/root/source/revm/target/release/build/c-kzg-90aa3497317bc9dc/out/43c0e3c2ddb1f165-c_kzg_4844.o"
  exit status: 0
  running: "ar" "s" "/root/source/revm/target/release/build/c-kzg-90aa3497317bc9dc/out/libckzg.a"
  exit status: 0
  cargo:rustc-link-lib=static=ckzg
  cargo:rustc-link-search=native=/root/source/revm/target/release/build/c-kzg-90aa3497317bc9dc/out
  cargo:rerun-if-env-changed=TARGET
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS

@rakita
Copy link
Member

rakita commented Oct 5, 2023

Try installing llvm/clang, c-kzg is a C lib so it is required, if you don't need Cancun you can disable it as it is behind a c-kzg feature.

@HadiEsna
Copy link
Author

HadiEsna commented Oct 5, 2023

Thanks
It was solved by running apt install clang
maybe you could add it to the readme since others might not have this pre-installed
Thanks for the help

@rakita rakita added the good first issue Good for newcomers label Oct 8, 2023
@rakita rakita changed the title Revm v3.5.0 failed to build in Ubuntu docs: Add install clang requirement, Revm v3.5.0 failed to build in Ubuntu Oct 8, 2023
@rakita rakita changed the title docs: Add install clang requirement, Revm v3.5.0 failed to build in Ubuntu docs: Add install clang requirement, revm v3.5.0 failed to build in Ubuntu Oct 8, 2023
@yash-atreya
Copy link
Contributor

@rakita I can take this

I have an ubuntu bare metal as well.

@rakita
Copy link
Member

rakita commented Oct 9, 2023

@rakita I can take this

I have an ubuntu bare metal as well.

This is just adding one line to main README.md, go for it

@yash-atreya
Copy link
Contributor

yash-atreya commented Oct 9, 2023

It ain't much but it's honest work.

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

No branches or pull requests

3 participants