[PATCH] sandbox: solve undefined reference to pthread_kill symbol
Raymond Mao
raymond.mao at linaro.org
Tue Jun 3 20:00:23 CEST 2025
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
Regards,
Raymond
>
> --
> Tom
More information about the U-Boot
mailing list