This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Forced to use --enable-unit-tests=no otherwise cross-compilation fail
- From: William Tambe <tambewilliam at gmail dot com>
- To: gdb at sourceware dot org
- Date: Tue, 4 Feb 2020 05:51:03 -0500
- Subject: Forced to use --enable-unit-tests=no otherwise cross-compilation fail
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 ?