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

Cannot build librusty_v8.a on nVidia Xavier NX (AARCH64) under Ubuntu 18.04. #630

Closed
wbeebe opened this issue Feb 19, 2021 · 2 comments
Closed

Comments

@wbeebe
Copy link

wbeebe commented Feb 19, 2021

Failure to build deno 1.7.5 under Ubuntu 18.04.5 on AARCH64 system. Failure is in attempting to build librust_v8.a. Using rustc 1.50.0 (cb75ad5db 2021-02-10). Details follow.

OS:
jnx@jnx-01:$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"

jnx@jnx-01:$ lscpu
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 3
Vendor ID: Nvidia
Model: 0
Model name: ARMv8 Processor rev 0 (v8l)
Stepping: 0x0
CPU max MHz: 1907.2000
CPU min MHz: 115.2000
BogoMIPS: 62.50
L1d cache: 64K
L1i cache: 128K
L2 cache: 2048K
L3 cache: 4096K
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp

Verbose output of build.

jnx@jnx-01:~/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0$ cargo build --verbose
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.50
   Compiling libc v0.2.80
   Compiling cargo_gn v0.0.15
   Compiling bitflags v1.2.1
     Running `rustc --crate-name build_script_build --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.24/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=e4e74a8c706f41e4 -C extra-filename=-e4e74a8c706f41e4 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/proc-macro2-e4e74a8c706f41e4 -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow`
     Running `rustc --crate-name unicode_xid /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=1b224fefd7ed8f3b -C extra-filename=-1b224fefd7ed8f3b --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow`
     Running `rustc --crate-name build_script_build --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.50/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' --cfg 'feature="visit"' -C metadata=e4ccab55831ebda1 -C extra-filename=-e4ccab55831ebda1 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/syn-e4ccab55831ebda1 -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow`
     Running `rustc --crate-name build_script_build /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=13b86acb599107f4 -C extra-filename=-13b86acb599107f4 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/libc-13b86acb599107f4 -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow`
     Running `rustc --crate-name build_script_build /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.2.1/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=f6c5ae62acf48b19 -C extra-filename=-f6c5ae62acf48b19 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/bitflags-f6c5ae62acf48b19 -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow`
     Running `rustc --crate-name cargo_gn --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo_gn-0.0.15/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=a4d42892aaa4256b -C extra-filename=-a4d42892aaa4256b --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow`
   Compiling lazy_static v1.4.0
     Running `rustc --crate-name lazy_static /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=a7fd64e1b486335c -C extra-filename=-a7fd64e1b486335c --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow`
     Running `/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/bitflags-f6c5ae62acf48b19/build-script-build`
     Running `rustc --crate-name bitflags /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.2.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' -C metadata=108c0771505bba5a -C extra-filename=-108c0771505bba5a --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow --cfg bitflags_const_fn`
     Running `/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/syn-e4ccab55831ebda1/build-script-build`
     Running `/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/libc-13b86acb599107f4/build-script-build`
     Running `/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/proc-macro2-e4e74a8c706f41e4/build-script-build`
     Running `rustc --crate-name libc /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.80/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=4fa47a9f35c99825 -C extra-filename=-4fa47a9f35c99825 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor`
     Running `rustc --crate-name proc_macro2 --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.24/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=b50e4f738854f4aa -C extra-filename=-b50e4f738854f4aa --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern unicode_xid=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libunicode_xid-1b224fefd7ed8f3b.rmeta --cap-lints allow --cfg lexerror_display --cfg hygiene --cfg use_proc_macro --cfg wrap_proc_macro`
   Compiling quote v1.0.7
     Running `rustc --crate-name quote --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.7/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=b92322dd7691a685 -C extra-filename=-b92322dd7691a685 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern proc_macro2=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libproc_macro2-b50e4f738854f4aa.rmeta --cap-lints allow`
   Compiling fslock v0.1.6
     Running `rustc --crate-name fslock --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/fslock-0.1.6/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=be1ae953a7790b84 -C extra-filename=-be1ae953a7790b84 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern libc=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/liblibc-4fa47a9f35c99825.rmeta --cap-lints allow`
     Running `rustc --crate-name syn --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.50/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' --cfg 'feature="visit"' -C metadata=f7180425b238b4b0 -C extra-filename=-f7180425b238b4b0 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern proc_macro2=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libproc_macro2-b50e4f738854f4aa.rmeta --extern quote=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libquote-b92322dd7691a685.rmeta --extern unicode_xid=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libunicode_xid-1b224fefd7ed8f3b.rmeta --cap-lints allow --cfg syn_disable_nightly_tests`
   Compiling thiserror-impl v1.0.22
     Running `rustc --crate-name thiserror_impl --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.22/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=e06662dcd8f73a09 -C extra-filename=-e06662dcd8f73a09 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern proc_macro2=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libproc_macro2-b50e4f738854f4aa.rlib --extern quote=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libquote-b92322dd7691a685.rlib --extern syn=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libsyn-f7180425b238b4b0.rlib --extern proc_macro --cap-lints allow`
   Compiling thiserror v1.0.22
     Running `rustc --crate-name thiserror --edition=2018 /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-1.0.22/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b7eaed212eb79843 -C extra-filename=-b7eaed212eb79843 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern thiserror_impl=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libthiserror_impl-e06662dcd8f73a09.so --cap-lints allow`
   Compiling which v4.0.2
     Running `rustc --crate-name which /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/which-4.0.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=88722ceb673cc71f -C extra-filename=-88722ceb673cc71f --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern libc=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/liblibc-4fa47a9f35c99825.rmeta --extern thiserror=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libthiserror-b7eaed212eb79843.rmeta --cap-lints allow`
   Compiling rusty_v8 v0.17.0 (/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0)
     Running `rustc --crate-name build_script_build --edition=2018 build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=0ea8e1fb154fdd0d -C extra-filename=-0ea8e1fb154fdd0d --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/rusty_v8-0ea8e1fb154fdd0d -C incremental=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/incremental -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern cargo_gn=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libcargo_gn-a4d42892aaa4256b.rlib --extern fslock=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libfslock-be1ae953a7790b84.rlib --extern which=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libwhich-88722ceb673cc71f.rlib`
     Running `/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/build/rusty_v8-0ea8e1fb154fdd0d/build-script-build`
     Running `rustc --crate-name rusty_v8 --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=6d989cba420add05 -C extra-filename=-6d989cba420add05 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -C incremental=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/incremental -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern bitflags=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libbitflags-108c0771505bba5a.rmeta --extern lazy_static=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/liblazy_static-a7fd64e1b486335c.rmeta --extern libc=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/liblibc-4fa47a9f35c99825.rmeta -L /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/gn_out/obj -l static=rusty_v8`
error: failed to add native library /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/gn_out/obj/librusty_v8.a: file too small to be an archive

error: aborting due to previous error

error: could not compile `rusty_v8`

Caused by:
  process didn't exit successfully: `rustc --crate-name rusty_v8 --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=6d989cba420add05 -C extra-filename=-6d989cba420add05 --out-dir /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps -C incremental=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/incremental -L dependency=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps --extern bitflags=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/libbitflags-108c0771505bba5a.rmeta --extern lazy_static=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/liblazy_static-a7fd64e1b486335c.rmeta --extern libc=/home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/deps/liblibc-4fa47a9f35c99825.rmeta -L /home/jnx/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.17.0/target/debug/gn_out/obj -l static=rusty_v8` (exit code: 1)
@bnoordhuis
Copy link
Contributor

There's no pre-built 0.17.0 static library for aarch64 but there is one if you upgrade to 0.20.0.

@wbeebe
Copy link
Author

wbeebe commented Mar 7, 2021

There's no pre-built 0.17.0 static library for aarch64 but there is one if you upgrade to 0.20.0.

This is now true. As of deno v 1.8.0, librusty_v8 is at version 0.20.0. As a consequence deno builds successfully in this environment.

@wbeebe wbeebe closed this as completed Mar 7, 2021
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