From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07FBAF4BB7F for ; Tue, 24 Feb 2026 19:08:06 +0000 (UTC) Subject: Re: [PATCH V3] gdb: Upgrade 16.3 -> 17.1 To: openembedded-core@lists.openembedded.org From: "Dora, Sunil Kumar" X-Originating-Location: Bengaluru, Karnataka, IN (106.51.216.76) X-Originating-Platform: Windows Chrome 145 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 24 Feb 2026 11:07:59 -0800 References: <20260223115033.18066-1-sunilkumar.dora@windriver.com> In-Reply-To: Message-ID: <115433.1771960079432840727@lists.openembedded.org> Content-Type: multipart/alternative; boundary="OsJMKX7qqikYGkb4YtMQ" List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 24 Feb 2026 19:08:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/231902 --OsJMKX7qqikYGkb4YtMQ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 24, 2026 at 03:14 PM, Mathieu Dubois-Briand wrote: >=20 > Hi Sunil, >=20 > Thanks for the new version. >=20 > It looks like we still have a musl issue, but specifically while > building for qemuarm64 machine: >=20 > ERROR: gdb-17.1-r0 do_compile: Execution of > '/srv/pokybuild/yocto-worker/musl-qemuarm64/build/build/tmp/work/cortexa5= 7-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 { > | | ^~~~~~~~ >=20 > https://autobuilder.yoctoproject.org/valkyrie/#/builders/111/builds/1970 >=20 > Can you have a look at it? Hi Mathieu, Thanks for the report. I=E2=80=99ve checked the failure. It=E2=80=99s another musl-specific issue = with the new AArch64 GCS support in GDB 17.1. struct user_gcs is now provided by musl via , while GDB stil= l 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=E2=80=99t work = correctly with musl=E2=80=99s header layout. This does not happen with glibc due to different header inclusion behavior. I=E2=80=99m working on a fix and will send an updated patch shortly. Thanks, Sunil >=20 >=20 > Thanks, > Mathieu --OsJMKX7qqikYGkb4YtMQ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
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/cortex= a57-poky-linux-musl/gdb/17.1/temp/run.do_compile.2065169' failed with exit = code 1
...
| In file included from ../../sources/gdb-17.1/gdbserv= er/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/pokybuil= d/yocto-worker/musl-qemuarm64/build/build/tmp/work/cortexa57-poky-linux-mus= l/gdb/17.1/recipe-sysroot/usr/include/asm/ptrace.h:329:8: note: previous de= finition of 'struct user_gcs'
| 329 | struct user_gcs {
| | ^~~~~= ~~~

https://autobui= lder.yoctoproject.org/valkyrie/#/builders/111/builds/1970

Ca= n 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/ptrac= e.h>, while GDB still has its own fallback definition
in a= arch64-gcs-linux.h, which causes the duplicate definition error.
=
GDB has guards around the fallback definition, but they don’t wo= rk correctly with musl’s header layout.
This does not happen wit= h glibc due to different header inclusion behavior.

I’m working on a fix and will send an updated patch shortly.
 
Thanks,
Sunil

Thanks,
Mathieu
--OsJMKX7qqikYGkb4YtMQ--