From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4BB51385840D; Thu, 7 Oct 2021 16:36:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BB51385840D From: "adrianh.bsc at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28433] New: gdb will not build. ld says multiple definitions. Date: Thu, 07 Oct 2021 16:36:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adrianh.bsc at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2021 16:36:37 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28433 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=3D13714&action=3Ded= it Output from configure and make So I tried to build gdb from scratch on my windows box using msys. The fin= al 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/te= rmcap.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/te= rmcap.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/te= rmcap.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?=20 I also tried to build 10.2 with the same problem. --=20 You are receiving this mail because: You are on the CC list for the bug.=