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

Can't compile in release mode: linking with cc exits with status code 1 #14

Open
murl-digital opened this issue Sep 8, 2024 · 0 comments · May be fixed by #15
Open

Can't compile in release mode: linking with cc exits with status code 1 #14

murl-digital opened this issue Sep 8, 2024 · 0 comments · May be fixed by #15

Comments

@murl-digital
Copy link

I'm writing my own frontend for projectM, it compiles just fine and works on debug mode, but when compiling with --release, my build fails at link time. Here's the relevant error:

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/draconium/.pyenv/shims:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/rocm/bin:/usr/lib/rustup/bin:/home/draconium/.local/bin:/home/draconium/.cargo/bin:/home/draconium/.local/bin:/home/draconium/.cargo/bin:/home/draconium/.local/bin:/opt/postgresql16/bin:/home/draconium/.local/bin:/opt/postgresql16/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustczO0JLy/symbols.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.00.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.01.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.02.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.03.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.04.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.05.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.06.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.07.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.08.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.09.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.10.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.11.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.12.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.13.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.14.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.projectm_vj.1859dadf11a7754f-cgu.15.rcgu.o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5.4zeqrk4v30l900o9m0tcnicu8.rcgu.o" "-Wl,--as-needed" "-L" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps" "-L" "/home/draconium/Desktop/repos/projectm-vj/target/release/build/projectm-sys-3c16ae1d9f5ffeba/out/lib" "-L" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libprojectm-5dc54f3883f63638.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/librand-c31fb034e3ada925.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/librand_chacha-a5a95f480b04255f.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libppv_lite86-6afaf0eb6d9723b5.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/librand_core-5d57fd9c0f95aa80.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libprojectm_sys-8ce991cdbb0dc5bf.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libglutin_winit-ca23419277e40f0f.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwinit-03dfd54bce69adc3.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libsctk_adwaita-ab5e4e6a228ddbe3.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libab_glyph-11e3e14e11929a62.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libowned_ttf_parser-cd8b19aa5db09593.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libttf_parser-7505f80f951b6689.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libab_glyph_rasterizer-0dae3c820adce154.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libtiny_skia-2e4c7aae83a3d20d.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libarrayvec-b284e7f0c0e6b77d.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libtiny_skia_path-ccd0a532863924b4.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libstrict_num-13a2a022ba64d484.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libarrayref-6640a0a225295979.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libbytemuck-b6cec0854dbcda9c.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libpercent_encoding-15841bd6f3c022bd.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libx11rb-8d1822b8399c31c6.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libas_raw_xcb_connection-df1c1c2a385a4b99.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libx11rb_protocol-f27060a206a72967.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_protocols_plasma-8936f4f225e7021e.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libahash-2ab4a518902efab2.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libgetrandom-c07022d7f3bef2b2.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libzerocopy-ffde212da17770a7.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libbyteorder-701a861a4d770fe6.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libsmithay_client_toolkit-cceba4f9b5249146.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_cursor-ef188c84849951a4.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libxcursor-e3eded411f325a0e.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_protocols_wlr-a73cf3cae0a7f6ca.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_protocols-56175830479d824d.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_csd_frame-e813b42dfea5a8d6.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libcursor_icon-017858f17c54b2fd.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libcalloop_wayland_source-05dbf1b2d0fdda4a.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_client-95985b13b7f5e837.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_backend-40a479e1540f5aaa.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libdowncast_rs-5d527e829aa74f91.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libscoped_tls-d9646d1957685543.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libsmallvec-bfed93343a4b2a60.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libcalloop-46edc2af0057b6d0.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libthiserror-e4ab6a20fae7861f.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libpolling-d7284bc93afca2fc.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/librustix-60ca9f686f677f55.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/liblinux_raw_sys-10ccd29cf44016e9.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libtracing-4952fdc452a384c9.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libpin_project_lite-b28ff670628e6df5.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libtracing_core-36ca01dc0d57944e.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libmemmap2-2d8f52227a38c2de.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libxkbcommon_dl-14f0a819e93fed32.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libxkeysym-02731bfa97661622.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libsmol_str-fd9895fc4203f8e7.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libraw_window_handle-a92d09bc237913d5.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libglutin-848fc14be3732098.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libbitflags-ccad3abe4fed6e79.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libglutin_glx_sys-9db0ff7712c16e50.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libx11_dl-697242cd20a2687e.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/liblibc-f8558ac8830a0895.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libwayland_sys-d3d972f4b109c3ed.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/liblog-7b8f4fb131e9da12.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libdlib-bf62b3217e6a9ffa.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libraw_window_handle-dadb9973e3929479.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libonce_cell-9e854eed23737148.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/liblibloading-8e9802a5fbb789e1.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libcfg_if-069aa8d3b6fffb61.rlib" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/libglutin_egl_sys-942459f214da7909.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-52417a9a08ba8fb9.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1b238e97929fdc18.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3692c2663daa48a5.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-5c1e2d61611c0240.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-e55c5186b9bbabcb.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7911d2fe92903c6c.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-c03510cdc48cfa52.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-7ec6f3765287c7b7.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-ab3f1b788cf79cfc.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6db4226b4e34b1a6.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f5bb1a38d410fa1e.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-e585efe74c64604d.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-03f8e93b59ffc316.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-669e9182bfe197a6.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-64b53226be979181.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-26921ac7e6a44d2b.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-6703049be165ebf1.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-04bfdf6b094564ce.rlib" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6648dc218e522d87.rlib" "-Wl,-Bdynamic" "-llibprojectM=4" "-lprojectM-4-playlist" "-ldl" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/draconium/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/draconium/Desktop/repos/projectm-vj/target/release/deps/projectm_vj-eb9b586a04dcdcb5" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /usr/bin/ld: cannot find -llibprojectM=4: No such file or directory
          collect2: error: ld returned 1 exit status
@murl-digital murl-digital linked a pull request Sep 9, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant