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

hEngine "ninja_gn_binaries.py" not found? #21

Open
Keon6 opened this issue May 3, 2023 · 1 comment
Open

hEngine "ninja_gn_binaries.py" not found? #21

Keon6 opened this issue May 3, 2023 · 1 comment

Comments

@Keon6
Copy link

Keon6 commented May 3, 2023

Not exactly sure where this ninja_gn_binaries.py even comes from and why it's needed but it is failing sue to it.

Describe the bug

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

Caused by:
process didn't exit successfully: /Users/<>/hash/engine/target/debug/build/v8-1afa013990c9e136/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

--- stderr
thread 'main' panicked at 'ninja_gn_binaries.py download failed: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /Users/<>/.cargo/registry/src/github.com-1ecc6299db9ec823/v8-0.45.0/build.rs:274:8
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

To reproduce

  1. Export short-squeeze simulation from hCore
  2. Fork hEngine to local IDE
  3. Change counter.rs -> counter.js and change dependencies.json to not reflect dependency on counter.rs
  4. follow instructions as described in https://github.com/hashintel/hash/tree/main/apps/engine#cli-arguments-and-options under the section "Run a simulation"
  5. Run according to instructions in hEngine README.md cargo run --bin cli -- --project /<directory>/short-squeeze/ single-run --num-steps 5

Link to HASH Core

No response

Expected behavior

It's suppsoed to run just fine since it's just a copy of what's already in hCore

Rust compiler

1.65.0-nightly (d394408fb 2022-08-07)

Host

aarch64-apple-darwin

Target

nightly-aarch64-apple-darwin

Version

3.8.10

Additional context

Not using any Python here.

@TimDiekmann
Copy link
Member

Hi @Keon6 and apologizes for not responding for a fairly long time.

thread 'main' panicked at 'ninja_gn_binaries.py download failed

Did you retry it? it seems to be a spurious error. The error is emitted here and should probably never fail.

@vilkinsons vilkinsons transferred this issue from hashintel/hash Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants