zipsegv
zipsegv18h ago

Compiling Deno from source: Could not run `gn`: Os { code: 2, kind: NotFound, message: "No such file

I'm currently trying to compile Deno from source on raspbian arm32 (since there's no prebuilt binaries for arm32) and I'm running into the following error:
The current directory is /home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.1
gn gen --root=/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.1 /tmp/cargo-installoYPBs7/release/gn_out

--- stderr

thread 'main' panicked at /home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.1/build.rs:966:10:
Could not run `gn`: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The current directory is /home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.1
gn gen --root=/home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.1 /tmp/cargo-installoYPBs7/release/gn_out

--- stderr

thread 'main' panicked at /home/z/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/v8-137.2.1/build.rs:966:10:
Could not run `gn`: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I have gn installed via apt and I can run it from the commandline, so I'm not sure why I'm getting this error.
3 Replies
marvinh.
marvinh.17h ago
I think you might have discovered the reason why we don't provide arm32 builds of rusty_v8, see https://github.com/denoland/rusty_v8/issues/1746#issuecomment-2747454214
zipsegv
zipsegvOP9h ago
any way I can cross-compile from an x64 host?
marvinh.
marvinh.7h ago
no idea

Did you find this page helpful?