When I try to compile to armv7, I get this error:
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/mnxd/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/mnxd/Android/Sdk:/home/mnxd:/home/mnxd/go:/home/mnxd/.emacs.d/bin:/home/mnxd/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" VSLANG="1033" "cc" "/tmp/rustcm7h3FX/symbols.o" "/home/mnxd/Documents/apps/Rust/my_project/target/armv7-unknown-linux-gnueabihf/debug/deps/my_project-d6fc01c1683665d1.10erxd5wet0mdw85.rcgu.o
= note: /usr/bin/ld: /home/mnxd/Documents/apps/Rust/my_project/target/armv7-unknown-linux-gnueabihf/debug/deps/my_project-d6fc01c1683665d1.10erxd5wet0mdw85.rcgu.o: relocations in generic ELF (EM: 40)
(EM: 40)
/usr/bin/ld: /home/mnxd/Documents/apps/Rust/my_project/target/armv7-unknown-linux-gnueabihf/debug/deps/my_project-d6fc01c1683665d1.10erxd5wet0mdw85.rcgu.o: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
This error is super long, here I have only small fragment, but I hope someone could help me . I am using rust nightly. I cannot use rust stable because then I get errors from some crate.
Here is my Cargo.toml:
[dependencies]
tokio = { version = "1.21.2", features = ["full"] }
json = "0.12.4"
reqwest = { version = "0.11.12", features = ["blocking", "json"] }
uuid = "1.2.1"
log4rs = "1.2.0"
futures = "0.3.25"
log = "0.4"
bluer = { version = "0.15.1", features = ["full"] }
scraper = "0.14.0"
rand = "0.8"
serde = { version = "1.0.152", features = ["derive"] }
directories = "4.0.1"
toml = "0.5.10"
anyhow = "1.0.68"
serde_yaml = "0.9.16"
axum = { version="0.6.4", features = ["ws"] }
tower = { version = "0.4", features = ["util"] }
openssl-sys = { version = "0.9.80", features = ["vendored"] }
openssl = "0.10.45"
libdbus-sys = { version = "0.2.4", features = ["vendored"] }