This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
-Werror enabled by default, breaks Linux/RH-6.2 build
- From: Paul Pluzhnikov <ppluzhnikov at charter dot net>
- To: gdb-patches at sourceware dot org
- Date: Wed, 25 Oct 2006 21:05:18 -0700
- Subject: -Werror enabled by default, breaks Linux/RH-6.2 build
Greetings,
This change:
2006-02-21 Mark Kettenis <kettenis@gnu.org>
* configure.ac: Introduce ---enable-werror, which adds -Werror to
the compiler command line. Enabled by default. Disable with
--disable-werror.
breaks build on RedHat-6.2, because there are warnings:
gcc -c -g -O2 -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode -I.././gdb/../readline/.. -I../bfd -I.././gdb/../bfd -I.././gdb/../include -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wformat-nonliteral -Wuninitialized i386-linux-nat.c
In file included from i386-linux-nat.c:37:
/usr/include/sys/reg.h:25: warning: `EBX' redefined
/usr/include/sys/ucontext.h:64: warning: this is the location of the previous definition
/usr/include/sys/reg.h:26: warning: `ECX' redefined
/usr/include/sys/ucontext.h:68: warning: this is the location of the previous definition
... etc ...
Perhaps this should be detected and -Werror disabled on such machines?
Cheers,