You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We attempt to cross compile to the aarch64-unknown-linux-gnu from a x86_64 image. I found this for our Node bindings to our rust project, which uses the napi-rs framework. Their suggested build images use cross compilation.
To reproduce, run in this image:
docker run -it ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64 bash
And run the following commands
cargo new --lib my_crate
cd my_crate
cargo add aws-lc-rs@1.12.6
cargo build
This produces the following output:
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.27.1/builder/cc_builder.rs:455:9:
COMPILER: clangARGS: ["-O0", "-ffunction-sections", "-fdata-sections", "-fPIC", "-gdwarf-4", "-fno-omit-frame-pointer", "--target=aarch64-unknown-linux-gnu", "--sysroot=/usr/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot", "/usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.27.1/aws-lc/tests/compiler_features_tests/memcmp_invalid_stripped_check.c", "-Wno-unused-parameter", "-o", "/my_crate/target/aarch64-unknown-linux-gnu/debug/build/aws-lc-sys-965464ebe9020711/out/memcmp_invalid_stripped_check"]EXECUTED: trueERROR: /usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ld.bfd: cannot find crtbeginS.o: No such file or directory
/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ld.bfd: cannot find -lgcc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
OUTPUT: Failed to compile memcmp_invalid_stripped_check
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Problem:
We attempt to cross compile to the
aarch64-unknown-linux-gnu
from a x86_64 image. I found this for our Node bindings to our rust project, which uses the napi-rs framework. Their suggested build images use cross compilation.To reproduce, run in this image:
And run the following commands
cargo new --lib my_crate cd my_crate cargo add aws-lc-rs@1.12.6 cargo build
This produces the following output:
Relevant details
Version: 1.12.6
Full build log
The text was updated successfully, but these errors were encountered: