From: "Dora, Sunil Kumar" <SunilKumar.Dora@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH V2] gdb: Upgrade 16.3 -> 17.1
Date: Wed, 31 Dec 2025 10:50:42 -0800 [thread overview]
Message-ID: <359949.1767207042798785049@lists.openembedded.org> (raw)
In-Reply-To: <DF6BX97B9AVC.XYGAZDNN5E39@bootlin.com>
[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]
Hi Mathieu,
Thanks for reporting this.
This appears to be an upstream GDB issue affecting musl builds. The failure comes from set_custom_baudrate_linux() in gdb/ser-unix.c , which directly accesses struct termios members c_ospeed / c_ispeed. These fields exist with those names in glibc, but musl exposes them as __c_ospeed / __c_ispeed , which explains the build breakage you’re seeing.
There is an upstream Bugzilla report tracking this issue:
https://sourceware.org/bugzilla/show_bug.cgi?id=33747
I’ve been participating in the discussion there and shared some investigation and a possible direction, but there is *no agreed-upon fix yet*. A few important points from the upstream discussion so far:
*
Simply switching to cfset [io] speed() is not sufficient in all cases, since musl rejects non-standard baud rates and the existing GDB code intentionally bypasses that API.
*
Using libc-specific field names via #ifdef is fragile.
*
One possible approach under discussion is using a Linux termios2 -based path guarded by TCGETS2 , but this needs careful handling (e.g. BOTHER values differ across architectures).
Given this, it seems best to let this get resolved upstream rather than adding a temporary OE-Core workaround. I’ll keep an eye on the upstream bug and follow up once there’s either a merged fix or a clearly recommended approach we can backport.
Thanks,
Sunil
[-- Attachment #2: Type: text/html, Size: 2687 bytes --]
next prev parent reply other threads:[~2025-12-31 18:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-23 9:44 [PATCH V2] gdb: Upgrade 16.3 -> 17.1 sundeep.kokkonda
2025-12-24 9:12 ` [OE-core] " Mathieu Dubois-Briand
2025-12-31 18:50 ` Dora, Sunil Kumar [this message]
2026-02-12 16:59 ` 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=359949.1767207042798785049@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