Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: -m32: ld: skipping incompatible /lib/libgcc_s.so when searching for -lgcc_s



On Wed, Sep 16, 2026 at 01:06:56PM +0100, Matthew Green wrote:
> > #      link  bcc/bcc
> > gcc   -m32 -Wl,-zrelro -Wl,-R/usr/pkg/lib   -pie  -shared-libgcc  -Wl,--warn-shared-textrel -Wl,-z,relro     -o bcc  bcc.o  -Wl,-rpath-link,/lib  -L=/lib
> 
> i'm pretty sure: don't mix "-m32" and "-L=/lib".  ie, this is a
> build issue.
> 
> find what is adding "-Wl,-rpath-link,/lib -L=/lib" and remove it.

It's not a problem on my test system, where /usr/lib/i386 is populated
and has a libgcc_s, see my first post:

ld: skipping incompatible /lib/libgcc_s.so when searching for -lgcc_s
ld: skipping incompatible /lib/libc.so when searching for -lc
ld: skipping incompatible /lib/libgcc_s.so when searching for -lgcc_s

The incompatible /lib version is just skipped.
 Thomas


Home | Main Index | Thread Index | Old Index