Skip to content

Compile error linking with cc failed #28

Open

Description

@clinzy25

I have seen #3 but the libextest.so doesn't create in this step so I cannot proceed any further.

I am on Linux Bazzite which is immutable FYI.

conner@bazzite:~/Documents/scripts/extest$ cargo build --release
Compiling extest v1.0.3 (/var/home/conner/Documents/scripts/extest)
error: linking with cc failed: exit status: 1
|
= note: "cc" "-Wl,--version-script=/tmp/rustchv47RR/list" "-Wl,--no-undefined-version" "-m32" "/tmp/rustchv47RR/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/var/home/conner/Documents/scripts/extest/target/i686-unknown-linux-gnu/release/deps/{libonce_cell-f8b1e234f515c0d4,libwayland_protocols-03bb1ead1bf8714f,libwayland_client-aa38c97584f98c30,libwayland_backend-b715e93b9a8858f1,libdowncast_rs-9af3fb904cb21dd1,libwayland_sys-e640646069ad3aee,libnix-1ca999ab4427ed65,libmemoffset-2467c4e6d4d42138,libbitflags-f664b83ea6575e0f,libsmallvec-9c19ad13bce6397b,libio_lifetimes-24cfcf690630cb2a,libevdev-d2d5bd4f267c32e5,libnix-eaa0d8494c943e6d,libbitflags-5fca1525807c8084,liblibc-360e35c16ff27606,libcfg_if-95f45423eb0486b8,libbitvec-59a6b01ef092968f,libwyz-1f7326711d3db2e7,libtap-c4534b2e7b301755,libradium-0dc72315ebcfac9e,libfunty-f1aad37992a14c52}.rlib" "/lib/rustlib/i686-unknown-linux-gnu/lib/{libstd-,libpanic_unwind-,libobject-,libmemchr-,libaddr2line-,libgimli-,libcfg_if-,librustc_demangle-,libstd_detect-,libhashbrown-,librustc_std_workspace_alloc-,libminiz_oxide-,libadler2-,libunwind-,liblibc-,librustc_std_workspace_core-,liballoc-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustchv47RR/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/i686-unknown-linux-gnu/lib" "-o" "/var/home/conner/Documents/scripts/extest/target/i686-unknown-linux-gnu/release/deps/libextest.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: /usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status

error: could not compile extest (lib) due to 1 previous error
conner@bazzite:~/Documents/scripts/extest$

Activity

  1. Supreeeme commented on Nov 28, 2025

    @Supreeeme
    Owner

    Hm, I'm not familiar at all with Bazzite, but I would guess your gcc is missing the 32 bit support. On normal Fedora I think you would fix this with:

    sudo dnf install libgcc.i686 glibc-devel.i686
    

    I'm not sure how it works with Bazzite. But also, doesn't Bazzite already ship extest?

  2. maxbailly commented on May 21, 2026

    @maxbailly

    I have the same issue on debian

    error: linking with `cc` failed: exit status: 1
      |
      = note:  "cc" "-Wl,--version-script=/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/rustcVhGbBK/list" "-Wl,--no-undefined-version" "-m32" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/rustcVhGbBK/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/{libonce_cell-d37b701f6ccbe2dc,libwayland_protocols-5f267f079aaac2ca,libwayland_client-36f585e2ad310725,libwayland_backend-29d00f615f869c66,libdowncast_rs-de548c65586c3bdf,libwayland_sys-c2c7d63497f4b360,libnix-2ae735eabbfa651a,libmemoffset-c7de1a805fb950bd,libbitflags-da5e4c373b514494,libsmallvec-8f893912ef3f6fcb,libio_lifetimes-e785d55091725661,libevdev-5f5079eb34e6169f,libnix-b65e0f8acd18cbf5,libbitflags-1104614822db2f16,liblibc-6b320c0c247efa03,libcfg_if-25c732960f879868,libbitvec-2372919fa28ad1e2,libwyz-3128e5aaf2545f30,libtap-1bbede81ad8b3051,libradium-7715fcd9889012b6,libfunty-a6ca7970a6254251}.rlib" "<sysroot>/lib/rustlib/i686-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/rustcVhGbBK/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/i686-unknown-linux-gnu/lib" "-o" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/libextest.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
      = note: some arguments are omitted. use `--verbose` to show all linker arguments
      = note: rust-lld: error: cannot open crti.o: No such file or directory
              rust-lld: error: unable to find library -lutil
              rust-lld: error: unable to find library -lrt
              rust-lld: error: unable to find library -lpthread
              rust-lld: error: unable to find library -lm
              rust-lld: error: unable to find library -ldl
              rust-lld: error: unable to find library -lc
              rust-lld: error: cannot open crtn.o: No such file or directory
              collect2: error: ld returned 1 exit status
    
    
    error: could not compile `extest` (lib) due to 1 previous error
    
  3. JonPC4 commented on Jun 27, 2026

    @JonPC4

    I have the same issue on debian

    error: linking with `cc` failed: exit status: 1
      |
      = note:  "cc" "-Wl,--version-script=/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/rustcVhGbBK/list" "-Wl,--no-undefined-version" "-m32" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/rustcVhGbBK/symbols.o" "<6 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/{libonce_cell-d37b701f6ccbe2dc,libwayland_protocols-5f267f079aaac2ca,libwayland_client-36f585e2ad310725,libwayland_backend-29d00f615f869c66,libdowncast_rs-de548c65586c3bdf,libwayland_sys-c2c7d63497f4b360,libnix-2ae735eabbfa651a,libmemoffset-c7de1a805fb950bd,libbitflags-da5e4c373b514494,libsmallvec-8f893912ef3f6fcb,libio_lifetimes-e785d55091725661,libevdev-5f5079eb34e6169f,libnix-b65e0f8acd18cbf5,libbitflags-1104614822db2f16,liblibc-6b320c0c247efa03,libcfg_if-25c732960f879868,libbitvec-2372919fa28ad1e2,libwyz-3128e5aaf2545f30,libtap-1bbede81ad8b3051,libradium-7715fcd9889012b6,libfunty-a6ca7970a6254251}.rlib" "<sysroot>/lib/rustlib/i686-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/rustcVhGbBK/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/i686-unknown-linux-gnu/lib" "-o" "/home/caelmyn/extest/target/i686-unknown-linux-gnu/release/deps/libextest.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
      = note: some arguments are omitted. use `--verbose` to show all linker arguments
      = note: rust-lld: error: cannot open crti.o: No such file or directory
              rust-lld: error: unable to find library -lutil
              rust-lld: error: unable to find library -lrt
              rust-lld: error: unable to find library -lpthread
              rust-lld: error: unable to find library -lm
              rust-lld: error: unable to find library -ldl
              rust-lld: error: unable to find library -lc
              rust-lld: error: cannot open crtn.o: No such file or directory
              collect2: error: ld returned 1 exit status
    
    
    error: could not compile `extest` (lib) due to 1 previous error
    

    apt install gcc-multilib libc6-dev-i386

  4. maxbailly commented on Jun 28, 2026

    @maxbailly

    Thank you very much, worked wonderfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions