[Bug build/33985] ld: cannot find -lgcc_s: No such file or directory
vortexilation at gmail dot com
sourceware-bugzilla@sourceware.org
Fri Mar 13 11:59:03 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=33985
--- Comment #6 from Aditya <vortexilation at gmail dot com> ---
(In reply to Florian Weimer from comment #5)
> Looks like a misconfigured toolchain:
>
> configure:8514: ccache x86_64-openwrt-linux-gnu-gcc -o conftest -O2
> -mtune=rocketlake -march=rocketlake -O2 -fno-caller-saves -fno-plt
> -mtune=rocketlake -march=rocketlake -O2 -fhonour-copts -Wformat
> -Werror=format-security -fstack-protector -Wl,-z,pack-relative-relocs
> -UHAVE_CC_WITH_LIBUNWIND conftest.c -lselinux >&5
> /home/nobody/works/openwrt/staging_dir/toolchain-x86_64_gcc-15.2.0_glibc/
> x86_64-openwrt-linux-gnu/bin/ld: cannot find crt1.o: No such file or
> directory
> /home/nobody/works/openwrt/staging_dir/toolchain-x86_64_gcc-15.2.0_glibc/
> x86_64-openwrt-linux-gnu/bin/ld: cannot find crti.o: No such file or
> directory
> /home/nobody/works/openwrt/staging_dir/toolchain-x86_64_gcc-15.2.0_glibc/
> x86_64-openwrt-linux-gnu/bin/ld: cannot find -lselinux: No such file or
> directory
> /home/nobody/works/openwrt/staging_dir/toolchain-x86_64_gcc-15.2.0_glibc/
> x86_64-openwrt-linux-gnu/bin/ld: cannot find -lgcc_s: No such file or
> directory
> /home/nobody/works/openwrt/staging_dir/toolchain-x86_64_gcc-15.2.0_glibc/
> x86_64-openwrt-linux-gnu/bin/ld: cannot find -lc: No such file or directory
> /home/nobody/works/openwrt/staging_dir/toolchain-x86_64_gcc-15.2.0_glibc/
> x86_64-openwrt-linux-gnu/bin/ld: cannot find -lgcc_s: No such file or
> directory
> /home/nobody/works/openwrt/staging_dir/toolchain-x86_64_gcc-15.2.0_glibc/
> x86_64-openwrt-linux-gnu/bin/ld: cannot find crtn.o: No such file or
> directory
> collect2: error: ld returned 1 exit status
>
> The compiler driver implicitly links against libgcc_s, but cannot find it.
I don't think so because switching to commit
79942df7c5ceae3468dd15af61bba288447ffe9f which is one commit below the
570c46d36bc9123597a601e500d9d7661d71247b make the error disappear.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list