rui314 / mold

Mold: A Modern Linker 🦠
MIT License
13.81k stars 454 forks source link

ncurses5 fails to link #1110

Open Redhawk18 opened 10 months ago

Redhawk18 commented 10 months ago

I'm doing a rust program that requires this package for a ncurses backend.

This issue only happens with mold, and not lld

     Running `/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name blaze --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=242 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=e430555e77fbd2f2 -C extra-filename=-e430555e77fbd2f2 --out-dir /home/redhawk/code/blaze/target/debug/deps -C linker=clang -C incremental=/home/redhawk/code/blaze/target/debug/incremental -L dependency=/home/redhawk/code/blaze/target/debug/deps --extern blaze_core=/home/redhawk/code/blaze/target/debug/deps/libblaze_core-43530d012acb1d94.rlib --extern blaze_gui=/home/redhawk/code/blaze/target/debug/deps/libblaze_gui-a9579d6185d63ba3.rlib --extern blaze_tui=/home/redhawk/code/blaze/target/debug/deps/libblaze_tui-39c5ee342caf0201.rlib --extern clap=/home/redhawk/code/blaze/target/debug/deps/libclap-8e28cda4414bd83a.rlib --extern log=/home/redhawk/code/blaze/target/debug/deps/liblog-0b6ea8c043f6507b.rlib --extern pretty_env_logger=/home/redhawk/code/blaze/target/debug/deps/libpretty_env_logger-2c4d324ecf59ab9f.rlib -C link-arg=-fuse-ld=/usr/bin/mold -L native=/usr/lib64/ncurses5 -L /usr/lib64/ncurses5`
error: linking with `clang` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/redhawk/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/home/redhawk/.cargo/bin:/home/redhawk/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin" VSLANG="1033" "clang" "-m64" "/tmp/rustcNa3d1r/symbols.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.11j5jmnpjl1h70hk.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.12ovjwbzky6lqowg.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.24m9yhl9wixueo2g.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.2a55uvjhkevoz3o.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.44pijamhbu2tdgtv.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.44w9h4gq4yak8pob.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.4pb0wfra6llx2h09.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.53nh52segv65y4y8.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.578q01ww4v1ab9wt.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.dhpotp8ymipycfz.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.h6igl8pz4noa02p.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.ks7lm7g1jj8b71q.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.pqifl9ofeqjaw2t.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.t625brssr3dpxq7.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.v4blj88ycqa383v.rcgu.o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2.njgzrs3m1yxcwkc.rcgu.o" "-Wl,--as-needed" "-L" "/home/redhawk/code/blaze/target/debug/deps" "-L" "/usr/lib64/ncurses5" "-L" "/usr/lib64/ncurses5" "-L" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/redhawk/code/blaze/target/debug/deps/libpretty_env_logger-2c4d324ecf59ab9f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libenv_logger-754b8fcbe27a24fe.rlib" "/home/redhawk/code/blaze/target/debug/deps/libis_terminal-0edef21417fb0855.rlib" "/home/redhawk/code/blaze/target/debug/deps/librustix-64bb60cffdb1bbe5.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblinux_raw_sys-763ec065a19a727f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libhumantime-11a798b9d9fa55b1.rlib" "/home/redhawk/code/blaze/target/debug/deps/libregex-38ec6a582c577ab8.rlib" "/home/redhawk/code/blaze/target/debug/deps/libregex_automata-31c63bfbdde5ee31.rlib" "/home/redhawk/code/blaze/target/debug/deps/libaho_corasick-de17439fa0fb440c.rlib" "/home/redhawk/code/blaze/target/debug/deps/libregex_syntax-81de1d7946ca19dc.rlib" "/home/redhawk/code/blaze/target/debug/deps/libclap-8e28cda4414bd83a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libclap_builder-e685414b6804c877.rlib" "/home/redhawk/code/blaze/target/debug/deps/libstrsim-0e90384c85ed7470.rlib" "/home/redhawk/code/blaze/target/debug/deps/libanstream-3db26032ffe6f91c.rlib" "/home/redhawk/code/blaze/target/debug/deps/libanstyle_query-e756521ed563e1ab.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcolorchoice-b84193b5c92650c3.rlib" "/home/redhawk/code/blaze/target/debug/deps/libanstyle_parse-8fb3853ffcd36035.rlib" "/home/redhawk/code/blaze/target/debug/deps/libutf8parse-144aa49be3255289.rlib" "/home/redhawk/code/blaze/target/debug/deps/libclap_lex-3a5dfb246c70d391.rlib" "/home/redhawk/code/blaze/target/debug/deps/libanstyle-679ee18f624f5b9d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libblaze_tui-39c5ee342caf0201.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcursive-071fae321b7e784d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libncurses-5113a38fd1d01da6.rlib" "/home/redhawk/code/blaze/target/debug/deps/libmaplit-555b5a0a20691f5e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsignal_hook-edbdcf985f0692d0.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsignal_hook_registry-43cef0a3eaeb2e3c.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcursive_core-646ca74556506a64.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum-08416414e99c02c7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum_iter-babf352b16117022.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum_rational-7ca9721378f9f5a9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum_integer-1bad47d187048fa6.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum_complex-9d96f4ce374660a6.rlib" "/home/redhawk/code/blaze/target/debug/deps/libenum_map-ae1bdbef9119c46f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libowning_ref-e5e877a2867dff96.rlib" "/home/redhawk/code/blaze/target/debug/deps/libstable_deref_trait-6acf5500ccefa244.rlib" "/home/redhawk/code/blaze/target/debug/deps/libxi_unicode-a3bc1f2dcb62df03.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtime-f34995aec6ae491a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum_threads-feebc319dc26dc12.rlib" "/home/redhawk/code/blaze/target/debug/deps/libitoa-26c377263e442f8b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtime_core-39a7a19d6ac403da.rlib" "/home/redhawk/code/blaze/target/debug/deps/libderanged-654ea41584f80e45.rlib" "/home/redhawk/code/blaze/target/debug/deps/libenumset-dab3bf5b380c330a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcrossbeam_channel-0a2b58f9e3453489.rlib" "/home/redhawk/code/blaze/target/debug/deps/libblaze_gui-a9579d6185d63ba3.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_aw-a3e1b9d81879c9b1.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdark_light-6b66ccffbddc1520.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdirs-1427ecd69937f36a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdirs_sys-e45a670da4eb38ce.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdconf_rs-58f066a99081e3b8.rlib" "/home/redhawk/code/blaze/target/debug/deps/libzbus-5e412b3891f018f7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libasync_fs-15796a6ec965afa5.rlib" "/home/redhawk/code/blaze/target/debug/deps/libblocking-f4269c026aebe92a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libatomic_waker-32607e645f24c4ec.rlib" "/home/redhawk/code/blaze/target/debug/deps/libasync_channel-4f0602bd4c4faae4.rlib" "/home/redhawk/code/blaze/target/debug/deps/libhex-5e25b9ebde7fbe7b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libasync_executor-4bc69d2fa4634929.rlib" "/home/redhawk/code/blaze/target/debug/deps/libasync_task-14910843c16f62ca.rlib" "/home/redhawk/code/blaze/target/debug/deps/libordered_stream-5280baeb847d8ebe.rlib" "/home/redhawk/code/blaze/target/debug/deps/libasync_broadcast-49eb7d1d1111f3dd.rlib" "/home/redhawk/code/blaze/target/debug/deps/libxdg_home-f2a127faad5f9da9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsha1-e8601021ed677ed9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcpufeatures-6aec5353feab3b98.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdigest-74d794bbf096bdaa.rlib" "/home/redhawk/code/blaze/target/debug/deps/libblock_buffer-2969ef4bb0f0545b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcrypto_common-656fd542c39c07d5.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgeneric_array-a5b9c9be0063cbd3.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtypenum-6b7e918d2fbc0be0.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtracing-6f07a44e28ec3959.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtracing_core-fd9e3d659b602f85.rlib" "/home/redhawk/code/blaze/target/debug/deps/libasync_io-6ca568f0439a6145.rlib" "/home/redhawk/code/blaze/target/debug/deps/librustix-185f1fb403007b45.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblinux_raw_sys-09d25380b677d7c0.rlib" "/home/redhawk/code/blaze/target/debug/deps/libpolling-2f27e5e03ee133d8.rlib" "/home/redhawk/code/blaze/target/debug/deps/libconcurrent_queue-18385552262c2822.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcrossbeam_utils-57ce6d67a28e8047.rlib" "/home/redhawk/code/blaze/target/debug/deps/libasync_lock-94fe10f4197aad11.rlib" "/home/redhawk/code/blaze/target/debug/deps/libevent_listener-f5cd25472b74ebec.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsocket2-382e02a7e2697547.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_lite-c183c2984f36b569.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfastrand-3a2ecbbdaba915e0.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwaker_fn-ebf0c733e723071d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libparking-3eb3f70718d2028e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libzbus_names-39b1fedb1becb7ee.rlib" "/home/redhawk/code/blaze/target/debug/deps/libzvariant-e1bf94f7d9703d94.rlib" "/home/redhawk/code/blaze/target/debug/deps/libenumflags2-50621f6670a59389.rlib" "/home/redhawk/code/blaze/target/debug/deps/libbyteorder-0cf790f28c0e99ea.rlib" "/home/redhawk/code/blaze/target/debug/deps/libserde-963cad2b445738b0.rlib" "/home/redhawk/code/blaze/target/debug/deps/libini-0216d5d5e46bc63c.rlib" "/home/redhawk/code/blaze/target/debug/deps/libordered_multimap-47190bc4f4b52ba4.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdlv_list-fae38b2be23b23f7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdetect_desktop_environment-992281b28ed48ec2.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced-31681a18636b1da7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_winit-268f4da90ffe24a2.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwindow_clipboard-e1f8619799049d09.rlib" "/home/redhawk/code/blaze/target/debug/deps/libclipboard_x11-539f0ba2418cb274.rlib" "/home/redhawk/code/blaze/target/debug/deps/libx11rb-29e7f87bc068e4ad.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnix-2d908b94a90a9eee.rlib" "/home/redhawk/code/blaze/target/debug/deps/libclipboard_wayland-b4f22caedd9d838d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsmithay_clipboard-f5521e4494f6bd04.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwinit-4fc7e9affec8de0e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsctk_adwaita-8f1471df6cd5532b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libab_glyph-578839b2e7d19f91.rlib" "/home/redhawk/code/blaze/target/debug/deps/libowned_ttf_parser-d092a737482a95e3.rlib" "/home/redhawk/code/blaze/target/debug/deps/libab_glyph_rasterizer-ab08dd97444e7cd9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtiny_skia-ee8685b59b658fa6.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtiny_skia_path-51572d8ec70caf7e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libmio-26e2e787aa655ec5.rlib" "/home/redhawk/code/blaze/target/debug/deps/libpercent_encoding-a746d8797b2adb7e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsmithay_client_toolkit-5a28aa30b61e381a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_cursor-4eb24516f9577018.rlib" "/home/redhawk/code/blaze/target/debug/deps/libxcursor-6a4aec9bd4434108.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnom-0870e481b0f3397a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libmemmap2-d710c98046e5f606.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_protocols-f52d7bf2251342dc.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_client-98085772ae888610.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_commons-585e4a7a181105a5.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnix-0702d0e8c3a60eac.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_sys-529ff8af399e8d39.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcalloop-7c3b4c04f3b492f5.rlib" "/home/redhawk/code/blaze/target/debug/deps/libvec_map-57b22adcccce7b43.rlib" "/home/redhawk/code/blaze/target/debug/deps/libinstant-dbcd81677c108dbc.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_widget-0b9e8ede60fb0773.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_style-35069f24c98b590f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_runtime-07bc0a0a6605457d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_futures-34645162a44e79c9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_renderer-aaa74b4a052da619.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_wgpu-7417cb1d105a47cd.rlib" "/home/redhawk/code/blaze/target/debug/deps/libglyphon-8c329ac651a3f56d.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblru-f1b706b356fbc083.rlib" "/home/redhawk/code/blaze/target/debug/deps/libhashbrown-6fd0cab2e6129e28.rlib" "/home/redhawk/code/blaze/target/debug/deps/libahash-d0ab263b95b2d7a2.rlib" "/home/redhawk/code/blaze/target/debug/deps/liballocator_api2-55997c8221556087.rlib" "/home/redhawk/code/blaze/target/debug/deps/libetagere-690338856aafdb03.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsvg_fmt-b5ad69574052e550.rlib" "/home/redhawk/code/blaze/target/debug/deps/libeuclid-228d863b88ced639.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwgpu-6ae3e31f15e4d255.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwgpu_core-0ab3ce05c06a4dc4.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwgpu_hal-07d096e9146c2b5e.rlib" "/home/redhawk/code/blaze/target/debug/deps/librenderdoc_sys-c96e081b751619e0.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgpu_descriptor-ac4fbcf320ba4080.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgpu_descriptor_types-7bbd3cea35d9131b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libkhronos_egl-a349a15695078f7c.rlib" "/home/redhawk/code/blaze/target/debug/deps/libprofiling-e3eaa86a02de7def.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgpu_alloc-b5be983781787f22.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgpu_alloc_types-689be21c63e1b19e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libash-fe493be29e251f22.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnaga-916cbb0093cb23af.rlib" "/home/redhawk/code/blaze/target/debug/deps/libhexf_parse-95b26cdc4b5831aa.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_xid-24369b8ebafffecc.rlib" "/home/redhawk/code/blaze/target/debug/deps/libbit_set-299492c753755080.rlib" "/home/redhawk/code/blaze/target/debug/deps/libbit_vec-11ce7271d3dea585.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcodespan_reporting-824ac7e55fdd8700.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_width-afbb9aaed191fbef.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtermcolor-c94774b4cde6ff5f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libspirv-349dbc9fde7ba170.rlib" "/home/redhawk/code/blaze/target/debug/deps/libindexmap-31f1289e44f27371.rlib" "/home/redhawk/code/blaze/target/debug/deps/libhashbrown-a9ca5fc2ec5397a8.rlib" "/home/redhawk/code/blaze/target/debug/deps/libahash-0a4fc79082fe77f1.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwgpu_types-6f7ccf67536c4b7a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libbitflags-013bc532afb1c8e5.rlib" "/home/redhawk/code/blaze/target/debug/deps/libglow-0e0d1b4ce7a0a42f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libparking_lot-62be0665e03feb4e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libparking_lot_core-65a34eb936d8fcff.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblock_api-278c286e7c690b9d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libscopeguard-56374d929e71983b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures-0066b0b96abe4daf.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_executor-45c5489b02487095.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum_cpus-b255d9155cd2723c.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_util-b1026f6eaedfde4d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libmemchr-b08f79e64c6b9890.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_io-9923a23694feddba.rlib" "/home/redhawk/code/blaze/target/debug/deps/libslab-6507b93a4e2fca37.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_channel-48d4fbffaaeeb419.rlib" "/home/redhawk/code/blaze/target/debug/deps/libpin_project_lite-f3851f15f43d3462.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_sink-66d599cd8470a810.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_task-10f2a86a7d285504.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfutures_core-e5472d862c4c56d9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_tiny_skia-ed4c98b3387a68e2.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcosmic_text-c135483f021c7d51.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_linebreak-f5af7b47fbdbd72b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsys_locale-bd03bf50e1681be3.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblibm-2f8b25519462ce6a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libswash-858c944d26fad0a4.rlib" "/home/redhawk/code/blaze/target/debug/deps/libyazi-b469e82353ad8b4b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libzeno-be189fc6b8b573cb.rlib" "/home/redhawk/code/blaze/target/debug/deps/libaliasable-2d128735d779d081.rlib" "/home/redhawk/code/blaze/target/debug/deps/librustybuzz-845e0d97d776d724.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_bidi_mirroring-083f37e35523fd7d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_ccc-e1bc0bd1512f8302.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_general_category-f668b99b0aaa0252.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_script-f3c026edfe071a7e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_segmentation-920aeb5cc00d61ae.rlib" "/home/redhawk/code/blaze/target/debug/deps/libunicode_bidi-83f4c42151210ba4.rlib" "/home/redhawk/code/blaze/target/debug/deps/librangemap-f280496872882f4d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfontdb-a0958e82a1355e1f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libmemmap2-5aa3d292f641b67a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtinyvec-90e1da22ce3fa4d7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtinyvec_macros-5ac676d1042923c8.rlib" "/home/redhawk/code/blaze/target/debug/deps/libslotmap-e497fdbde344881f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libttf_parser-7247ddedf34c44b2.rlib" "/home/redhawk/code/blaze/target/debug/deps/libkurbo-94a2d7259fc02824.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtiny_skia-dd70befca867c663.rlib" "/home/redhawk/code/blaze/target/debug/deps/libpng-defeb115c442f7ba.rlib" "/home/redhawk/code/blaze/target/debug/deps/libflate2-59d81817f80c1968.rlib" "/home/redhawk/code/blaze/target/debug/deps/libminiz_oxide-cf8f1a6794d9cfba.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfdeflate-0fe7dd5b5e990782.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsimd_adler32-b3b5847e7dfa88a2.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcrc32fast-7b3a863b9824416d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libarrayvec-bd0d3f339abb22e6.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtiny_skia_path-f2e2d0906e7dd334.rlib" "/home/redhawk/code/blaze/target/debug/deps/libstrict_num-4aad0caf5883c9b1.rlib" "/home/redhawk/code/blaze/target/debug/deps/libarrayref-4a8a541c9d129389.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsoftbuffer-3ea0c1168f51d24e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libx11rb-67945fbbe979da16.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgethostname-d4e2addd3688a350.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblibloading-6927de0f34f0da39.rlib" "/home/redhawk/code/blaze/target/debug/deps/libx11rb_protocol-c52911371fdc23b3.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnix-b441997c77cf736e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libmemoffset-9442d62aae17f314.rlib" "/home/redhawk/code/blaze/target/debug/deps/libx11_dl-d031930180275966.rlib" "/home/redhawk/code/blaze/target/debug/deps/libonce_cell-a631183d8131fb9b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_client-4f264a1b32bfdba6.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_backend-eea07b0db3dc9944.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdowncast_rs-9f1fa194eeda37a1.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnix-63179e4651e563a7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libmemoffset-abe5855e16a31080.rlib" "/home/redhawk/code/blaze/target/debug/deps/libpin_utils-bd1cb1d25e9c32a7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libscoped_tls-324980b35444534d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libwayland_sys-d58b79979c9feeec.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblazy_static-55299e210f3a54bc.rlib" "/home/redhawk/code/blaze/target/debug/deps/libdlib-47ea5380e39be9a0.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblibloading-f0f4114b1f2923b7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsmallvec-c52ed5ece0ee0ea6.rlib" "/home/redhawk/code/blaze/target/debug/deps/libio_lifetimes-757e1f444ffdbdac.rlib" "/home/redhawk/code/blaze/target/debug/deps/librustc_hash-7c7ab870ba8ba484.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_graphics-2b06ce54cdd6a631.rlib" "/home/redhawk/code/blaze/target/debug/deps/libhalf-bcf9d2ebfa80c266.rlib" "/home/redhawk/code/blaze/target/debug/deps/libbytemuck-fa5ff5534ede7f0b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libiced_core-3d13581f3ff7a43f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libtwox_hash-4275825c31383ca1.rlib" "/home/redhawk/code/blaze/target/debug/deps/librand-21c812bf077c779a.rlib" "/home/redhawk/code/blaze/target/debug/deps/librand_chacha-7e4929c0f8713f21.rlib" "/home/redhawk/code/blaze/target/debug/deps/libppv_lite86-ef4d3fc1d9e833d5.rlib" "/home/redhawk/code/blaze/target/debug/deps/librand_core-4fbb9ea2767347bb.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgetrandom-09565a7296585837.rlib" "/home/redhawk/code/blaze/target/debug/deps/libstatic_assertions-eae405ddeeb3f25d.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcfg_if-f700ffed35b37b93.rlib" "/home/redhawk/code/blaze/target/debug/deps/libthiserror-02991e648f53747b.rlib" "/home/redhawk/code/blaze/target/debug/deps/libpalette-5129deececd1f172.rlib" "/home/redhawk/code/blaze/target/debug/deps/libfast_srgb8-020a8ec248bd02f1.rlib" "/home/redhawk/code/blaze/target/debug/deps/libphf-4c8a3b34b6c2ca29.rlib" "/home/redhawk/code/blaze/target/debug/deps/libphf_shared-a39c886889eb3846.rlib" "/home/redhawk/code/blaze/target/debug/deps/libsiphasher-e2546b3fcea036c9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libapprox-f89b69ff000aaa62.rlib" "/home/redhawk/code/blaze/target/debug/deps/libnum_traits-b1e853f4cf31a41f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libbitflags-ae5d509a8ae7fba7.rlib" "/home/redhawk/code/blaze/target/debug/deps/libglam-45989f70a5e62866.rlib" "/home/redhawk/code/blaze/target/debug/deps/librfd-df9d25a3e7995f46.rlib" "/home/redhawk/code/blaze/target/debug/deps/libraw_window_handle-d9cd580deb0a69dc.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgtk_sys-cff60caa351bfe01.rlib" "/home/redhawk/code/blaze/target/debug/deps/libatk_sys-fbd2f9102eece86e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgdk_sys-7543e5a1bb570203.rlib" "/home/redhawk/code/blaze/target/debug/deps/libpango_sys-0adfe5ec63816a0e.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgdk_pixbuf_sys-adc0f2602261be1a.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgio_sys-ea5648bfd2309ab9.rlib" "/home/redhawk/code/blaze/target/debug/deps/libcairo_sys-8d675d6f94f6804f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libgobject_sys-018618a67b3e729f.rlib" "/home/redhawk/code/blaze/target/debug/deps/libglib_sys-c3d8eb983790c64e.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblibc-8ce438269babb926.rlib" "/home/redhawk/code/blaze/target/debug/deps/libblaze_core-43530d012acb1d94.rlib" "/home/redhawk/code/blaze/target/debug/deps/liblog-0b6ea8c043f6507b.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-0d91c78a7710ed2e.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-9bfeb974ba4dc4e7.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-7dd2d47ddb5fff81.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-18d5ce8e8a320b85.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-69d2770595dc6161.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-b156a020cc470e38.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-84091f15e468b1ee.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fbde6acb28b510ca.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e9de5d8ee4e7a3dd.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-9023252e4f119830.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-fcbb01769e88af40.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-f69e84994e245fea.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-27b55c02caca49ea.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-579b26075cbe9eca.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-54c30397d4b33d3b.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-65fb576691133eee.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-3fff6412017c0b89.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-fd3918c72578db43.rlib" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-2a597573799b576f.rlib" "-Wl,-Bdynamic" "-lncursesw" "-ltinfo" "-ldl" "-ldl" "-ldl" "-lgtk-3" "-lgdk-3" "-lz" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-latk-1.0" "-lcairo-gobject" "-lcairo" "-lgdk_pixbuf-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-latk-1.0" "-lgobject-2.0" "-lglib-2.0" "-lgdk-3" "-lz" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lgobject-2.0" "-lglib-2.0" "-lpango-1.0" "-lgobject-2.0" "-lglib-2.0" "-lharfbuzz" "-lgdk_pixbuf-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lcairo" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/redhawk/code/blaze/target/debug/deps/blaze-e430555e77fbd2f2" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-fuse-ld=/usr/bin/mold"
  = note: mold: fatal: /usr/lib64/ncurses5/libncursesw.so:2: SEARCH_DIR(/usr/lib64/ncurses5)
                                                      ^ unknown linker script token
          clang-16.0: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `blaze` (bin "blaze") due to previous error

Caused by:
  process didn't exit successfully: `/home/redhawk/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name blaze --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=242 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=e430555e77fbd2f2 -C extra-filename=-e430555e77fbd2f2 --out-dir /home/redhawk/code/blaze/target/debug/deps -C linker=clang -C incremental=/home/redhawk/code/blaze/target/debug/incremental -L dependency=/home/redhawk/code/blaze/target/debug/deps --extern blaze_core=/home/redhawk/code/blaze/target/debug/deps/libblaze_core-43530d012acb1d94.rlib --extern blaze_gui=/home/redhawk/code/blaze/target/debug/deps/libblaze_gui-a9579d6185d63ba3.rlib --extern blaze_tui=/home/redhawk/code/blaze/target/debug/deps/libblaze_tui-39c5ee342caf0201.rlib --extern clap=/home/redhawk/code/blaze/target/debug/deps/libclap-8e28cda4414bd83a.rlib --extern log=/home/redhawk/code/blaze/target/debug/deps/liblog-0b6ea8c043f6507b.rlib --extern pretty_env_logger=/home/redhawk/code/blaze/target/debug/deps/libpretty_env_logger-2c4d324ecf59ab9f.rlib -C link-arg=-fuse-ld=/usr/bin/mold -L native=/usr/lib64/ncurses5 -L /usr/lib64/ncurses5` (exit status: 1)

I do have this package installed and here are the files mold can't find

 └$ ls -lah /usr/lib64/ncurses5/
total 56K
drwxr-xr-x 1 root root  330 Sep 21 10:54 .
dr-xr-xr-x 1 root root 131K Sep 20 21:41 ..
lrwxrwxrwx 1 root root   15 Aug 30 04:28 libform.so -> ../libform.so.5
lrwxrwxrwx 1 root root   16 Aug 30 04:28 libformw.so -> ../libformw.so.5
lrwxrwxrwx 1 root root   15 Aug 30 04:28 libmenu.so -> ../libmenu.so.5
lrwxrwxrwx 1 root root   16 Aug 30 04:28 libmenuw.so -> ../libmenuw.so.5
-rw-r--r-- 1 root root   75 Aug 30 04:28 libncurses++.so
-rw-r--r-- 1 root root  105 Aug 30 04:28 libncurses.so
-rw-r--r-- 1 root root   76 Aug 30 04:28 libncurses++w.so
-rw-r--r-- 1 root root  106 Aug 30 04:28 libncursesw.so
lrwxrwxrwx 1 root root   16 Aug 30 04:28 libpanel.so -> ../libpanel.so.5
lrwxrwxrwx 1 root root   17 Aug 30 04:28 libpanelw.so -> ../libpanelw.so.5
lrwxrwxrwx 1 root root   14 Aug 30 04:29 libtic.so -> ../libtic.so.5
lrwxrwxrwx 1 root root   15 Aug 30 04:29 libticw.so -> ../libticw.so.5
lrwxrwxrwx 1 root root   16 Aug 30 04:29 libtinfo.so -> ../libtinfo.so.5
lrwxrwxrwx 1 root root   17 Aug 30 04:29 libtinfow.so -> ../libtinfow.so.5

This branch of my repo has this problem

system info

 └$ inxi -F
System:
  Host: Mythra Kernel: 6.5.3-1-default arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.8 Distro: openSUSE Tumbleweed 20230917
 └$ mold -v
mold 2.1.0 (compatible with GNU ld)
petr-tik commented 10 months ago

looks like a duplicate of https://github.com/rui314/mold/issues/374

both mention the SEARCH_DIR in the linker script

Redhawk18 commented 10 months ago

im also using opensuse tumbleweed to.

looks like a duplicate of #374

both mention the SEARCH_DIR in the linker script