public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Forced to use --enable-unit-tests=no otherwise cross-compilation fail
@ 2020-02-02  0:14 William Tambe
  2020-02-03  4:55 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: William Tambe @ 2020-02-02  0:14 UTC (permalink / raw)
  To: Binutils

With Binutils 2.34, I have to use --enable-unit-tests=no with
./configure otherwise cross-compilation fail trying to link
gdbarch-selftests.o:

/usr/bin/ld: gdbarch-selftests.o: in function `_initialize_gdbarch_selftests()':
/binutils-gdb-build/gdb/../../binutils-gdb/gdb/gdbarch-selftests.c:168:
undefined reference to
`selftests::register_test_foreach_arch(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, void
(*)(gdbarch*))'

Why is it now required to use --enable-unit-tests=no when cross-compiling ?

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

* Re: Forced to use --enable-unit-tests=no otherwise cross-compilation fail
  2020-02-02  0:14 Forced to use --enable-unit-tests=no otherwise cross-compilation fail William Tambe
@ 2020-02-03  4:55 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2020-02-03  4:55 UTC (permalink / raw)
  To: William Tambe; +Cc: Binutils

On Sat, Feb 01, 2020 at 07:14:39PM -0500, William Tambe wrote:
> With Binutils 2.34, I have to use --enable-unit-tests=no with
> ./configure otherwise cross-compilation fail trying to link
> gdbarch-selftests.o:
> 
> /usr/bin/ld: gdbarch-selftests.o: in function `_initialize_gdbarch_selftests()':
> /binutils-gdb-build/gdb/../../binutils-gdb/gdb/gdbarch-selftests.c:168:
> undefined reference to
> `selftests::register_test_foreach_arch(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, void
> (*)(gdbarch*))'
> 
> Why is it now required to use --enable-unit-tests=no when cross-compiling ?

This is the wrong place to report problems with gdb.

-- 
Alan Modra
Australia Development Lab, IBM

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

end of thread, other threads:[~2020-02-03  4:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02  0:14 Forced to use --enable-unit-tests=no otherwise cross-compilation fail William Tambe
2020-02-03  4:55 ` Alan Modra

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).