Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: ld: skipping incompatible /usr/lib/libpthread.so
Date: Fri, 08 Jan 2021 16:59:57
Message-Id: rta31u$3h2$1@ciao.gmane.io
In Reply to: [gentoo-user] ld: skipping incompatible /usr/lib/libpthread.so by Grant Edwards
1 On 2021-01-08, Grant Edwards <grant.b.edwards@×××××.com> wrote:
2 > I've noticed that when linking an applicatoin I now get warnings like this:
3 >
4 > /usr/lib/gcc/[...]/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
5 > /usr/lib/gcc/[...]/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
6 > /usr/lib/gcc/[...]/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
7 > /usr/lib/gcc/[...]/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
8 >
9 > Those files appear to be 32-bit versions.
10
11 Never mind. I just noticed that the build script is specifying -L
12 /usr/lib when it should not. That's what's causing the warnings.