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
hello world binary should link with ld-linux-armhf.so.3
Actual result
hello world binary links with ld-linux.so.3
Steps to reproduce
Create a yocto SDK for an armhf architecture with TOOLCHAIN_HOST_TASK += "packagegroup-rust-cross-canadian-${MACHINE}"
Install the generated SDK and source the environment-setup
Create a hello world application
cargo new hello_world
cd hello_world
cargo build
The build completes using the correct arm target from the SDK environment but the output binary dynamically links with ld-linux.so.3 instead of ld-linux-armhf.so.3
I fixed that adding -C link-arg=-mfloat-abi=hard in the RUSTFLAGS environment variable but it would be nice to have that done at Yocto SDK generation
The text was updated successfully, but these errors were encountered:
Version(s) of meta-rust
1.75
Version(s) of poky and/or oe-core
kirkstone
Expected result
hello world binary should link with ld-linux-armhf.so.3
Actual result
hello world binary links with ld-linux.so.3
Steps to reproduce
TOOLCHAIN_HOST_TASK += "packagegroup-rust-cross-canadian-${MACHINE}"
The build completes using the correct arm target from the SDK environment but the output binary dynamically links with ld-linux.so.3 instead of ld-linux-armhf.so.3
I fixed that adding
-C link-arg=-mfloat-abi=hard
in the RUSTFLAGS environment variable but it would be nice to have that done at Yocto SDK generationThe text was updated successfully, but these errors were encountered: