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/20027] New: Combined tree build fails with xmalloc libiberty conflict


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

            Bug ID: 20027
           Summary: Combined tree build fails with xmalloc libiberty
                    conflict
           Product: gdb
           Version: 7.11.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: nightstrike at gmail dot com
  Target Milestone: ---

Back in 2005, this was flagged as a problem:

https://www.sourceware.org/ml/gdb/2005-09/msg00211.html

Trying to do this today with binutils 2.26, gcc 6, and gdb 7.11 I get the same
problem, it dying with:

../libiberty/libiberty.a(xmalloc.o): In function `xmalloc':
/tmp/gcc6/src/gcc-6.0.1-RC-20160423/_/libiberty/../../libiberty/xmalloc.c:147:
multiple definition of `xmalloc'
common-utils.o:/tmp/gcc6/src/gcc-6.0.1-RC-20160423/_/gdb/../../gdb/common/common-utils.c:41:
first defined here
../libiberty/libiberty.a(xmalloc.o): In function `xcalloc':
/tmp/gcc6/src/gcc-6.0.1-RC-20160423/_/libiberty/../../libiberty/xmalloc.c:157:
multiple definition of `xcalloc'
common-utils.o:/tmp/gcc6/src/gcc-6.0.1-RC-20160423/_/gdb/../../gdb/common/common-utils.c:72:
first defined here
../libiberty/libiberty.a(xmalloc.o): In function `xrealloc':
/tmp/gcc6/src/gcc-6.0.1-RC-20160423/_/libiberty/../../libiberty/xmalloc.c:176:
multiple definition of `xrealloc'
common-utils.o:/tmp/gcc6/src/gcc-6.0.1-RC-20160423/_/gdb/../../gdb/common/common-utils.c:58:
first defined here
collect2: error: ld returned 1 exit status
make: *** [gdb] Error 1

Was it ever fixed?  If not, could it be?

-- 
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]