-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
When I use the below configuration and cross compile to ARMv7 I get the following error message on the BeagleBone:
debian@beaglebone:~$ ./test
-bash: ./test: No such file or directoryWhen I use v0.2.2 of linux-embedded-hal or earlier I do not get this error. If I remove extern crate linux_embedded_hal as hal; from the code I do not get the error.
Any ideas?
The code
src/main.rs
extern crate linux_embedded_hal as hal;
fn main() {
println!("Hello");
}.cargo/config
[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = ["-Clink-args=-Xlinker -rpath=/usr/lib/arm-linux-gnueabihf"]Cargo.toml
[package]
name = "test"
version = "0.1.0"
edition = "2018"
[dependencies]
linux-embedded-hal = "0.4.0-alpha.0"To compile I use:
cargo build --target=armv7-unknown-linux-musleabihf --releaseMetadata
Metadata
Assignees
Labels
No labels