Re: GDB 17 build failure with musl
Thiago Jung Bauermann via Gdb <[email protected]> Tue, 03 Feb 2026 03:10:32 +0000
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Chris, Chris Packham via Gdb <[email protected]> writes: > 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. Sorry for the delay in responding. Do you have reproduction instructions for this problem? I'd like to experiment a bit and see if I can come up with a solution. -- Thiago