This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20287] New: X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"
- From: "noloader at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 21 Jun 2016 21:05:27 +0000
- Subject: [Bug gdb/20287] New: X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20287
Bug ID: 20287
Summary: X32 and "gdb_static_assert (sizeof (nat_siginfo_t) ==
sizeof (siginfo_t))"
Product: gdb
Version: 7.11
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: noloader at gmail dot com
Target Milestone: ---
I'm trying to build GDB 7.11 from sources under Debian X32
(http://debian-x32.org/).
After a standard "./configure" and building a few components, the compile
fails:
gcc -g -O2 -I. -I. -I./common -I./config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../opcodes/.. -I./../readline/.. -I./../zlib -I../bfd -I./../bfd
-I./../include -I../libdecnumber -I./../libdecnumber -I./gnulib/import
-Ibuild-gnulib/import -Wall -Wpointer-arith -Wno-unused -Wunused-value
-Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wpointer-sign
-Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-parameter-type
-Wold-style-declaration -Wold-style-definition -Wformat-nonliteral -c -o
amd64-linux-siginfo.o -MT amd64-linux-siginfo.o -MMD -MP -MF
.deps/amd64-linux-siginfo.Tpo ./nat/amd64-linux-siginfo.c
In file included from ./common/common-defs.h:71:0,
from ./nat/amd64-linux-siginfo.c:21:
./common/gdb_assert.h:26:14: error: size of array
'never_defined_just_used_for_checking' is negative
extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]
^
./nat/amd64-linux-siginfo.c:113:1: note: in expansion of macro
'gdb_static_assert'
gdb_static_assert (sizeof (nat_siginfo_t) == sizeof
(siginfo_t));
^
Makefile:2370: recipe for target 'amd64-linux-siginfo.o' failed
make[2]: *** [amd64-linux-siginfo.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/gdb-7.11.1/gdb'
Makefile:9156: recipe for target 'all-gdb' failed
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory '/gdb-7.11.1'
Makefile:846: recipe for target 'all' failed
make: *** [all] Error 2
--
You are receiving this mail because:
You are on the CC list for the bug.