From: Simon Marchi <simark@simark.ca>
To: William Tambe <tambewilliam@gmail.com>, gdb@sourceware.org
Subject: Re: Forced to use --enable-unit-tests=no otherwise cross-compilation fail
Date: Tue, 04 Feb 2020 14:29:00 -0000 [thread overview]
Message-ID: <894378b5-9447-7c55-d8fd-388658f81bd0@simark.ca> (raw)
In-Reply-To: <CAF8i9mMMF+U3fubhwq0bRpbOYvF9xx=iS1_uzuUvH8A6_MBXvA@mail.gmail.com>
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
next prev parent reply other threads:[~2020-02-04 14:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-04 10:51 William Tambe
2020-02-04 14:29 ` Simon Marchi [this message]
2020-02-04 16:27 ` Christian Biesinger via gdb
2020-02-09 20:29 ` William Tambe
2020-02-13 23:28 ` William Tambe
2020-02-13 23:48 ` Christian Biesinger via gdb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=894378b5-9447-7c55-d8fd-388658f81bd0@simark.ca \
--to=simark@simark.ca \
--cc=gdb@sourceware.org \
--cc=tambewilliam@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox