Created attachment 7355 [details] build failure The gdb git-HEAD build fails here with GCC 4.9 as follows (see attachment for the full failure): In file included from ../../../gdb/gdbserver/linux-x86-low.c:29:0: ../../../gdb/gdbserver/../../include/elf/common.h:36:0: error: "ELFMAG0" redefined [-Werror] #define ELFMAG0 0x7F /* Magic number byte 0 */ ^ In file included from ../../../gdb/gdbserver/gdb_proc_service.h:37:0, from ../../../gdb/gdbserver/linux-low.h:23, from ../../../gdb/gdbserver/linux-x86-low.c:25: /usr/include/linux/elf.h:344:0: note: this is the location of the previous definition #define ELFMAG0 0x7f /* EI_MAG */
Fixed: https://sourceware.org/ml/binutils/2014-01/msg00191.html https://sourceware.org/ml/gdb-patches/2014-01/msg00679.html