public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28433] New: gdb will not build. ld says multiple definitions.
@ 2021-10-07 16:36 adrianh.bsc at gmail dot com
  2022-03-06 17:13 ` [Bug build/28433] " tromey at sourceware dot org
  2022-03-18 12:41 ` ssbssa at sourceware dot org
  0 siblings, 2 replies; 3+ messages in thread
From: adrianh.bsc at gmail dot com @ 2021-10-07 16:36 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 28433
           Summary: gdb will not build. ld says multiple definitions.
           Product: gdb
           Version: 11.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: adrianh.bsc at gmail dot com
  Target Milestone: ---

Created attachment 13714
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13714&action=edit
Output from configure and make

So I tried to build gdb from scratch on my windows box using msys.  The final
lines that was reported before exiting to the command prompt were:

  CXXLD  gdb.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../lib/libncursesw.a(lib_termcap.o):(.bss+0x8):
multiple definition of `UP';
../readline/readline/libreadline.a(terminal.o):C:/msys64/mingw64/include/termcap.h:35:
first defined here
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../lib/libncursesw.a(lib_termcap.o):(.bss+0x0):
multiple definition of `BC';
../readline/readline/libreadline.a(terminal.o):C:/msys64/mingw64/include/termcap.h:36:
first defined here
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../lib/libncursesw.a(lib_tputs.o):(.bss+0x6):
multiple definition of `PC';
../readline/readline/libreadline.a(terminal.o):C:/msys64/mingw64/include/termcap.h:29:
first defined here
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:1882: gdb.exe] Error 1
make[2]: Leaving directory '/tmp/build/gdb'
make[1]: *** [Makefile:10462: all-gdb] Error 2
make[1]: Leaving directory '/tmp/build'
make: *** [Makefile:915: all] Error 2

I've attached a file showing the configure and build output.  What's going on? 
I also tried to build 10.2 with the same problem.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug build/28433] gdb will not build. ld says multiple definitions.
  2021-10-07 16:36 [Bug gdb/28433] New: gdb will not build. ld says multiple definitions adrianh.bsc at gmail dot com
@ 2022-03-06 17:13 ` tromey at sourceware dot org
  2022-03-18 12:41 ` ssbssa at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 17:13 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |build
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Moving to build.
Offhand I don't know what's going wrong here, sorry.
I guess I'd investigate why these symbols are being defined
in readline.  Or maybe disable readline or try the system readline,
if you have one available.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug build/28433] gdb will not build. ld says multiple definitions.
  2021-10-07 16:36 [Bug gdb/28433] New: gdb will not build. ld says multiple definitions adrianh.bsc at gmail dot com
  2022-03-06 17:13 ` [Bug build/28433] " tromey at sourceware dot org
@ 2022-03-18 12:41 ` ssbssa at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: ssbssa at sourceware dot org @ 2022-03-18 12:41 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Hannes Domani <ssbssa at sourceware dot org> ---
Dup.

*** This bug has been marked as a duplicate of bug 27242 ***

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-18 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07 16:36 [Bug gdb/28433] New: gdb will not build. ld says multiple definitions adrianh.bsc at gmail dot com
2022-03-06 17:13 ` [Bug build/28433] " tromey at sourceware dot org
2022-03-18 12:41 ` ssbssa at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).