Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compile for ARM7 #246

Closed
hanusek opened this issue Jan 27, 2020 · 4 comments
Closed

Cross compile for ARM7 #246

hanusek opened this issue Jan 27, 2020 · 4 comments

Comments

@hanusek
Copy link

hanusek commented Jan 27, 2020

Hello.
I have a problem building a project for arm7.

mhanusek@EtHanusek:~/work/sysinfo$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/mhanusek/.rustup

installed toolchains

stable-x86_64-unknown-linux-gnu
beta-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

installed targets for active toolchain

armv7-unknown-linux-gnueabihf
x86_64-unknown-linux-gnu

active toolchain

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.40.0-nightly (4a8c5b20c 2019-10-23)

mhanusek@EtHanusek:~/work/sysinfo$ cargo build --release --target=armv7-unknown-linux-gnueabihf
   Compiling autocfg v0.1.7
   Compiling semver-parser v0.7.0
   Compiling cfg-if v0.1.10
   Compiling lazy_static v1.4.0
   Compiling libc v0.2.66
   Compiling scopeguard v1.0.0
   Compiling rayon-core v1.7.0
   Compiling doc-comment v0.3.1
   Compiling sysinfo v0.10.5 (/home/mhanusek/work/sysinfo)
   Compiling either v1.5.3
   Compiling once_cell v1.3.1
   Compiling semver v0.9.0
   Compiling rustc_version v0.2.3
   Compiling crossbeam-utils v0.7.0
   Compiling crossbeam-epoch v0.8.0
   Compiling num_cpus v1.12.0
   Compiling crossbeam-queue v0.2.1
   Compiling memoffset v0.5.3
   Compiling crossbeam-deque v0.7.2
   Compiling rayon v1.3.0
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.1.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.10.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.11.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.12.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.13.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.14.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.15.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.2.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.3.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.4.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.5.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.6.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.7.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.8.rcgu.o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.9.rcgu.o" "-o" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libsysinfo.so" "-Wl,--version-script=/tmp/rustcSvyh5M/list" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.1kkkettg43cpdvrb.rcgu.o" "-Wl,--gc-sections" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps" "-L" "/home/mhanusek/work/sysinfo/target/release/deps" "-L" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libonce_cell-35a5a576e041caac.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libdoc_comment-d571fa2b1e2b4535.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/librayon-727a1f9630cea023.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/librayon_core-0ccdd0bcc2741905.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libnum_cpus-a14098affa92e862.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libcrossbeam_queue-4eb84bc4736d7372.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libcrossbeam_deque-4fdb760bfb2c8edf.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libcrossbeam_epoch-1c8e84649e42453b.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libscopeguard-298db41e2738a7f5.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libmemoffset-0670d85e72625828.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libcrossbeam_utils-99dbce9ca959d696.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/liblazy_static-02604924c7f733a9.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libeither-664b4f2e26c66c04.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/liblibc-ea766e805c789a10.rlib" "/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libcfg_if-93393bf1c1d7134d.rlib" "-Wl,--start-group" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd-9fa8b8e524fa3035.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libpanic_unwind-2ad645132529d082.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libhashbrown-7207a4317bb3ab14.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_std_workspace_alloc-6fe9b07b2c70e204.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libbacktrace-7efb34a3d588964b.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libbacktrace_sys-5905a93fd7794ae6.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_demangle-a9177b2672bea7c4.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libunwind-4ae3cb7e0cb28ffa.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcfg_if-1cdd03c97b9ea57b.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblibc-7089fda0b7a709e3.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc-65fd6c40b19ec6c5.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_std_workspace_core-f12a463d12db330c.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcore-2fc739edcf05854b.rlib" "-Wl,--end-group" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcompiler_builtins-26ff24c64ab72ff3.rlib" "-Wl,-Bdynamic" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" "-shared"
  = note: /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: Relocations in generic ELF (EM: 40)
          /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/sysinfo.sysinfo.1ok11cxq-cgu.0.rcgu.o: error adding symbols: Niewłaściwy format pliku
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: could not compile `sysinfo`.

Caused by:
  process didn't exit successfully: `rustc --crate-name sysinfo src/sysinfo.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type rlib --crate-type cdylib --emit=dep-info,link -C opt-level=3 -C metadata=bc3d4129d0434515 --out-dir /home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps --target armv7-unknown-linux-gnueabihf -L dependency=/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps -L dependency=/home/mhanusek/work/sysinfo/target/release/deps --extern cfg_if=/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libcfg_if-93393bf1c1d7134d.rlib --extern doc_comment=/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libdoc_comment-d571fa2b1e2b4535.rlib --extern libc=/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/liblibc-ea766e805c789a10.rlib --extern once_cell=/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/libonce_cell-35a5a576e041caac.rlib --extern rayon=/home/mhanusek/work/sysinfo/target/armv7-unknown-linux-gnueabihf/release/deps/librayon-727a1f9630cea023.rlib` (exit code: 1)

@GuillaumeGomez
Copy link
Owner

I have absolutely no clue what's going on in there... Maybe try your luck on rustc directly?

@momobel
Copy link
Contributor

momobel commented Feb 9, 2020

This is related to issues rust-lang/rust#28924 and rust-lang/cargo#4133.

The appropriate toolchain armv7-unknown-linux-gnueabihf needs to be installed and cargo configured to use the corresponding gcc as a linker.

cat ~/.cargo/config
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

@GuillaumeGomez
Copy link
Owner

Thanks @momobel for the information! Might be interesting to add this information into the README I think. If any of you is interesting in doing so?

@GuillaumeGomez
Copy link
Owner

Fixed by #260.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants