From: <Paul_Koning@Dell.com>
To: <gdb@sourceware.org>
Subject: Cross-build issues in gdb/gnulib
Date: Mon, 24 Aug 2015 21:20:00 -0000 [thread overview]
Message-ID: <D46D2776-70D7-461B-8B0A-6039058E3BE2@dell.com> (raw)
I'm running into strange problems cross-building with V7.7.1; it looks like the same configure machinery is present in later versions as well.
The problem is that the configure script in gdb/gnulib tries to run a number of tests, by building and then executing "conftest". It does so unconditionally, there are no checks for whether this is a cross-build, specifically build = x86_64-linux, host = target = netbsd.
For one of my crossbuilds this "works" because there the host is mips, so attempting to execute conftest fails and the script handles this in a way that produces an acceptable outcome.
But when target is i386-netbsdelf, when the script attempts to execute the (NetBSD) binary for conftest, Linux attempts to do so. I guess it has some flavor of NetBSD emulation. But this is bad for two reasons. First, executing that program on the Linux build system obviously produces an irrelevant answer. Second, and this is what breaks my build, the NetBSD emulation in Linux is defective -- conftest goes into an infinite loop. So my build never finishes.
What can I do about this?
paul
next reply other threads:[~2015-08-24 21:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 21:20 Paul_Koning [this message]
2015-08-25 9:56 ` Pedro Alves
2015-08-25 13:12 ` Paul_Koning
2015-08-25 13:40 ` Pedro Alves
2015-08-25 16:58 ` Paul Eggert
2015-08-25 17:06 ` Paul_Koning
2015-08-25 17:54 ` Pedro Alves
2015-08-25 17:10 ` Paul_Koning
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=D46D2776-70D7-461B-8B0A-6039058E3BE2@dell.com \
--to=paul_koning@dell.com \
--cc=gdb@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