From: Grant Edwards <grant.b.edwards@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] external toolchain and sysroot
Date: Sat, 27 Mar 2010 15:05:40 +0000 (UTC) [thread overview]
Message-ID: <hol6s4$66h$1@dough.gmane.org> (raw)
In-Reply-To: 20100327092219.0489cc08@surf
On 2010-03-27, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> Oh, yes, sorry, my wording was maybe confusing (english is not my
> native language). To make external toolchain work, --sysroot *must* be
> passed to every gcc/ld invocation, but it's clearly not the case in
> many non-autotools packages.
>
>> What I'm still puzzled about out is why builds fail for some external
>> toolchains and not others. I'm pretty sure that I wasn't the first
>> person to attempt to build 2010.02 busybox with an external toolchain,
>> yet nobody else seems to have had the link failure due to the missing
>> --sysroot. OTOH, --sysroot was clearly not present in the link flags.
>
> I'm also a bit puzzled by the problem you had on Busybox, since I'm
> definitely able to build it with 2010.02, as it is, with a Crosstool-NG
> external toolchain (but not with a Buildroot external toolchain). I'll
> try to reproduce.
The other odd thing is that _I_ didn't used to have that problem, yet
it seems obvious that --sysroot was being passed. When I was using a
git snapshot from sometime in November/December which used gcc 4.3,
both busybox and mtd-utils built fine. The external toolchain in both
cases was built by buildroot using exactly the same shell-script.
AFAICT, the .mk files didn't change with respect to the --sysroot
option. The only significant thing that seems to have changed was the
gcc version. I haven't had a chance to dig out a copy of my gcc 4.3
toolchain and verify that the toolchain change caused the problem in
my case.
--
Grant
next prev parent reply other threads:[~2010-03-27 15:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 15:28 [Buildroot] external toolchain and sysroot Yury Luneff
2010-03-25 16:14 ` Grant Edwards
2010-03-25 17:12 ` Yury Luneff
2010-03-25 17:16 ` Yury Luneff
2010-03-25 18:08 ` Grant Edwards
2010-03-25 22:34 ` Thomas Petazzoni
2010-03-26 1:04 ` Grant Edwards
2010-03-26 19:24 ` Thomas Petazzoni
2010-03-27 1:10 ` Grant Edwards
2010-03-27 8:22 ` Thomas Petazzoni
2010-03-27 15:05 ` Grant Edwards [this message]
2010-04-14 13:42 ` Grant Edwards
2010-03-25 22:32 ` Thomas Petazzoni
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='hol6s4$66h$1@dough.gmane.org' \
--to=grant.b.edwards@gmail.com \
--cc=buildroot@busybox.net \
/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