This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/16445] New: gdb fails to build with: common.h:36:0: error: "ELFMAG0" redefined [-Werror]


https://sourceware.org/bugzilla/show_bug.cgi?id=16445

            Bug ID: 16445
           Summary: gdb fails to build with: common.h:36:0: error:
                    "ELFMAG0" redefined [-Werror]
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: burnus at gmx dot de

Created attachment 7355
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7355&action=edit
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 */

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]