GDB 17 build failure with musl
Chris Packham via Gdb <[email protected]> Mon, 26 Jan 2026 19:29:21 +1300
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAFOYHZA-bwse4AOdr69Er7DUVsLuOrQ01ninMFGx5iLLDgCcfA@mail.gmail.com> |
Hi GDB,
I've just updated crosstool-ng to include gdb 17.1 and the aarch64
musl toolchain fails with
[ERROR] /home/runner/work/crosstool-ng/crosstool-ng/.build/aarch64-unknown-linux-musl/src/gdb/gdbserver/../gdb/arch/aarch64-gcs-linux.h:35:8:
error: redefinition of 'struct user_gcs'
[ALL ] 35 | struct user_gcs
[ALL ] | ^~~~~~~~
[ALL ] In file included from
/home/runner/work/crosstool-ng/crosstool-ng/.build/aarch64-unknown-linux-musl/src/gdb/gdbserver/linux-aarch64-low.cc:35:
[ALL ] /home/runner/work/crosstool-ng/crosstool-ng/x-tools/aarch64-unknown-linux-musl/aarch64-unknown-linux-musl/sysroot/usr/include/asm/ptrace.h:329:8:
note: previous definition of 'struct user_gcs'
[ALL ] 329 | struct user_gcs {
[ALL ] | ^~~~~~~~
Does this ring any bells for anyone? Builds with gdb 16.3 are fine.
Thanks,
Chris