public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: William Tambe <tambewilliam@gmail.com>
To: Binutils <binutils@sourceware.org>
Subject: Forced to use --enable-unit-tests=no otherwise cross-compilation fail
Date: Sun, 02 Feb 2020 00:14:00 -0000	[thread overview]
Message-ID: <CAF8i9mOSRk3EngCVcx+CW9-rVfYNGKF0dXtxkrJ2io_g0Qi7-Q@mail.gmail.com> (raw)

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 ?

             reply	other threads:[~2020-02-02  0:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-02  0:14 William Tambe [this message]
2020-02-03  4:55 ` Alan Modra

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=CAF8i9mOSRk3EngCVcx+CW9-rVfYNGKF0dXtxkrJ2io_g0Qi7-Q@mail.gmail.com \
    --to=tambewilliam@gmail.com \
    --cc=binutils@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).