public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug win32/27242] New: multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here
@ 2021-01-25 13:35 cbiesinger at google dot com
  2021-10-07 17:28 ` [Bug win32/27242] " cbiesinger at google dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: cbiesinger at google dot com @ 2021-01-25 13:35 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27242
           Summary: multiple definition of `UP';
                    ../readline/readline/libreadline.a(terminal.o):termina
                    l.c:(.bss+0x98): first defined here
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: win32
          Assignee: unassigned at sourceware dot org
          Reporter: cbiesinger at google dot com
  Target Milestone: ---

On mingw64, I get this link error:

make[2]: Entering directory '/home/Christian/binutils-gdb/mingw-obj/gdb'
  CXXLD  gdb.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib/libncursesw.a(lib_termcap.o):(.bss+0x8):
multiple definition of `UP';
../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first
defined here
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib/libncursesw.a(lib_termcap.o):(.bss+0x0):
multiple definition of `BC';
../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0xa0): first
defined here
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib/libncursesw.a(lib_tputs.o):(.bss+0x6):
multiple definition of `PC';
../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0xa8): first
defined here
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:1881: gdb.exe] Error 1


$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-10.1.0/configure --prefix=/mingw64
--with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32
--host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
--with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include
--libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64
--with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++
--enable-shared --enable-static --enable-libatomic --enable-threads=posix
--enable-graphite --enable-fully-dynamic-string
--enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes
--disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check
--enable-lto --enable-libgomp --disable-multilib --enable-checking=release
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --disable-plugin --with-libiconv --with-system-zlib
--with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64
--with-isl=/mingw64 --with-pkgversion='Rev3, Built by MSYS2 project'
--with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as
--with-gnu-ld
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.1.0 (Rev3, Built by MSYS2 project)

$ ld -v
GNU ld (GNU Binutils) 2.34

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

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

* [Bug win32/27242] multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here
  2021-01-25 13:35 [Bug win32/27242] New: multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here cbiesinger at google dot com
@ 2021-10-07 17:28 ` cbiesinger at google dot com
  2021-10-08 21:33 ` cbiesinger at google dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cbiesinger at google dot com @ 2021-10-07 17:28 UTC (permalink / raw)
  To: gdb-prs

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

Christian Biesinger <cbiesinger at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adrianh.bsc at gmail dot com

--- Comment #1 from Christian Biesinger <cbiesinger at google dot com> ---
*** Bug 28434 has been marked as a duplicate of this bug. ***

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

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

* [Bug win32/27242] multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here
  2021-01-25 13:35 [Bug win32/27242] New: multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here cbiesinger at google dot com
  2021-10-07 17:28 ` [Bug win32/27242] " cbiesinger at google dot com
@ 2021-10-08 21:33 ` cbiesinger at google dot com
  2021-10-08 21:45 ` cbiesinger at google dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: cbiesinger at google dot com @ 2021-10-08 21:33 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Christian Biesinger <cbiesinger at google dot com> ---
So this could be worked around by using system readline, presumably. But still
investigating what's going on. This is the code in readline:

#if !defined (__linux__) && !defined (NCURSES_VERSION)
#  if defined (__EMX__) || defined (NEED_EXTERN_PC)
extern 
#  endif /* __EMX__ || NEED_EXTERN_PC */
char PC, *BC, *UP;
#endif /* !__linux__ && !NCURSES_VERSION */

As far as I can tell, NEED_EXTERN_PC is never defined anywhere (??)

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

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

* [Bug win32/27242] multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here
  2021-01-25 13:35 [Bug win32/27242] New: multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here cbiesinger at google dot com
  2021-10-07 17:28 ` [Bug win32/27242] " cbiesinger at google dot com
  2021-10-08 21:33 ` cbiesinger at google dot com
@ 2021-10-08 21:45 ` cbiesinger at google dot com
  2021-10-08 21:56 ` cbiesinger at google dot com
  2022-03-18 12:41 ` ssbssa at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cbiesinger at google dot com @ 2021-10-08 21:45 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Christian Biesinger <cbiesinger at google dot com> ---
Hmm... so readline doesn't uses curses (I did not pass --with-curses), so it
just uses termcap, so that doesn't define NCURSES_VERSION. Interestingly, even
termcap.h declares UP/BC/PC so it seems readline wouldn't have to.

Anyway, gdb does use ncurses, so it uses -lncursesw, so that definition
conflicts with readline's.

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

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

* [Bug win32/27242] multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here
  2021-01-25 13:35 [Bug win32/27242] New: multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here cbiesinger at google dot com
                   ` (2 preceding siblings ...)
  2021-10-08 21:45 ` cbiesinger at google dot com
@ 2021-10-08 21:56 ` cbiesinger at google dot com
  2022-03-18 12:41 ` ssbssa at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cbiesinger at google dot com @ 2021-10-08 21:56 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Christian Biesinger <cbiesinger at google dot com> ---
Though --with-curses doesn't help because readline prefers termcap.h over
ncurses/termcap.h

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

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

* [Bug win32/27242] multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here
  2021-01-25 13:35 [Bug win32/27242] New: multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here cbiesinger at google dot com
                   ` (3 preceding siblings ...)
  2021-10-08 21:56 ` cbiesinger at google dot com
@ 2022-03-18 12:41 ` ssbssa at sourceware dot org
  4 siblings, 0 replies; 6+ 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=27242

--- Comment #5 from Hannes Domani <ssbssa at sourceware dot org> ---
*** Bug 28433 has been marked as a duplicate of this bug. ***

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

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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 13:35 [Bug win32/27242] New: multiple definition of `UP'; ../readline/readline/libreadline.a(terminal.o):terminal.c:(.bss+0x98): first defined here cbiesinger at google dot com
2021-10-07 17:28 ` [Bug win32/27242] " cbiesinger at google dot com
2021-10-08 21:33 ` cbiesinger at google dot com
2021-10-08 21:45 ` cbiesinger at google dot com
2021-10-08 21:56 ` cbiesinger at google dot com
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).