Re: Forced to use --enable-unit-tests=no otherwise cross-compilation fail

Simon Marchi <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 2020-02-04 5:51 a.m., 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 ?
> 

Hmm this is not expected.  That missing symbol should be provided by gdb/selftest-arch.o.

Does that file get compiled (and linked) in your configuration?

Simon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.