Compilation error on Rust 1.80 with rust-lld
Opened this issue · 3 comments
ToastedWookiee commented
Was originally trying to use the AUR package, but having the same issue, tried to build it manually as well from a git clone.
Trying to build with cargo build --release --features sysinfo,hotkeys,image
I get the following error:
Compiling apex-tux v1.0.3 (/home/scott/Build/apex-tux)
warning: unused import: `anyhow::anyhow`
--> src/providers/music.rs:3:5
|
3 | use anyhow::anyhow;
| ^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: field `spacing` is never read
--> src/render/text.rs:195:9
|
191 | pub struct Scrollable {
| ---------- field in this struct
...
195 | pub spacing: u32,
| ^^^^^^^
|
= note: `Scrollable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/scott/.cargo/bin:/home/scott/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/scott/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/home/scott/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/home/scott/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/heroku:/home/scott/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pip:/home/scott/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/lein:/home/scott/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found:/home/scott/.antigen/bundles/Aloxaf/fzf-tab:/home/scott/.antigen/bundles/zsh-users/zsh-syntax-highlighting" VSLANG="1033" "cc" "-m64" "/tmp/rustc1NX1jO/symbols.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.00.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.01.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.02.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.03.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.04.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.05.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.06.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.07.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.08.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.09.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.10.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.11.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.12.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.13.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.14.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.15.rcgu.o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.2kgrk223elkfrlon5w7sai4lg.rcgu.o" "-Wl,--as-needed" "-L" "/home/scott/Build/apex-tux/target/release/deps" "-L" "/usr/lib" "-L" "/home/scott/Build/apex-tux/target/release/build/hidapi-9a20002cd2424e9c/out" "-L" "/usr/lib" "-L" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/scott/Build/apex-tux/target/release/deps/libctrlc-10519e8eaba1eaec.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnix-05f1e8cbd92afbd2.rlib" "/home/scott/Build/apex-tux/target/release/deps/libdirs-3c40b3ae5ab22ed1.rlib" "/home/scott/Build/apex-tux/target/release/deps/libdirs_sys-24af242ab5631445.rlib" "/home/scott/Build/apex-tux/target/release/deps/liboption_ext-37bbb005181beead.rlib" "/home/scott/Build/apex-tux/target/release/deps/libapex_mpris2-fc0116d33380e1cb.rlib" "/home/scott/Build/apex-tux/target/release/deps/libsimplelog-e2e442ccdfa7ae82.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtermcolor-e8fbf45524fd8b2d.rlib" "/home/scott/Build/apex-tux/target/release/deps/libitertools-ebd95d9cbfa41be6.rlib" "/home/scott/Build/apex-tux/target/release/deps/libapex_input-864af4886c87b102.rlib" "/home/scott/Build/apex-tux/target/release/deps/libglobal_hotkey-d1b4d9d9d96d5a7b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libx11_dl-f7b24aaf2c77df70.rlib" "/home/scott/Build/apex-tux/target/release/deps/libkeyboard_types-d11cfbf069d84b21.rlib" "/home/scott/Build/apex-tux/target/release/deps/libunicode_segmentation-49fd8f3fb76af7dc.rlib" "/home/scott/Build/apex-tux/target/release/deps/libthiserror-37ed408b62f88f7b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libcrossbeam_channel-9c5596b34f48cbe3.rlib" "/home/scott/Build/apex-tux/target/release/deps/libimage-f7a25774139899ce.rlib" "/home/scott/Build/apex-tux/target/release/deps/libqoi-953089248bcc25b8.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbytemuck-62c0dd77f697cbe9.rlib" "/home/scott/Build/apex-tux/target/release/deps/libpng-af9bfbad5a03e65b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfdeflate-48fcbcb675f8fd33.rlib" "/home/scott/Build/apex-tux/target/release/deps/libexr-ffbe44b70f3e0522.rlib" "/home/scott/Build/apex-tux/target/release/deps/libflume-8273e2ceab254fe4.rlib" "/home/scott/Build/apex-tux/target/release/deps/libzune_inflate-dd06645b4e3e4845.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbit_field-78feb5e819b62735.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblebe-3af0548477c8ae20.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhalf-af3d677fcbe543d8.rlib" "/home/scott/Build/apex-tux/target/release/deps/libsmallvec-19d753aef482b982.rlib" "/home/scott/Build/apex-tux/target/release/deps/libgif-5dd7fc35bf3a3f3f.rlib" "/home/scott/Build/apex-tux/target/release/deps/libcolor_quant-ea6f29bf93f79454.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtiff-a7030972c400face.rlib" "/home/scott/Build/apex-tux/target/release/deps/libweezl-b153bc3929104a81.rlib" "/home/scott/Build/apex-tux/target/release/deps/libjpeg_decoder-f2b078586b3bccda.rlib" "/home/scott/Build/apex-tux/target/release/deps/libsysinfo-48c27b40cf601cd9.rlib" "/home/scott/Build/apex-tux/target/release/deps/librayon-a979e0b3ae9a6422.rlib" "/home/scott/Build/apex-tux/target/release/deps/librayon_core-702848a32db861bb.rlib" "/home/scott/Build/apex-tux/target/release/deps/libcrossbeam_deque-f2c73cf999f703ff.rlib" "/home/scott/Build/apex-tux/target/release/deps/libcrossbeam_epoch-ef8048f2af92097a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libcrossbeam_utils-e5ce1a8819e49c8e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libeither-ad876172003ec10a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libapex_music-4e2cb828c5b29135.rlib" "/home/scott/Build/apex-tux/target/release/deps/libreqwest-ebc8ae7edc9f4471.rlib" "/home/scott/Build/apex-tux/target/release/deps/librustls_pemfile-f9d41a3bdf2ac98a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhyper_tls-50e050d56f29f11b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libserde_urlencoded-c208ddfd7169de64.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbase64-bed3832b4ea762bf.rlib" "/home/scott/Build/apex-tux/target/release/deps/libipnet-86ea84f9be226c24.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtokio_native_tls-b47a653e56e0ab26.rlib" "/home/scott/Build/apex-tux/target/release/deps/libmime-1d8c19b154c86676.rlib" "/home/scott/Build/apex-tux/target/release/deps/libencoding_rs-5a59f135e86e37e3.rlib" "/home/scott/Build/apex-tux/target/release/deps/libasync_compression-f9f8c64eb5ae502e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libflate2-ecd00ba3d884b4da.rlib" "/home/scott/Build/apex-tux/target/release/deps/libminiz_oxide-dc3f65c36bc3d8cb.rlib" "/home/scott/Build/apex-tux/target/release/deps/libsimd_adler32-de85678ecc8b5d9b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libcrc32fast-b55d4ddacd11cd3a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbrotli-d80d91bd05693b81.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbrotli_decompressor-efab409f8aeff43b.rlib" "/home/scott/Build/apex-tux/target/release/deps/liballoc_stdlib-ac7630e1052a2fd1.rlib" "/home/scott/Build/apex-tux/target/release/deps/liballoc_no_stdlib-a1c8b2b6a22c2c32.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnative_tls-011f93394c06260c.rlib" "/home/scott/Build/apex-tux/target/release/deps/libopenssl_probe-6cb1d7a01186040b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libopenssl-7ecd7f40289f463e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbitflags-eef59ab2c181064e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libforeign_types-e43e2c0dbf5f5eaf.rlib" "/home/scott/Build/apex-tux/target/release/deps/libforeign_types_shared-8cdc27902e441865.rlib" "/home/scott/Build/apex-tux/target/release/deps/libopenssl_sys-162e95e2d8531bd7.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhyper-d97f625293143178.rlib" "/home/scott/Build/apex-tux/target/release/deps/libwant-3f34c6a27efc2108.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtry_lock-2561b0487478381e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhttparse-f3b0a4fe841a550c.rlib" "/home/scott/Build/apex-tux/target/release/deps/libh2-2d75df0cef825a04.rlib" "/home/scott/Build/apex-tux/target/release/deps/libindexmap-ec4d5c51a6569cf6.rlib" "/home/scott/Build/apex-tux/target/release/deps/libequivalent-ec054357584dda9d.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhashbrown-ba330ea1ba1dae1a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtower_service-bf94bd4cff0bdbb9.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtracing-109c9b328f9fb36c.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtracing_core-37f8f867a370f21c.rlib" "/home/scott/Build/apex-tux/target/release/deps/libonce_cell-5e26bf523331b8e0.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtokio_util-9692dae16c6ae8eb.rlib" "/home/scott/Build/apex-tux/target/release/deps/libsync_wrapper-33f1b3028f0801e2.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhttp_body-21cb61e1429e28f0.rlib" "/home/scott/Build/apex-tux/target/release/deps/liburl-16e4f52512c04745.rlib" "/home/scott/Build/apex-tux/target/release/deps/libidna-b6f00e51523a8061.rlib" "/home/scott/Build/apex-tux/target/release/deps/libunicode_normalization-e00b50dd9d9f9e50.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtinyvec-4197147df1778369.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtinyvec_macros-3018ee127284fcc5.rlib" "/home/scott/Build/apex-tux/target/release/deps/libunicode_bidi-f6d5e0c2bba4f214.rlib" "/home/scott/Build/apex-tux/target/release/deps/libform_urlencoded-a1bb071c7144f399.rlib" "/home/scott/Build/apex-tux/target/release/deps/libpercent_encoding-70ec8881d22b685d.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhttp-dd0a2173d8a988db.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfnv-82d0a40bbfed6e3d.rlib" "/home/scott/Build/apex-tux/target/release/deps/libasync_rwlock-d270bf00255daff1.rlib" "/home/scott/Build/apex-tux/target/release/deps/libasync_mutex-ed28a9090a071024.rlib" "/home/scott/Build/apex-tux/target/release/deps/libevent_listener-20a86dd27e8adb43.rlib" "/home/scott/Build/apex-tux/target/release/deps/libconfig-6909fc4c5fc9f588.rlib" "/home/scott/Build/apex-tux/target/release/deps/libini-e80a356ef4550c10.rlib" "/home/scott/Build/apex-tux/target/release/deps/libserde_hjson-a8d3d16df3d69c9d.rlib" "/home/scott/Build/apex-tux/target/release/deps/libserde-d3fc4eb1ff76f14a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libregex-5ef8e7b2c151d2ba.rlib" "/home/scott/Build/apex-tux/target/release/deps/libregex_syntax-4bf13010fbaea48e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libaho_corasick-bfffbe2464707e38.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnum_traits-94c443e875710969.rlib" "/home/scott/Build/apex-tux/target/release/deps/libyaml_rust-7225b4b064e9d320.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblinked_hash_map-9ef95b732aaf84d8.rlib" "/home/scott/Build/apex-tux/target/release/deps/libserde_json-8244c01d2874bcf5.rlib" "/home/scott/Build/apex-tux/target/release/deps/libitoa-adc7b66b20d84975.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtoml-a0571f8d980b6d73.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnom-aecc63a917b1cd33.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblexical_core-cfe67b721cc3bf27.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbitflags-d639971962f57f6c.rlib" "/home/scott/Build/apex-tux/target/release/deps/libryu-f684291f6278b276.rlib" "/home/scott/Build/apex-tux/target/release/deps/libstatic_assertions-45ea0b18dfc8d746.rlib" "/home/scott/Build/apex-tux/target/release/deps/libarrayvec-7d6f1f16db4dee3a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libcfg_if-fad8d17a588f1088.rlib" "/home/scott/Build/apex-tux/target/release/deps/libserde-3cf1fc53767518c1.rlib" "/home/scott/Build/apex-tux/target/release/deps/libchrono-42c95bfa0e1d7e9a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libiana_time_zone-0248a8dcc6632da0.rlib" "/home/scott/Build/apex-tux/target/release/deps/libapex_hardware-f4b1a60e1da5d37b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnum_enum-f3ddcccfbd6de021.rlib" "/home/scott/Build/apex-tux/target/release/deps/libhidapi-05cbf6e22c2e6313.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbitvec-dc975984ce84e102.rlib" "/home/scott/Build/apex-tux/target/release/deps/libwyz-1d732956c279e686.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtap-0aa4967c011bd9c8.rlib" "/home/scott/Build/apex-tux/target/release/deps/libradium-aad37cdc32bbdd94.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfunty-a68e75b4ca1611bd.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtinybmp-788b4ba6d9a3dd48.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnom-1cdf5a28427f82cd.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblinkme-a19e6c1fc2317e3a.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblazy_static-dec50945cd3841f1.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures-0616a1d0bbcc449a.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures_executor-69ec7a02cf4b71d4.rlib" "/home/scott/Build/apex-tux/target/release/deps/libdbus_tokio-e4b329e176174468.rlib" "/home/scott/Build/apex-tux/target/release/deps/libtokio-32642a34fe0e041f.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnum_cpus-13c1c9f8b2702817.rlib" "/home/scott/Build/apex-tux/target/release/deps/libsocket2-cf76d4e6f8aeef8e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbytes-30f15b55bd2982bb.rlib" "/home/scott/Build/apex-tux/target/release/deps/libmio-43e9b79b4c70dc9e.rlib" "/home/scott/Build/apex-tux/target/release/deps/libdbus-6fc88cf33b0af7dd.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures_util-ade6c186fadae7a6.rlib" "/home/scott/Build/apex-tux/target/release/deps/libmemchr-b880da62b83caa91.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures_io-a7be83963ad718fd.rlib" "/home/scott/Build/apex-tux/target/release/deps/libslab-1e9b190da2484318.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures_channel-6ee70988f65823fb.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures_sink-70385d4b6024fbb4.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures_task-23cfef7b748d2bb4.rlib" "/home/scott/Build/apex-tux/target/release/deps/libpin_utils-202af3b165b3d697.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblibdbus_sys-8b325af2a3651997.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblibc-a22b86c4f3c1dbc6.rlib" "/home/scott/Build/apex-tux/target/release/deps/libasync_stream-2fd5bbda22fbc99d.rlib" "/home/scott/Build/apex-tux/target/release/deps/libpin_project_lite-919c6a70ea62ed97.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfutures_core-76758638f70d7fce.rlib" "/home/scott/Build/apex-tux/target/release/deps/liblog-7f11cc535da32c95.rlib" "/home/scott/Build/apex-tux/target/release/deps/libanyhow-acc78a9896dcc406.rlib" "/home/scott/Build/apex-tux/target/release/deps/libembedded_graphics-fceea59ad5e26c57.rlib" "/home/scott/Build/apex-tux/target/release/deps/libbyteorder-8486069d67b1ae8f.rlib" "/home/scott/Build/apex-tux/target/release/deps/libfloat_cmp-69ee042af503a44b.rlib" "/home/scott/Build/apex-tux/target/release/deps/libnum_traits-ab2b6d56cdb4c1f8.rlib" "/home/scott/Build/apex-tux/target/release/deps/libmicromath-b0a4787cd54c8331.rlib" "/home/scott/Build/apex-tux/target/release/deps/libembedded_graphics_core-e6b572a6b950c822.rlib" "/home/scott/Build/apex-tux/target/release/deps/libaz-defacb77a93df661.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6701759d8343e913.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-9ff13545d1688b3c.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-210d920812faea91.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-f3d3451767410a17.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-1a79dd36d08251de.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-886230e7120831b2.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-2caea079085a58a2.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-314a4689716cb02e.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-5727477b0a78105a.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-7e555563aa211118.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-d9ed943652059c0d.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-ee5b5774583426df.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-c3e1f40644ffc9b8.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-e8bfe52be756260a.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-7b90a2705bcf265b.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-b6892f3c52c68f01.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f72b956e24d1de70.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-632ae0f28c5e55ff.rlib" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-e8b7e96e438f08f6.rlib" "-Wl,-Bdynamic" "-ldl" "-lssl" "-lcrypto" "-lusb-1.0" "-ldbus-1" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/home/scott/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/self-contained" "-o" "/home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
= note: rust-lld: error: undefined symbol: __start_linkme_CONTENT_PROVIDERS
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.07
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.07.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.7694328141977491023))
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.04
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.04.rcgu.o:(tokio::runtime::context::runtime::enter_runtime::h08ee94cc4203b6c8)
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.11
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.11.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.3772826250739152029))
>>> the encapsulation symbol needs to be retained under --gc-sections properly; consider -z nostart-stop-gc (see https://lld.llvm.org/ELF/start-stop-gc)
rust-lld: error: undefined symbol: __stop_linkme_CONTENT_PROVIDERS
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.07
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.07.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.7694328141977491023))
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.04
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.04.rcgu.o:(tokio::runtime::context::runtime::enter_runtime::h08ee94cc4203b6c8)
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.11
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.11.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.3772826250739152029))
rust-lld: error: undefined symbol: __start_linkme_NOTIFICATION_PROVIDERS
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.07
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.07.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.7694328141977491023))
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.04
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.04.rcgu.o:(tokio::runtime::context::runtime::enter_runtime::h08ee94cc4203b6c8)
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.11
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.11.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.3772826250739152029))
>>> the encapsulation symbol needs to be retained under --gc-sections properly; consider -z nostart-stop-gc (see https://lld.llvm.org/ELF/start-stop-gc)
rust-lld: error: undefined symbol: __stop_linkme_NOTIFICATION_PROVIDERS
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.07
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.07.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.7694328141977491023))
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.04
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.04.rcgu.o:(tokio::runtime::context::runtime::enter_runtime::h08ee94cc4203b6c8)
>>> referenced by apex_tux.a06de10c9e3ed716-cgu.11
>>> /home/scott/Build/apex-tux/target/release/deps/apex_tux-7943fb7b8044f65c.apex_tux.a06de10c9e3ed716-cgu.11.rcgu.o:(apex_tux::main::_$u7b$$u7b$closure$u7d$$u7d$::h06c2f2d9224c4452 (.llvm.3772826250739152029))
collect2: error: ld returned 1 exit status
warning: `apex-tux` (bin "apex-tux") generated 2 warnings
error: could not compile `apex-tux` (bin "apex-tux") due to 1 previous error; 2 warnings emitted
using rust nightly:
rustup show
Default host: x86_64-unknown-linux-gnu
rustup home: /home/scott/.rustup
nightly-x86_64-unknown-linux-gnu (overridden by '/home/scott/Build/apex-tux/rust-toolchain.toml')
rustc 1.80.0-nightly (84b40fc90 2024-05-27)
not-jan commented
Hi, this seems to be an issue with rust-lld. Can you try the steps outlined here:
dtolnay/linkme#63
dtolnay/linkme#49
Please let me know if that helps
ToastedWookiee commented
using RUSTFLAGS="-C link-dead-code" cargo build --release --features sysinfo,hotkeys,image
allows the program to build successfully
not-jan commented
Perfect, I think I'll wait for linkme to decide on a fix and in the meantime pin this issue.