From: "Dora, Sunil Kumar" <SunilKumar.Dora@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH V3] gdb: Upgrade 16.3 -> 17.1
Date: Tue, 24 Feb 2026 11:07:59 -0800 [thread overview]
Message-ID: <115433.1771960079432840727@lists.openembedded.org> (raw)
In-Reply-To: <DGN3FKTFTU3F.11M037GAZMI07@bootlin.com>
[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]
On Tue, Feb 24, 2026 at 03:14 PM, Mathieu Dubois-Briand wrote:
>
> Hi Sunil,
>
> Thanks for the new version.
>
> It looks like we still have a musl issue, but specifically while
> building for qemuarm64 machine:
>
> ERROR: gdb-17.1-r0 do_compile: Execution of
> '/srv/pokybuild/yocto-worker/musl-qemuarm64/build/build/tmp/work/cortexa57-poky-linux-musl/gdb/17.1/temp/run.do_compile.2065169'
> failed with exit code 1
> ...
> | In file included from
> ../../sources/gdb-17.1/gdbserver/linux-aarch64-low.cc:42:
> | ../../sources/gdb-17.1/gdbserver/../gdb/arch/aarch64-gcs-linux.h:35:8:
> error: redefinition of 'struct user_gcs'
> | 35 | struct user_gcs
> | | ^~~~~~~~
> | In file included from
> ../../sources/gdb-17.1/gdbserver/linux-aarch64-low.cc:35:
> |
> /srv/pokybuild/yocto-worker/musl-qemuarm64/build/build/tmp/work/cortexa57-poky-linux-musl/gdb/17.1/recipe-sysroot/usr/include/asm/ptrace.h:329:8:
> note: previous definition of 'struct user_gcs'
> | 329 | struct user_gcs {
> | | ^~~~~~~~
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/111/builds/1970
>
> Can you have a look at it?
Hi Mathieu,
Thanks for the report.
I’ve checked the failure. It’s another musl-specific issue with the new AArch64 GCS support in GDB 17.1.
struct user_gcs is now provided by musl via <asm/ptrace.h> , while GDB still has its own fallback definition
in aarch64-gcs-linux.h , which causes the duplicate definition error.
GDB has guards around the fallback definition, but they don’t work correctly with musl’s header layout.
This does not happen with glibc due to different header inclusion behavior.
I’m working on a fix and will send an updated patch shortly.
Thanks,
Sunil
>
>
> Thanks,
> Mathieu
[-- Attachment #2: Type: text/html, Size: 3785 bytes --]
next prev parent reply other threads:[~2026-02-24 19:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 11:50 [PATCH V3] gdb: Upgrade 16.3 -> 17.1 sunilkumar.dora
2026-02-24 9:44 ` [OE-core] " Mathieu Dubois-Briand
2026-02-24 19:07 ` Dora, Sunil Kumar [this message]
2026-02-26 4:31 ` Dora, Sunil Kumar
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=115433.1771960079432840727@lists.openembedded.org \
--to=sunilkumar.dora@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/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