We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to compile my project using Rustbox for the Raspberry Pi (arm).
export CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=../../tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc cargo build --target=armv7-unknown-linux-gnueabihf --verbose
When I do this, I get the following error:
error: linking with `${crossgcc}/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc` failed: exit code: 1 | = note: "${crossgcc}/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1008l0s9nl4wm7th.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.12k7pgxoiobo1iii.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.19cqvc3dzrmeckjk.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1dvzg9oh1jegxabd.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1edz53dex3gqajxq.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1g2gfhp3sc5kx4s9.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1jymavqstc8ihg0r.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1kqd8dllyvsjajo9.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1ly4emdjih3g0vy6.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1ounnrf447udb9t1.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1rs7hfaj69qi537r.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1rxdrl96skzy32ec.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1svomfg85dl7lb45.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1xeve1e3ohjytfia.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.1yb8gfnya8mf08bc.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.215bizr89anbmt56.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.257zdolv8vxwuops.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2847d2cvyhjpm0ys.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2ba94v7nc96unz5v.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2izhkh3ouaj1c6gb.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2lpc7b4gprr5wsz8.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2mbpcea8v4ff0pmr.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2omhgqc9ig09t6zw.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2p3ixo1str5754ti.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2p7dkr4hm0qbrue9.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2rsg1snl3how4y34.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2t6q7k3mhmxfllso.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2ta8er23rs3dk4mq.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2txz1tmhx061upc8.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2u0p2e5a7vap77d0.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2vf7v8d5y0enpi4n.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2vwbsa7se25khwuc.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.2w1bdfkth1a1g5x0.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.32jcekf5j4rzdnf2.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.35ci1gqv93xhms71.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.39z6eogf3avg7tyh.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3aqlvpepwgxwohh5.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3dmdcpwnx9bb4ej0.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3i3rczevmdtsrojh.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3lg46efxlfmva0mp.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3o9xq77onssjtr0l.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3q8msmkkn3jnw688.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3r1kz7ohfkigdn08.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3sztj1nz2hw55aif.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3tau4qsfulrvzljs.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.3uosxaykpp5evipj.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.42agq16cf213sc0l.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.46kkuayemzs9rgmi.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.48gren5nft6hyn54.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4aqpjp2qd7a9ugeg.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4ct2q2t1qi4k50lr.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4d704zhphd8igsyk.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4gk14y7qn2pxlc61.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4h5vy7785hzz3xtf.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4i5r35mfbeu2ial9.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4mynvmntc9bgng23.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4qjhjiskf5m2pvry.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4rganp8vd3xlo27z.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4v3oltt9l1xfnj3o.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4wjwckitc9fijiqw.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4wv9rdl1zurxq14b.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4xly2jo9c8q5akmw.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4yaj4y9m26iqub5d.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.4z5gdwgyzyzsy1i9.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.536z3tn6hgtlyzxq.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.574b6yhsdljwfu3x.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.57zhllmpipv0nlqk.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.5a4dj8cgzx4wzxt9.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.5acclkpx9ttwgh21.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.5d3vl9z2yw5lxrlz.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.8ypo8iixyaykk49.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.9vaw0qfox3jry5m.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.emv05lcv863t0ae.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.jshjhe5d4jheoy4.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.ntcy8lpo8qxcr9j.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.q4brfjcbpwo8iv1.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.rofvvnesfz6hg21.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.t0bwea30jgemcjf.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.t2g1ujgh90zkmpc.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.up7amjnd935kwn5.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.uyj9d66axig7jyv.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.vkzygjqio102jzl.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.xie7dzd42e97sxt.rcgu.o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.zh5wbsm4cnebfed.rcgu.o" "-o" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/raspi_midi-bc8787688de306da.13s8rhl7je04dhdf.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps" "-L" "${projectdir}/target/debug/deps" "-L" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/build/termbox-sys-ae593235b9c54fee/out/lib" "-L" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtui-d1094482cf843bee.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libitertools-10b7cf24f1b4adea.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libeither-cdbe8cbd6ccc2258.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libbitflags-2c7b3e3d10e1e0dd.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libcassowary-12f30d1587272133.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libunicode_width-768fcc6a10e1b4fd.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libunicode_segmentation-0a12d9b320ac8e9a.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/liblog-5d8fea13e8566107.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtake_mut-e724a03909f2ee46.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtelnet-20e464814e44ab85.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/librustbox-9ede41e94e7b8119.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libbitflags-6e94fb97404a885e.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtermbox_sys-e359ea16b6845dd7.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libnum_traits-007e9378c9adbeb7.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libnum_traits-bebf719718549e64.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libgag-b9aa7658784435fe.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtempfile-ffb6a8fc89d37bc1.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/librand-be4d8af7e5be7a08.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/librand_chacha-5ee44d5402b96f96.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libc2_chacha-6c9603266c1ccdca.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libppv_lite86-f1ba3aff7c7b0810.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/liblazy_static-a80335916d5ac241.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/librand_core-cc812de9cd5d62d7.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libgetrandom-c2261ebb9275cc88.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libremove_dir_all-35bde33bb517195f.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libcfg_if-3aec7a461cb89471.rlib" "${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/liblibc-91546af03d20f85e.rlib" "-Wl,--start-group" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd-b806fbdf01014e64.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libpanic_unwind-765c392663bd34b7.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libbacktrace_sys-1059e0ba7f05fd67.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_demangle-85b43da92537c77f.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libunwind-f8a77019eff82b98.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblibc-1d32a47a0bdcb0a2.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc-c47e11e0b4c869e2.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_std_workspace_core-5a60e280b382f06e.rlib" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcore-8010f7064010be9c.rlib" "-Wl,--end-group" "~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcompiler_builtins-566972fa63f867ee.rlib" "-Wl,-Bdynamic" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" = note: ${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtermbox_sys-e359ea16b6845dd7.rlib: error adding symbols: File format not recognized collect2: error: ld returned 1 exit status error: aborting due to previous error error: Could not compile `raspi-midi`. Caused by: process didn't exit successfully: `rustc --edition=2018 --crate-name raspi_midi src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=bc8787688de306da -C extra-filename=-bc8787688de306da --out-dir ${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps --target armv7-unknown-linux-gnueabihf -C linker=${crossgcc}/tools/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -C incremental=${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/incremental -L dependency=${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps -L dependency=${projectdir}/target/debug/deps --extern jack=${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libjack-fe740c1a502d2c76.rlib --extern rustbox=${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/librustbox-9ede41e94e7b8119.rlib --extern take_mut=${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtake_mut-e724a03909f2ee46.rlib --extern telnet=${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtelnet-20e464814e44ab85.rlib --extern tui=${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/deps/libtui-d1094482cf843bee.rlib -L ${projectdir}/target/armv7-unknown-linux-gnueabihf/debug/build/termbox-sys-ae593235b9c54fee/out/lib` (exit code: 1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to compile my project using Rustbox for the Raspberry Pi (arm).
When I do this, I get the following error:
The text was updated successfully, but these errors were encountered: