[Bug build/33985] ld: cannot find -lgcc_s: No such file or directory
adhemerval.zanella at linaro dot org
sourceware-bugzilla@sourceware.org
Fri Mar 13 12:13:59 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=33985
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adhemerval.zanella at linaro dot o
| |rg
--- Comment #9 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Sam James from comment #1)
> (In reply to Aditya from comment #0)
> > I am trying to compile glibc 2.44 (5d89e7c47cc9d27475e086dedbeecc69be82aa74)
> > for OpenWrt x86_64 but getting the following error when compiling :
> > ```
>
> Please include config.log and ideally the full build log too.
>
> > [...]
> >
> > Because of recent glibc's libunwind changes, I have already add the
> > following to my glibc Makefile : -UHAVE_CC_WITH_LIBUNWIND
>
> OK, but why? Shouldn't we handle whatever meant you had to do that instead?
Indeed, does the new configure check wrongly sets it?
And the issue seems that the toolchain has no support for libgcc_s (for
instance an stage1):
checking whether ccache x86_64-openwrt-linux-gnu-gcc can link against
-lgcc_s... no
But later it tries to sotruss.so with -lgcc_s. I am dig into to know how the
recent commit could be changed it.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list