cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.49k stars 365 forks source link

error while loading shared library `libtest` #1323

Open AaronKutch opened 1 year ago

AaronKutch commented 1 year ago

Checklist

Describe your issue

When I run cross test aarch64-unknown-linux-gnu --target -Z build-std=core,alloc,proc_macro,std --features=std,zeroize_support,rand_support,serde_support,dag,try_support,debug on awint v0.12.0 (https://github.com/AaronKutch/awint/commit/74f41a5f41707e4c87dda98d51691c753465647a ) and cargo 1.74.0-nightly (925280f02 2023-08-25)

It gets through some of the tests and then fails

     Running unittests src/lib.rs (/target/debug/deps/awint_macros-111db3358b41fa60)
/target/debug/deps/awint_macros-111db3358b41fa60: error while loading shared libraries: libtest-c640aced36103e5d.so: cannot open shared object file: No such file or directory
error: test failed, to rerun pass `-p awint_macros --lib`

Caused by:
  process didn't exit successfully: `/target/debug/deps/awint_macros-111db3358b41fa60` (exit status: 127)

What target(s) are you cross-compiling for?

aarch64-unknown-linux-gnu, mips64-unknown-linux-gnuabi64

Which operating system is the host (e.g computer cross is on) running?

What architecture is the host?

What container engine is cross using?

cross version

cross 2.5.0

Example

No response

Additional information / notes

This might be related to https://github.com/cross-rs/cross/issues/1322, but then this is a huge test suite that's encountering multiple issues. Might want to run all std targets to see if there are more issues. I was originally trying to run this for mips64 but it seems aarch64 runs into the same issue, I went for a more familiar target for this issue example