nix build error - rusty_v8 download issue
Resolved 💬 2 comments Opened Mar 28, 2026 by Ziqi-Yang Closed Mar 29, 2026
What issue are you seeing?
with rev e39ddc61b14a8c645124f5d45ab912989a02e5fb
codex-rs> Compiling jiff v0.2.18
codex-rs> Compiling diplomat-runtime v0.14.0
codex-rs> error: failed to run custom build command for `v8 v146.4.0`
codex-rs>
codex-rs> Caused by:
codex-rs> process didn't exit successfully: `/build/codex-rs/target/release/build/v8-c3ef15d0a873f656/build-script-build` (exit status: 101)
codex-rs> --- stdout
codex-rs> cargo:rerun-if-changed=.gn
codex-rs> cargo:rerun-if-changed=BUILD.gn
codex-rs> cargo:rerun-if-changed=src/binding.cc
codex-rs> cargo:rerun-if-env-changed=CCACHE
codex-rs> cargo:rerun-if-env-changed=CLANG_BASE_PATH
codex-rs> cargo:rerun-if-env-changed=CXXSTDLIB
codex-rs> cargo:rerun-if-env-changed=DENO_TRYBUILD
codex-rs> cargo:rerun-if-env-changed=DOCS_RS
codex-rs> cargo:rerun-if-env-changed=GN
codex-rs> cargo:rerun-if-env-changed=GN_ARGS
codex-rs> cargo:rerun-if-env-changed=HOST
codex-rs> cargo:rerun-if-env-changed=NINJA
codex-rs> cargo:rerun-if-env-changed=OUT_DIR
codex-rs> cargo:rerun-if-env-changed=RUSTY_V8_ARCHIVE
codex-rs> cargo:rerun-if-env-changed=RUSTY_V8_MIRROR
codex-rs> cargo:rerun-if-env-changed=RUSTY_V8_SRC_BINDING_PATH
codex-rs> cargo:rerun-if-env-changed=SCCACHE
codex-rs> cargo:rerun-if-env-changed=V8_FORCE_DEBUG
codex-rs> cargo:rerun-if-env-changed=V8_FROM_SOURCE
codex-rs> cargo:rerun-if-env-changed=PYTHON
codex-rs> cargo:rerun-if-env-changed=DISABLE_CLANG
codex-rs> cargo:rerun-if-env-changed=EXTRA_GN_ARGS
codex-rs> cargo:rerun-if-env-changed=PRINT_GN_ARGS
codex-rs> cargo:rerun-if-env-changed=CARGO_ENCODED_RUSTFLAGS
codex-rs> cargo:rustc-link-lib=static=rusty_v8
codex-rs> lockfile: "/build/codex-rs/target/x86_64-unknown-linux-gnu/release/build/v8.fslock"
codex-rs> cargo:rustc-env=RUSTY_V8_SRC_BINDING_PATH=/build/cargo-vendor-dir/v8-146.4.0/gen/src_binding_release_x86_64-unknown-linux-gnu.rs
codex-rs> static lib URL: https://github.com/denoland/rusty_v8/releases/download/v146.4.0/librusty_v8_release_x86_64-unknown-linux-gnu.a.gz
codex-rs> cargo:rustc-link-search=/build/codex-rs/target/x86_64-unknown-linux-gnu/release/gn_out/obj
codex-rs> Looking for download in '"/homeless-shelter/.cargo/.rusty_v8/https___github_com_denoland_rusty_v8_releases_download_v146_4_0_librusty_v8_release_x86_64_unknown_linux_gnu_a_gz"'
codex-rs> Downloading https://github.com/denoland/rusty_v8/releases/download/v146.4.0/librusty_v8_release_x86_64-unknown-linux-gnu.a.gz
codex-rs> Trying with Python...
codex-rs> Python downloader failed, trying with curl.
codex-rs>
codex-rs> --- stderr
codex-rs>
codex-rs> thread 'main' (14651) panicked at /build/cargo-vendor-dir/v8-146.4.0/build.rs:692:14:
codex-rs> called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
codex-rs> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
codex-rs> warning: build failed, waiting for other jobs to finish...
What steps can reproduce the bug?
run nix build at project root
What is the expected behavior?
build successfully
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗