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

Fails to link on master build #2

Closed
DarrienG opened this issue Aug 12, 2020 · 2 comments
Closed

Fails to link on master build #2

DarrienG opened this issue Aug 12, 2020 · 2 comments

Comments

@DarrienG
Copy link

DarrienG commented Aug 12, 2020

Rust version: 1.45.2, OS: CentOS 8, CPU: Ryzen 5 3600, Compositor: Xorg

Full out:

   Compiling typetest v1.0.0 (/tmp/typetest)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.0.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.1.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.10.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.11.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.12.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.13.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.14.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.15.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.2.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.3.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.4.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.5.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.6.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.7.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.8.rcgu.o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.typetest.auzh322i-cgu.9.rcgu.o" "-o" "/tmp/typetest/target/release/deps/typetest-61e039863b235836" "/tmp/typetest/target/release/deps/typetest-61e039863b235836.2meo7lhxf74cgcog.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/typetest/target/release/deps" "-L" "/tmp/typetest/target/release/build/libloading-a3bb07a5fc6bef30/out" "-L" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/typetest/target/release/deps/libiced-68850933bc70594a.rlib" "/tmp/typetest/target/release/deps/libiced_glow-8dbfd40cdde21d3f.rlib" "/tmp/typetest/target/release/deps/libglow_glyph-20f27baad3c67cd8.rlib" "/tmp/typetest/target/release/deps/libglyph_brush-533e8452ed916e8b.rlib" "/tmp/typetest/target/release/deps/libglyph_brush_layout-0db8b7f8018804f5.rlib" "/tmp/typetest/target/release/deps/libxi_unicode-efdb9bb26e15a2df.rlib" "/tmp/typetest/target/release/deps/libglyph_brush_draw_cache-33fc7448391fda1d.rlib" "/tmp/typetest/target/release/deps/libcrossbeam_channel-839c8b2a9e3219b4.rlib" "/tmp/typetest/target/release/deps/librustc_hash-2d8de52cd62a933d.rlib" "/tmp/typetest/target/release/deps/librayon-38251e939c91ccbf.rlib" "/tmp/typetest/target/release/deps/librayon_core-a658d30961b26ff8.rlib" "/tmp/typetest/target/release/deps/libcrossbeam_deque-88cc255d92eef60a.rlib" "/tmp/typetest/target/release/deps/libcrossbeam_epoch-7efcb1f22871758c.rlib" "/tmp/typetest/target/release/deps/libmemoffset-e35e5516b0a74720.rlib" "/tmp/typetest/target/release/deps/libcrossbeam_queue-640431a00358237b.rlib" "/tmp/typetest/target/release/deps/libeither-07f8eb5d8f8768c2.rlib" "/tmp/typetest/target/release/deps/liblinked_hash_map-6585ebdbeac56aed.rlib" "/tmp/typetest/target/release/deps/libab_glyph-3aa72f16878dcadc.rlib" "/tmp/typetest/target/release/deps/libowned_ttf_parser-8765ad205c986942.rlib" "/tmp/typetest/target/release/deps/libttf_parser-abce1f878015d66f.rlib" "/tmp/typetest/target/release/deps/libab_glyph_rasterizer-45cc06b456c09728.rlib" "/tmp/typetest/target/release/deps/libglow-770d3ab2790f0fa3.rlib" "/tmp/typetest/target/release/deps/libiced_glutin-3d11af0064059a77.rlib" "/tmp/typetest/target/release/deps/libglutin-74f9fbdce3520560.rlib" "/tmp/typetest/target/release/deps/libosmesa_sys-f4f4d580b9615df6.rlib" "/tmp/typetest/target/release/deps/libshared_library-7f87261aa92f5833.rlib" "/tmp/typetest/target/release/deps/liblibloading-b242027365cd863e.rlib" "/tmp/typetest/target/release/deps/libglutin_glx_sys-e36e199a41889f4c.rlib" "/tmp/typetest/target/release/deps/libglutin_egl_sys-98a56783892a5872.rlib" "/tmp/typetest/target/release/deps/libiced_winit-97def4b74d252584.rlib" "/tmp/typetest/target/release/deps/libwindow_clipboard-4323c381c5fb695d.rlib" "/tmp/typetest/target/release/deps/libclipboard_x11-248866bca2300f08.rlib" "/tmp/typetest/target/release/deps/libxcb-3c9461c25659fc91.rlib" "/tmp/typetest/target/release/deps/libclipboard_wayland-067ce0885a6eada1.rlib" "/tmp/typetest/target/release/deps/libsmithay_clipboard-60df083737b24342.rlib" "/tmp/typetest/target/release/deps/libsmithay_client_toolkit-525d27f56c99223f.rlib" "/tmp/typetest/target/release/deps/libwayland_cursor-3c28a783ad305e3b.rlib" "/tmp/typetest/target/release/deps/libxcursor-17ee7ebd50a7d257.rlib" "/tmp/typetest/target/release/deps/libnom-690f34eccc994b92.rlib" "/tmp/typetest/target/release/deps/libwayland_protocols-7c95976eeddf0024.rlib" "/tmp/typetest/target/release/deps/libwayland_client-32da3c1c74a30b7c.rlib" "/tmp/typetest/target/release/deps/libwayland_commons-258d9ec2a7f26313.rlib" "/tmp/typetest/target/release/deps/libnix-11612ac1aa8582de.rlib" "/tmp/typetest/target/release/deps/libwayland_sys-e4e65553a325564e.rlib" "/tmp/typetest/target/release/deps/libiced_graphics-b2061f8423f0a383.rlib" "/tmp/typetest/target/release/deps/libbytemuck-e10dca2dfaf055e9.rlib" "/tmp/typetest/target/release/deps/libiced_style-d19da786a7272e41.rlib" "/tmp/typetest/target/release/deps/libglam-6a2eb3e571e21e71.rlib" "/tmp/typetest/target/release/deps/libwinit-e583a7d1003f6ea4.rlib" "/tmp/typetest/target/release/deps/libx11_dl-5a1ca10284a0ee1f.rlib" "/tmp/typetest/target/release/deps/libmaybe_uninit-221c27a634e131c5.rlib" "/tmp/typetest/target/release/deps/libpercent_encoding-beb548f7fbaa198d.rlib" "/tmp/typetest/target/release/deps/libsmithay_client_toolkit-c29b71734ccc1fe2.rlib" "/tmp/typetest/target/release/deps/libwayland_protocols-d716d8bbd0d9c547.rlib" "/tmp/typetest/target/release/deps/libwayland_client-82ee58fa86d4b7d1.rlib" "/tmp/typetest/target/release/deps/libwayland_commons-ce1b99886456d336.rlib" "/tmp/typetest/target/release/deps/libwayland_sys-efb202a486fc0348.rlib" "/tmp/typetest/target/release/deps/libcalloop-32a59b24edcdf821.rlib" "/tmp/typetest/target/release/deps/libmio_extras-d8a549b7bd0a6041.rlib" "/tmp/typetest/target/release/deps/liblazycell-a105750d6d0eeb43.rlib" "/tmp/typetest/target/release/deps/libmio-ce639dfbbd9afcfd.rlib" "/tmp/typetest/target/release/deps/libiovec-4d3855f43e6ae4df.rlib" "/tmp/typetest/target/release/deps/libnet2-a96c450616b7ff39.rlib" "/tmp/typetest/target/release/deps/libnix-0b401c7ebe21a9cf.rlib" "/tmp/typetest/target/release/deps/libvoid-41327d20f8eb06ed.rlib" "/tmp/typetest/target/release/deps/libmemmap-9db8ddb733dfeae2.rlib" "/tmp/typetest/target/release/deps/libandrew-1bc914ad786d570a.rlib" "/tmp/typetest/target/release/deps/libxml-5096fbaed5e8344c.rlib" "/tmp/typetest/target/release/deps/libxdg-d0a7a134cf32bf11.rlib" "/tmp/typetest/target/release/deps/libwalkdir-4f57f48dec5a9942.rlib" "/tmp/typetest/target/release/deps/libsame_file-64fa0931a96b228f.rlib" "/tmp/typetest/target/release/deps/librusttype-f7dacda635e6972f.rlib" "/tmp/typetest/target/release/deps/librusttype-c2bc1f39c9c1c1e4.rlib" "/tmp/typetest/target/release/deps/libstb_truetype-242070c7034ea984.rlib" "/tmp/typetest/target/release/deps/libbyteorder-04673a75e4424666.rlib" "/tmp/typetest/target/release/deps/libordered_float-f281f4ffd7c6b451.rlib" "/tmp/typetest/target/release/deps/libapprox-85c260b9e17bc250.rlib" "/tmp/typetest/target/release/deps/libline_drawing-385cf073bc10affc.rlib" "/tmp/typetest/target/release/deps/libdlib-fc364cb082977ef8.rlib" "/tmp/typetest/target/release/deps/liblibloading-dbaf03f0c15d1714.rlib" "/tmp/typetest/target/release/deps/libraw_window_handle-f3f4f7a5c36cce93.rlib" "/tmp/typetest/target/release/deps/libparking_lot-83c862f535c700b4.rlib" "/tmp/typetest/target/release/deps/libparking_lot_core-cbcd788313e0666c.rlib" "/tmp/typetest/target/release/deps/libsmallvec-42cefd875242f4c9.rlib" "/tmp/typetest/target/release/deps/liblock_api-bc84e94bb6be3b36.rlib" "/tmp/typetest/target/release/deps/libscopeguard-981e0fd01390580f.rlib" "/tmp/typetest/target/release/deps/libinstant-5e7c03af419f8b70.rlib" "/tmp/typetest/target/release/deps/libbitflags-c74b1b8d1e8f9660.rlib" "/tmp/typetest/target/release/deps/libiced_native-b24adf1977f71d6b.rlib" "/tmp/typetest/target/release/deps/libtwox_hash-021053999bbe7976.rlib" "/tmp/typetest/target/release/deps/librand-0b1da1fbe4932acc.rlib" "/tmp/typetest/target/release/deps/librand_chacha-618e4ef498dbe97f.rlib" "/tmp/typetest/target/release/deps/libppv_lite86-0feb83f6519fdc19.rlib" "/tmp/typetest/target/release/deps/librand_core-0d70a91769289afc.rlib" "/tmp/typetest/target/release/deps/libgetrandom-b4fb2a9bd67ca6b2.rlib" "/tmp/typetest/target/release/deps/libnum_traits-69404b3ca80b8cfd.rlib" "/tmp/typetest/target/release/deps/libunicode_segmentation-ab213ab0296b477b.rlib" "/tmp/typetest/target/release/deps/libiced_core-a42e6fc261960553.rlib" "/tmp/typetest/target/release/deps/libiced_futures-aee419fbd06b9a5b.rlib" "/tmp/typetest/target/release/deps/libasync_std-b431027aa4e69233.rlib" "/tmp/typetest/target/release/deps/libsmol-541cd268612d52b7.rlib" "/tmp/typetest/target/release/deps/libasync_task-8bacceea99a40781.rlib" "/tmp/typetest/target/release/deps/libblocking-90f205971fb7b84c.rlib" "/tmp/typetest/target/release/deps/libfutures_lite-a48dc0ecd996a3e4.rlib" "/tmp/typetest/target/release/deps/libfastrand-424d1cc1707fbeee.rlib" "/tmp/typetest/target/release/deps/libwaker_fn-9a6ca7d370fec3f4.rlib" "/tmp/typetest/target/release/deps/libparking-7fb1fa6298f8bbb2.rlib" "/tmp/typetest/target/release/deps/libatomic_waker-adb6445ba731e28f.rlib" "/tmp/typetest/target/release/deps/libasync_channel-9b9603202f87e4b1.rlib" "/tmp/typetest/target/release/deps/libevent_listener-891c26cfcb18f65b.rlib" "/tmp/typetest/target/release/deps/libscoped_tls-ff63bbc553db399d.rlib" "/tmp/typetest/target/release/deps/libconcurrent_queue-d7014ce14342da5b.rlib" "/tmp/typetest/target/release/deps/libcache_padded-18c80c059c334309.rlib" "/tmp/typetest/target/release/deps/libsocket2-f78f86aeee93e31e.rlib" "/tmp/typetest/target/release/deps/libcrossbeam_utils-bc98c3301460c49f.rlib" "/tmp/typetest/target/release/deps/liblazy_static-f93dc726c4c8f194.rlib" "/tmp/typetest/target/release/deps/libpin_project_lite-26d68186f2482f16.rlib" "/tmp/typetest/target/release/deps/libkv_log_macro-1b67adc645f87e13.rlib" "/tmp/typetest/target/release/deps/liblog-c163cec99e5d0cbb.rlib" "/tmp/typetest/target/release/deps/libcfg_if-b54bd1f3a94e0e76.rlib" "/tmp/typetest/target/release/deps/libfutures-19e9ce3d6ae5c2bb.rlib" "/tmp/typetest/target/release/deps/libfutures_executor-2fd323ad34777e08.rlib" "/tmp/typetest/target/release/deps/libnum_cpus-df749efb73077f5f.rlib" "/tmp/typetest/target/release/deps/liblibc-636aca7798be1458.rlib" "/tmp/typetest/target/release/deps/libfutures_util-4414904804b7df06.rlib" "/tmp/typetest/target/release/deps/libmemchr-fa9b7adacce34692.rlib" "/tmp/typetest/target/release/deps/libproc_macro_nested-ebcc1646b95e9e82.rlib" "/tmp/typetest/target/release/deps/libfutures_io-d6573a38ff6e897c.rlib" "/tmp/typetest/target/release/deps/libslab-e1b177a90421fcb5.rlib" "/tmp/typetest/target/release/deps/libfutures_channel-0eb429c3208649f4.rlib" "/tmp/typetest/target/release/deps/libpin_project-5888f93c514d4c4f.rlib" "/tmp/typetest/target/release/deps/libfutures_sink-6549ac12779eda11.rlib" "/tmp/typetest/target/release/deps/libfutures_task-697c8c3ea7cbd444.rlib" "/tmp/typetest/target/release/deps/libonce_cell-8575d0fe3ed124c3.rlib" "/tmp/typetest/target/release/deps/libpin_utils-abc99c3ae697a3d7.rlib" "/tmp/typetest/target/release/deps/libfutures_core-1d4aa2a2b9b5aabd.rlib" "-Wl,--start-group" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8bb11f807a7b6b4c.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-ca8087507780d964.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-259c92b387c1c166.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-16e0a2fbbb8e14b3.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-8a1651b8e23d2aaf.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-23bdd98b0574083e.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-855a92055ec33e2e.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-24c70dd44fbacdfb.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-b326273841bae587.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ac3c1f0e16507051.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-a5729542b65954aa.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-09bd1119ab1cad7d.rlib" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9a787681bfbeaf61.rlib" "-Wl,--end-group" "/home/darrien/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-5a0398ee67f74664.rlib" "-Wl,-Bdynamic" "-ldl" "-lxcb" "-lxcb" "-lxcb" "-lxcb" "-ldl" "-ldl" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil"
  = note: /usr/bin/ld: cannot find -lxcb
          /usr/bin/ld: cannot find -lxcb
          /usr/bin/ld: cannot find -lxcb
          /usr/bin/ld: cannot find -lxcb
          collect2: error: ld returned 1 exit status

Maybe there's a C dependency I'm missing?

@Ace4896
Copy link
Owner

Ace4896 commented Aug 12, 2020

From the output, the development packages for libxcb are missing. I don't use CentOS, but I did a quick search here and it looks like the package you want is libxcb-devel.

There's quite a few dependencies needed to use Iced on Linux - I'm not sure how up-to-date this is, but you can look at this issue which lists them. I'll put something in the README about this.

@DarrienG
Copy link
Author

Ah thanks. I didn't know iced had so many deps. Closing

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

2 participants