From: Anshul Dalal <anshuld@ti.com>
To: Raymond Mao <raymond.mao@linaro.org>, Tom Rini <trini@konsulko.com>
Cc: <u-boot@lists.denx.de>, Simon Glass <sjg@chromium.org>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Peter Robinson <pbrobinson@gmail.com>,
Jerome Forissier <jerome.forissier@linaro.org>,
Richard Henderson <richard.henderson@linaro.org>,
Adriano Cordova <adrianox@gmail.com>,
Michal Simek <michal.simek@amd.com>,
Casey Connolly <casey.connolly@linaro.org>,
Sughosh Ganu <sughosh.ganu@linaro.org>,
Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
Jonathan Humphreys <j-humphreys@ti.com>,
Sam Edwards <cfsworks@gmail.com>,
Prasad Kummari <prasad.kummari@amd.com>
Subject: Re: [PATCH] sandbox: solve undefined reference to pthread_kill symbol
Date: Wed, 4 Jun 2025 15:33:31 +0530 [thread overview]
Message-ID: <DADNW2131HYB.V2UGC24FOJJO@ti.com> (raw)
In-Reply-To: <CAEfUkULmB2PckAKf+euT8Mj3ehirw-TjmNT20-+AfVy6SpRB=Q@mail.gmail.com>
Hi Raymond,
On Wed Jun 4, 2025 at 2:30 AM IST, Raymond Mao wrote:
> Hi Tom,
>
> On Tue, 3 Jun 2025 at 15:23, Tom Rini <trini@konsulko.com> wrote:
>>
>> 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@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@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.
>>
> This failure occured in my host since v2025.07-rc1, but with the same
> host, same setup and same instructions it worked fine in v2025.04-rc5.
> Seems that some impacts were introduced during v2025.04-rc5 ~
> v2025.07-rc1, which might be worth investigating.
>
I am unable to reproduce the issue on gcc 15.1.1 and glibc 2.41. I think
the issue is likely on your host end. What compiler and libc are you
using for the build?
Regards,
Anshul
next prev parent reply other threads:[~2025-06-04 10:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 15:13 [PATCH] sandbox: solve undefined reference to pthread_kill symbol Raymond Mao
2025-06-03 15:47 ` Tom Rini
2025-06-03 18:00 ` Raymond Mao
2025-06-03 19:23 ` Tom Rini
2025-06-03 21:00 ` Raymond Mao
2025-06-04 10:03 ` Anshul Dalal [this message]
2025-06-04 13:56 ` Tom Rini
2025-06-04 15:03 ` Patrice CHOTARD
2025-06-04 15:12 ` Tom Rini
2025-06-04 15:37 ` Raymond Mao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DADNW2131HYB.V2UGC24FOJJO@ti.com \
--to=anshuld@ti.com \
--cc=adrianox@gmail.com \
--cc=casey.connolly@linaro.org \
--cc=cfsworks@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=j-humphreys@ti.com \
--cc=jerome.forissier@linaro.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=michal.simek@amd.com \
--cc=pbrobinson@gmail.com \
--cc=prasad.kummari@amd.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=raymond.mao@linaro.org \
--cc=richard.henderson@linaro.org \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox