[PATCH] sandbox: solve undefined reference to pthread_kill symbol

Tom Rini trini at konsulko.com
Tue Jun 3 21:23:45 CEST 2025


On Tue, Jun 03, 2025 at 02:00:23PM -0400, Raymond Mao wrote:
> Hi Tom,
> 
> On Tue, 3 Jun 2025 at 11:47, Tom Rini <trini at konsulko.com> wrote:
> >
> > On Tue, Jun 03, 2025 at 08:13:58AM -0700, Raymond Mao wrote:
> >
> > > This patch is to solve the sandbox building error:
> > > $ make O=build-sandbox -s sandbox_defconfig
> > > $ make O=build-sandbox -s -j2
> > > /usr/bin/ld: /tmp/u-boot.27rzOu.ltrans58.ltrans.o: undefined reference to symbol 'pthread_kill@@GLIBC_2.2.5'
> > > /usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
> > > collect2: error: ld returned 1 exit status
> > > [...]
> > >
> > > Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> > > ---
> > >  arch/sandbox/config.mk | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > OK, but how do you get this failure to start with? What host?
> It failed when I started any sandbox unit test like:
> ./test/py/test.py --bd sandbox --build -k <any_test>
> My local host: Ubuntu v20.04, x86_64

We don't see that normally, is there something odd about your compilers?
This is the kind of thing which should be failing everywhere, but isn't.
Thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250603/3093174c/attachment.sig>


More information about the U-Boot mailing list