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

The build attempts to download the binary that it is suppposed to build and fails: https://github.com/denoland/rusty_v8/releases/download/v129.0.0/librusty_v8_release_x86_64-unknown-freebsd.a.gz #1636

Open
yurivict opened this issue Oct 3, 2024 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Oct 3, 2024

Build fails:

[v8 129.0.0] Looking for download in '"/usr/ports/devel/rusty_v8/work/cargo-home/.rusty_v8/https___github_com_denoland_rusty_v8_releases_download_v129_0_0_librusty_v8_release_x86_64_unknown_freebsd_a_gz"'
[v8 129.0.0] Downloading (using Python) https://github.com/denoland/rusty_v8/releases/download/v129.0.0/librusty_v8_release_x86_64-unknown-freebsd.a.gz
[v8 129.0.0] Python downloader failed, trying with curl.
[v8 129.0.0] thread 'main' panicked at build.rs:527:3:
[v8 129.0.0] assertion failed: status.success()
[v8 129.0.0] stack backtrace:
[v8 129.0.0] note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: failed to run custom build command for `v8 v129.0.0 (/usr/ports/devel/rusty_v8/work/rusty_v8-129.0.0)`
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: `CARGO=/usr/local/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ABI='' CARGO_CFG_TARGET_ARCH=x86_64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=fxsr,sse,sse2 CARGO_CFG_TARGET_HAS_ATOMIC=16,32,64,8,ptr CARGO_CFG_TARGET_OS=freebsd CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=unknown CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='-Clink-arg=-fstack-protector-strong' CARGO_FEATURE_DEFAULT=1 CARGO_FEATURE_USE_CUSTOM_LIBCXX=1 CARGO_MANIFEST_DIR=/usr/ports/devel/rusty_v8/work/rusty_v8-129.0.0 CARGO_PKG_AUTHORS='the Deno authors' CARGO_PKG_DESCRIPTION='Rust bindings to V8' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=v8 CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/denoland/rusty_v8' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=129.0.0 CARGO_PKG_VERSION_MAJOR=129 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' DEBUG=false HOST=x86_64-unknown-freebsd LD_LIBRARY_PATH='/usr/ports/devel/rusty_v8/work/target/release/deps:/usr/ports/devel/rusty_v8/work/target/release:/usr/local/lib/rustlib/x86_64-unknown-freebsd/lib' NUM_JOBS=7 OPT_LEVEL=2 OUT_DIR=/usr/ports/devel/rusty_v8/work/target/x86_64-unknown-freebsd/release/build/v8-2a9dec603cb01951/out PROFILE=release RUSTC=/usr/local/bin/rustc RUSTC_LINKER=cc RUSTDOC=/usr/local/bin/rustdoc TARGET=x86_64-unknown-freebsd /usr/ports/devel/rusty_v8/work/target/release/build/v8-3746c386c9a0fb16/build-script-build` (exit status: 101)

It doesn't seem to make sense to download librusty_v8_release_x86_64-unknown-freebsd.a because that's what the rusty_v8 project us supposed to build.

Version: 129.0.0
FreeBSD 14.1

@littledivy
Copy link
Member

rusty_v8 doesn't officially support FreeBSD and as such doesn't provide prebuilt archives for FreeBSD. You can try building V8 from source using V8_FROM_SOURCE=1.

There is an unofficial freebsd port of Deno that has patches to build rusty_v8: https://cgit.freebsd.org/ports/tree/www/deno/files

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

No branches or pull requests

2 participants