[Bug build/34537] New: gdb doesn't build with --enable-targets=all on Solaris
"ro at gcc dot gnu.org via Gdb-prs" <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.discuss |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=34537
Bug ID: 34537
Summary: gdb doesn't build with --enable-targets=all on Solaris
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: ro at gcc dot gnu.org
Target Milestone: ---
Target: *-*-solaris2.11
When building gdb with the default configure options of gdb buildbots (which
include --enable-targets=all), gdb fails to build:
CXX microblaze-tdep.o
In file included from ../../binutils-gdb/gdb/microblaze-tdep.c:37:
../../binutils-gdb/gdb/../opcodes/microblaze-opcm.h:101:9: error: ‘REG_PC’
redefined [-Werror]
101 | #define REG_PC 32 /* PC. */
| ^~~~~~
In file included from /usr/include/sys/ucontext.h:14,
from /usr/include/sys/signal.h:197,
from /usr/include/sys/procset.h:17,
from /usr/include/sys/wait.h:22,
from ../gnulib/import/sys/wait.h:28,
from /usr/include/stdlib.h:16,
from /usr/gcc/16/include/c++/16.1.0/cstdlib:83,
from ../../binutils-gdb/gdb/../gdbsupport/common-defs.h:107,
from ./../../binutils-gdb/gdb/defs.h:26,
from <command-line>:
/usr/include/sys/regset.h:158:9: note: this is the location of the previous
definition
158 | #define REG_PC REG_RIP
| ^~~~~~
../../binutils-gdb/gdb/../opcodes/microblaze-opcm.h:120:9: error: ‘REG_SP’
redefined [-Werror]
120 | #define REG_SP 1 /* stack pointer. */
| ^~~~~~
/usr/include/sys/regset.h:160:9: note: this is the location of the previous
definition
160 | #define REG_SP REG_RSP
| ^~~~~~
There are more instances of this issue:
gdb/../include/opcode/cris.h:34:9: error: ‘REG_SP’ redefined [-Werror]
gdb/../include/opcode/cris.h:35:9: error: ‘REG_PC’ redefined [-Werror]
gdb/../include/opcode/nds32.h:24:9: error: ‘REG_R0’ redefined [-Werror]
gdb/../include/opcode/nds32.h:26:9: error: ‘REG_R8’ redefined [-Werror]
gdb/../include/opcode/nds32.h:27:9: error: ‘REG_R10’ redefined [-Werror]
gdb/../include/opcode/nds32.h:28:9: error: ‘REG_R12’ redefined [-Werror]
gdb/../include/opcode/nds32.h:29:9: error: ‘REG_R15’ redefined [-Werror]
gdb/../include/opcode/nds32.h:34:9: error: ‘REG_FP’ redefined [-Werror]
gdb/../include/opcode/nds32.h:37:9: error: ‘REG_SP’ redefined [-Werror]
I'm not going to pursue this any further since I've little interest in testing
an all-targets gdb on a future buildbot.
--
You are receiving this mail because:
You are on the CC list for the bug.