This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug corefiles/21206] New: gdb-7.12.1 for arm-rtems4.12 fails to build on FreeBSD 11.0
- From: "chrisj at rtems dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 28 Feb 2017 21:15:22 +0000
- Subject: [Bug corefiles/21206] New: gdb-7.12.1 for arm-rtems4.12 fails to build on FreeBSD 11.0
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21206
Bug ID: 21206
Summary: gdb-7.12.1 for arm-rtems4.12 fails to build on FreeBSD
11.0
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: corefiles
Assignee: unassigned at sourceware dot org
Reporter: chrisj at rtems dot org
Target Milestone: ---
Note, HEAD is also broken.
The arm-rtems4.12 target is broken in gdb-7.12.1 and binutils-gdb.git HEAD on
FreeBSD 11.0.
Configure command is:
$ ../binutils-gdb/configure --build=x86_64-freebsd11.0
--host=x86_64-freebsd11.0 --target=arm-rtems4.12 --verbose --disable-nls
--without-included-gettext --disable-win32-registry --disable-werror
--enable-sim --without-zlib --with-expat --with-python
--prefix=/opt/work/rtems/4.12 --bindir=/opt/work/rtems/4.12/bin
--exec-prefix=/opt/work/rtems/4.12 --includedir=/opt/work/rtems/4.12/include
--libdir=/opt/work/rtems/4.12/lib --mandir=/opt/work/rtems/4.12/share/man
--infodir=/opt/work/rtems/4.12/share/info
Host compiler is /usr/bin/c++.
It looks like something in the recent gnulib updates breaks on FreeBSD 11.0.
The error from building on HEAD is:
/usr/bin/c++ -O2 -pipe -fbracket-depth=1024
-I/opt/work/chris/rtems/rsb/rtems-source-builder.git/rtems/build/tmp/sb-chris/4.12/rtems-arm/opt/work/rtems/4.12/include
-std=gnu++11 -I. -I../../binutils-gdb/gdb -I../../binutils-gdb/gdb/common
-I../../binutils-gdb/gdb/config
-DLOCALEDIR="\"/opt/work/rtems/4.12/share/locale\"" -DHAVE_CONFIG_H
-I../../binutils-gdb/gdb/../include/
opcode -I../../binutils-gdb/gdb/../opcodes/..
-I../../binutils-gdb/gdb/../readline/.. -I../../binutils-gdb/gdb/../zlib
-I../bfd -I../../binutils-gdb/gdb/../bfd -I../../binutils-gdb/gdb/../include
-I../libdecnumber -I../../binutils-gdb/gdb/../libdecnumber
-I../../binutils-gdb/gdb/gnulib/import -Ibuild-gnulib/import -DTUI=1
-I/opt/work/rtems/4.12/include -I/usr/local/inclu
de/python2.7 -I/usr/local/include/python2.7 -Wall -Wpointer-arith -Wno-unused
-Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body
-Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare
-Wno-write-strings -Wno-narrowing -Wformat-nonliteral -c -o gdb.o -MT gdb.o
-MMD -MP -MF .deps/gdb.Tpo ../../binutils-gdb/gdb/gdb.c
c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean
'-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wunused-but-set-variable'; did you mean
'-Wunused-const-variable'? [-Wunknown-warning-option]
In file included from ../../binutils-gdb/gdb/gdb.c:19:
In file included from ../../binutils-gdb/gdb/defs.h:28:
In file included from ../../binutils-gdb/gdb/common/common-defs.h:52:
In file included from build-gnulib/import/stdio.h:53:
build-gnulib/import/stddef.h:106:3: error: typedef redefinition with different
types ('union max_align_t' vs 'long double')
} max_align_t;
^
/usr/include/c++/v1/stddef.h:57:21: note: previous definition is here
typedef long double max_align_t;
^
In file included from ../../binutils-gdb/gdb/gdb.c:19:
In file included from ../../binutils-gdb/gdb/defs.h:53:
../../binutils-gdb/gdb/ui-file.h:93:28: warning: struct 'ui_file' was
previously declared as a class [-Wmismatched-tags]
extern int ui_file_isatty (struct ui_file *);
^
../../binutils-gdb/gdb/ui-file.h:26:7: note: previous use is here
class ui_file
^
../../binutils-gdb/gdb/ui-file.h:93:28: note: did you mean class here?
extern int ui_file_isatty (struct ui_file *);
^~~~~~
class
../../binutils-gdb/gdb/ui-file.h:95:28: warning: struct 'ui_file' was
previously declared as a class [-Wmismatched-tags]
extern void ui_file_write (struct ui_file *file, const char *buf,
^
../../binutils-gdb/gdb/ui-file.h:26:7: note: previous use is here
class ui_file
^
../../binutils-gdb/gdb/ui-file.h:95:28: note: did you mean class here?
extern void ui_file_write (struct ui_file *file, const char *buf,
^~~~~~
class
../../binutils-gdb/gdb/ui-file.h:98:39: warning: struct 'ui_file' was
previously declared as a class [-Wmismatched-tags]
extern void ui_file_write_async_safe (struct ui_file *file, const char *buf,
^
../../binutils-gdb/gdb/ui-file.h:26:7: note: previous use is here
class ui_file
^
../../binutils-gdb/gdb/ui-file.h:98:39: note: did you mean class here?
extern void ui_file_write_async_safe (struct ui_file *file, const char *buf,
^~~~~~
class
../../binutils-gdb/gdb/ui-file.h:101:27: warning: struct 'ui_file' was
previously declared as a class [-Wmismatched-tags]
extern long ui_file_read (struct ui_file *file, char *buf, long length_buf);
^
../../binutils-gdb/gdb/ui-file.h:26:7: note: previous use is here
class ui_file
^
../../binutils-gdb/gdb/ui-file.h:101:27: note: did you mean class here?
extern long ui_file_read (struct ui_file *file, char *buf, long length_buf);
^~~~~~
class
In file included from ../../binutils-gdb/gdb/gdb.c:19:
../../binutils-gdb/gdb/defs.h:327:8: warning: struct 'ui_file' was previously
declared as a class [-Wmismatched-tags]
struct ui_file *, int, char *);
^
../../binutils-gdb/gdb/ui-file.h:26:7: note: previous use is here
class ui_file
^
../../binutils-gdb/gdb/defs.h:327:8: note: did you mean class here?
struct ui_file *, int, char *);
^~~~~~
class
../../binutils-gdb/gdb/defs.h:338:57: warning: struct 'ui_file' was previously
declared as a class [-Wmismatched-tags]
extern void print_address (struct gdbarch *, CORE_ADDR, struct ui_file *);
^
../../binutils-gdb/gdb/ui-file.h:26:7: note: previous use is here
class ui_file
^
--
You are receiving this mail because:
You are on the CC list for the bug.