More ARMv7 cross compilation woes

After this adventure: Compilation error with bzip2 on x86_64 for armv7 I am now trying to compile a primitive rocket application for ARMv7.

Source code:

main.rs

use rocket::serde::json::Json;
use rocket::{launch, post, routes};

//use fibonacci::Fibonacci;

//mod fibonacci;

#[post("/fibonacci", format = "json", data = "<n>")]
fn index(n: Json<usize>) -> Json<Option<u128>> {
    //Fibonacci::default().nth(n.into_inner()).into()
    Some(12).into()
}

#[launch]
fn rocket() -> _ {
    rocket::build().mount("/", routes![index])
}

(removed Fibonacci code for brevity)

Cargo.toml

[package]
name = "rust_https"
version = "0.1.0"
edition = "2024"

[dependencies]
rocket = { version = "0.5.1", features = ["json", "serde_json", "tls"] }

.cargo/config.toml

[env]
CC_armv7-unknown-linux-musleabihf = "/usr/bin/arm-linux-musleabihf-gcc"
CC_armv7-unknown-linux-gnueabihf = "/usr/bin/arm-linux-gnueabihf-gcc"

[net]
git-fetch-with-cli = true

[target.armv7-unknown-linux-musleabihf]
linker = "rust-lld"

[target.armv7-unknown-linux-gnueabihf]
linker = "rust-lld"

Compilation for MUSL:

~/RustroverProjects/rust_https> cargo build --target=armv7-unknown-linux-musleabihf 
   Compiling rust_https v0.1.0 (/home/neumann/RustroverProjects/rust_https)
warning: unused variable: `n`
 --> src/main.rs:9:10
  |
9 | fn index(n: Json<usize>) -> Json<Option<u128>> {
  |          ^ help: if this is intentional, prefix it with an underscore: `_n`
  |
  = note: `#[warn(unused_variables)]` on by default

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crti.o" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crtbegin.o" "/tmp/rustcD9ofU9/symbols.o" "<257 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-musleabihf/debug/deps/{librocket-77d2cc926ff9c467.rlib,libnum_cpus-83cde3c85d0a6407.rlib,libtempfile-c0680052eea7bcb1.rlib,libgetrandom-de7c5cea0d7069ab.rlib,libfastrand-2fa8452a7337d792.rlib,librustix-e12de2550a69e7af.rlib,libbitflags-1d11f5251937c83a.rlib,liblinux_raw_sys-de00f3de7dc45750.rlib,libserde_json-e11817ca159883e6.rlib,libryu-5468ad9c93760ee4.rlib,librocket_http-1297467589a9b479.rlib,librustls_pemfile-49a0e8e4064d941b.rlib,libbase64-96d1de26155a28c6.rlib,libtokio_rustls-c0929024cfc41a65.rlib,libcookie-815c01a2fbd5a12c.rlib,librustls-8f44a13a4ca085a4.rlib,libsct-dc67e5c7ea2cad9f.rlib,libwebpki-643582c92fbf5faf.rlib,libring-40b05aa485df4c5b.rlib,libgetrandom-0eedead674d92540.rlib,libuntrusted-e7c15251a8d90a73.rlib,libstable_pattern-d10a7958453e1565.rlib,libref_cast-0fb647cf2e738382.rlib,libpercent_encoding-a631b3b565541968.rlib,libhyper-3159642d466c5f87.rlib,libh2-97fb1f2a333bc232.rlib,libtower_service-25f129fbdeeb573e.rlib,libtracing-064f73c84be3f604.rlib,libtracing_core-f8f038bf9e762b92.rlib,libonce_cell-5dde7fa0adbd2a51.rlib,libhttp_body-19ed7007f71078ff.rlib,libhttpdate-8911a6ee9cf0b903.rlib,libhttp-16d49fc82795940c.rlib,libmulter-dbacf7087215f500.rlib,libmime-bb1cc574d94cf15c.rlib,libtokio_util-8f727e090605aca0.rlib,libhttparse-7f2c8d79845459c1.rlib,libspin-79f637c6c14561b3.rlib,libencoding_rs-7fa824a95c85ec21.rlib,libhttp-bb468f8009306405.rlib,libfnv-070963138ec71a88.rlib,libeither-1843febcf67238d8.rlib,libtokio_stream-b218a81cedf5865a.rlib,libatomic-82a5fe6c3bfcb605.rlib,libstate-f245e38a3718ba9f.rlib,libparking_lot-282745cd4025046a.rlib,libparking_lot_core-a9bea17a5fb45fba.rlib,libcfg_if-8a6edfa16a8e7000.rlib,libsmallvec-3d809f324555059b.rlib,liblock_api-4ff9702f779303f8.rlib,libscopeguard-e351a17a131ae9f7.rlib,libubyte-1d888a4462150683.rlib,liblog-578cf79d67cd2c28.rlib,libtime-ecb67616b579b3e2.rlib,libitoa-7cc9f221017cf963.rlib,libtime_core-f0c29c024e235b5d.rlib,libnum_conv-d2c4c5c2925ee558.rlib,libderanged-667637e39fb2b9ec.rlib,libpowerfmt-a456e41ecff16071.rlib,libfigment-04709cf841598cca.rlib,libtoml-9b6d59335b298508.rlib,libtoml_edit-2dadabe5c23f365b.rlib,libserde_spanned-7b61c8eae87b960f.rlib,libindexmap-e58d4e7b15ed735d.rlib,libequivalent-880b7146433a73a7.rlib,libhashbrown-73a95c74f7a8b2d0.rlib,libwinnow-fb1d50c0407e0652.rlib,libtoml_write-044944b1f69e7c57.rlib,libtoml_datetime-370c732fbdbca5d2.rlib,libatomic-9c63706564fc3564.rlib,libbytemuck-8be4c5b83e514340.rlib,libuncased-0160263991c9a59b.rlib,libpear-9c4f4537e5da4fe2.rlib,libinlinable_string-18e13f631298ad1b.rlib,libserde-9428af814317abc8.rlib,libtokio-da78d47513e55cd7.rlib,libsignal_hook_registry-c32d8222065a8040.rlib,libsocket2-1cce959d5c691a8d.rlib,libbytes-44050e2f66d6e8e4.rlib,libmio-a21ad6c9c70e4b21.rlib,libfutures-fcf871d1cbc7052c.rlib,libfutures_util-ea4cc2e13902f8dc.rlib,libmemchr-64eae6709e173f9f.rlib,libfutures_io-7b16fbe62ce87668.rlib,libslab-4d42712b204c1c36.rlib,libfutures_channel-e7ab1e7789090087.rlib,libfutures_sink-74aabdfa426e0e1d.rlib,libfutures_task-4b9f05d97735e98b.rlib,libpin_utils-4f7646f0067a8fd9.rlib,libasync_stream-861a7394b5ea8489.rlib,libpin_project_lite-7057bd8e92354493.rlib,libfutures_core-8dbfb6cdb43f3680.rlib,libyansi-c4168376be048758.rlib,libis_terminal-4ba1e88147c26771.rlib,liblibc-da172f8761ca60a9.rlib}.rlib" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/{liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-musleabihf/debug/build/ring-3b4acf1594a8e9d3/out" "-L" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained" "-L" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib" "-o" "/home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-musleabihf/debug/deps/rust_https-97cd1ef2d2dc47d8" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crtend.o" "<sysroot>/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crtn.o"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status
          

warning: `rust_https` (bin "rust_https") generated 1 warning
error: could not compile `rust_https` (bin "rust_https") due to 1 previous error; 1 warning emitted
~/RustroverProjects/rust_https> 

Compilation for GNU:

~/RustroverProjects/rust_https> cargo build --target=armv7-unknown-linux-gnueabihf
   Compiling rust_https v0.1.0 (/home/neumann/RustroverProjects/rust_https)
warning: unused variable: `n`
 --> src/main.rs:9:10
  |
9 | fn index(n: Json<usize>) -> Json<Option<u128>> {
  |          ^ help: if this is intentional, prefix it with an underscore: `_n`
  |
  = note: `#[warn(unused_variables)]` on by default

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "/tmp/rustcHOAxXG/symbols.o" "<257 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/{librocket-05b3d69f441b268c.rlib,libnum_cpus-b11c72be5a882189.rlib,libtempfile-3c14e7f146291d70.rlib,libgetrandom-033aa6c2e5ce11e0.rlib,libfastrand-bafe8555c0e523a8.rlib,librustix-661c1507d1b7ffda.rlib,libbitflags-37b9eda7bef97e42.rlib,liblinux_raw_sys-4ac1e401c700bdb4.rlib,libserde_json-3377c9cc4d69ffe7.rlib,libryu-7b236c55fdecb221.rlib,librocket_http-466402694e6661b0.rlib,librustls_pemfile-2afe9b719ea493ec.rlib,libbase64-fd4babee3d78d2c0.rlib,libtokio_rustls-88f824eeb180ac83.rlib,libcookie-2699613935acca9e.rlib,librustls-76edb13d0529f7ce.rlib,libsct-843b060e638b2752.rlib,libwebpki-2ada27f5d1ad3739.rlib,libring-31fd2471491c97b1.rlib,libgetrandom-38f7b4ec6fdd8b19.rlib,libuntrusted-a69fc9733f0e8b99.rlib,libstable_pattern-aa90fb4f1e68d0cb.rlib,libref_cast-48785cc9827936a7.rlib,libpercent_encoding-9d11036dbbd0c3ca.rlib,libhyper-70767efe9cf798f9.rlib,libh2-5c5f971b8987231a.rlib,libtower_service-dcfb3cf5e38d43ff.rlib,libtracing-b1edcf147d813e72.rlib,libtracing_core-4e92c8f61db0d51d.rlib,libonce_cell-839e681c128aa69f.rlib,libhttp_body-613b6369fcb32fa7.rlib,libhttpdate-14f0ebc32fcf1ead.rlib,libhttp-323457384310d019.rlib,libmulter-fa68278dad9183f0.rlib,libmime-ff96f64fe0c60f79.rlib,libtokio_util-b12d69fb1dc2dd02.rlib,libhttparse-50c8a3886c368fb9.rlib,libspin-35dfc5d2d7e95905.rlib,libencoding_rs-8498d61812067a1c.rlib,libhttp-b5a573b7f2b644ae.rlib,libfnv-d3bc336e1f872558.rlib,libeither-774572bcf53e22a4.rlib,libtokio_stream-29e7eae3426803d8.rlib,libatomic-712cee3fdd10ecbe.rlib,libstate-dd46e84d976f3b37.rlib,libparking_lot-4865483a4c8f516e.rlib,libparking_lot_core-fe672e27f1555ae4.rlib,libcfg_if-123df79a3135a688.rlib,libsmallvec-314cfc1042a661ff.rlib,liblock_api-e2991617f7a3617d.rlib,libscopeguard-b76768cc99a84764.rlib,libubyte-64e8d77fd4a5928f.rlib,liblog-fa6e92085d320179.rlib,libtime-c97169a15ecde6c9.rlib,libitoa-ed5eea6263a9abf5.rlib,libtime_core-0ac7d4c8e4150d62.rlib,libnum_conv-5557f0ba795d6d9e.rlib,libderanged-f75c1df1ad3045a0.rlib,libpowerfmt-800e6b91c9768e35.rlib,libfigment-125c903f2edbf2aa.rlib,libtoml-05a6bff6f5f4b879.rlib,libtoml_edit-558d52a499519a6d.rlib,libserde_spanned-fe9711c618ad9426.rlib,libindexmap-9ca1b03e2a87eeb1.rlib,libequivalent-8281e3c281f020c9.rlib,libhashbrown-3a935de9cae886b1.rlib,libwinnow-027b5149338139c5.rlib,libtoml_write-fd7cf92dfc98e125.rlib,libtoml_datetime-2055072505b8290a.rlib,libatomic-91211957bd2046d9.rlib,libbytemuck-10227b58a002acee.rlib,libuncased-72967fdb07311e4b.rlib,libpear-1f8f14e33697ed00.rlib,libinlinable_string-9cc6ef4f0f40adfb.rlib,libserde-70089606648b8072.rlib,libtokio-50c47231e11c732f.rlib,libsignal_hook_registry-092ef654b78d8db7.rlib,libsocket2-2bc8019d49d3b0a9.rlib,libbytes-fb01442cd94c17ea.rlib,libmio-3d2697c6ad6e380e.rlib,libfutures-c196a1929ef09b20.rlib,libfutures_util-d2de07a82598fd32.rlib,libmemchr-f88b6818f5ea1980.rlib,libfutures_io-cd85854173c631bd.rlib,libslab-36799387611cceb5.rlib,libfutures_channel-0de463d1ea1d97b9.rlib,libfutures_sink-4dbed1fff2a6e4d7.rlib,libfutures_task-1089a49c8c3242cf.rlib,libpin_utils-20392106b950ae3c.rlib,libasync_stream-b1ba9dc047509184.rlib,libpin_project_lite-78fb6b248b2bf154.rlib,libfutures_core-d2b1cbb9ac40c007.rlib,libyansi-945bf8f361db18d5.rlib,libis_terminal-78bce3d94d46f0ee.rlib,liblibc-fb3cc7f731a7693d.rlib}.rlib" "<sysroot>/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/build/ring-abeac1fd7045bf91/out" "-L" "<sysroot>/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-o" "/home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/neumann/RustroverProjects/rust_https/target/armv7-unknown-linux-gnueabihf/debug/deps/rust_https-73de7be84261e815.03teub8n2jfwiwgbjxhgojsbx.rcgu.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status
          

warning: `rust_https` (bin "rust_https") generated 1 warning
error: could not compile `rust_https` (bin "rust_https") due to 1 previous error; 1 warning emitted
~/RustroverProjects/rust_https> 

The linkers are there:

~/RustroverProjects/rust_https> LANG=C pacman -Qo /usr/bin/arm-linux-musleabihf-gcc
/usr/bin/arm-linux-musleabihf-gcc is owned by arm-linux-musleabihf-cross-bin 11.2-1
~/RustroverProjects/rust_https> LANG=C pacman -Qo /usr/bin/arm-linux-gnueabihf-gcc 
/usr/bin/arm-linux-gnueabihf-gcc is owned by arm-linux-gnueabihf-gcc 15.1.1.git+f36ec88aa85-1
~/RustroverProjects/rust_https>                                   

What am I missing here?

FML. PEBKAC again. You shouldn't put .cargo under src but into the project's root directory.

1 Like