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

clarinet doesn't build on linux using cargo #1066

Closed
xoloki opened this issue Jul 4, 2023 · 0 comments · Fixed by #1067
Closed

clarinet doesn't build on linux using cargo #1066

xoloki opened this issue Jul 4, 2023 · 0 comments · Fixed by #1067

Comments

@xoloki
Copy link
Contributor

xoloki commented Jul 4, 2023

Running ubuntu-22.04, I tried to build clarinet on linux using the instructions in README.md. It failed trying to build v8:

error: failed to run custom build command for v8 v0.47.1

Caused by:
process didn't exit successfully: /home/x/src/clarinet/target/debug/build/v8-e3ada70f212e5cbd/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-changed=.gn
cargo:rerun-if-changed=BUILD.gn
cargo:rerun-if-changed=src/binding.cc
cargo:rerun-if-env-changed=CCACHE
cargo:rerun-if-env-changed=CLANG_BASE_PATH
cargo:rerun-if-env-changed=DENO_TRYBUILD
cargo:rerun-if-env-changed=DOCS_RS
cargo:rerun-if-env-changed=GENERATE_COMPDB
cargo:rerun-if-env-changed=GN
cargo:rerun-if-env-changed=GN_ARGS
cargo:rerun-if-env-changed=HOST
cargo:rerun-if-env-changed=NINJA
cargo:rerun-if-env-changed=OUT_DIR
cargo:rerun-if-env-changed=RUSTY_V8_ARCHIVE
cargo:rerun-if-env-changed=RUSTY_V8_MIRROR
cargo:rerun-if-env-changed=SCCACHE
cargo:rerun-if-env-changed=V8_FORCE_DEBUG
cargo:rerun-if-env-changed=V8_FROM_SOURCE
cargo:rustc-link-lib=static=rusty_v8
download lockfile: "/home/x/src/clarinet/target/debug/build/lib_download.fslock"
static lib URL: https://github.com/denoland/rusty_v8/releases/download/v0.47.1/librusty_v8_release_x86_64-unknown-linux-gnu.a
cargo:rustc-link-search=/home/x/src/clarinet/target/debug/gn_out/obj
Downloading https://github.com/denoland/rusty_v8/releases/download/v0.47.1/librusty_v8_release_x86_64-unknown-linux-gnu.a
Python downloader failed, trying with curl.

--- stderr
thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/x/.cargo/registry/src/github.com-1ecc6299db9ec823/v8-0.47.1/build.rs:406:10
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

The problem seems to be that the build implicitly requires either python or curl, but README.md does not list them in the required dependencies:

sudo apt install build-essential pkg-config libssl-dev

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

Successfully merging a pull request may close this issue.

1 participant