From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] buildroot-test: enable toolchains based on hostarch
Date: Thu, 31 Mar 2016 03:00:47 +0200 [thread overview]
Message-ID: <20160331030047.339bd480@free-electrons.com> (raw)
In-Reply-To: <CAFt09wOZO-VodhttV3qsc5s_z0D7JzGij6ShPxYz1F0iyv-uMg@mail.gmail.com>
Hello,
On Wed, 30 Mar 2016 19:41:00 -0500, Matthew Weber wrote:
> I guess I don't completely follow why "any arch" for the internals, as
> that host arch entry should represent the arch of the system the
> toolchain was built on, correct? Or are you saying that because an
> internal normally would be built from scratch it would work on any
> arch?
Precisely: internal toolchain configurations are configurations where
the toolchain is built by Buildroot. Since it's built from scratch, the
architecture of the machine on which we're running the build doesn't
matter.
> If so, maybe we need a test that checks the gcc executable for
> arch rather then using this host arch entry?
The problem is that we need to know *before* choosing the toolchain
configuration whether it will work or not on your machine. Otherwise,
you'll pick up one of the toolchain configuration, generate a random
set of packages, and then start the build. The build will start by
downloading the external toolchain, will attempt to run the external
toolchain gcc, which will fail and abort the build. Of course, at this
point, we could detect if the failure is caused by the gcc not being
for the right architecture, and instead of categorizing this failure as
a build failure, simply move on and generate another configuration. But:
1/ This seems really wasteful.
2/ It is not that trivial to distinguish build failures caused by the
compiler not being built for the right architecture from other
failures.
> I do have a bug as we would still want to allow the i386 toolchains to
> execute on a x86_64 system. Currently it excludes those with this
> update.
Correct. i386 toolchains should be considered for x86_64 systems.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-03-31 1:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 1:47 [Buildroot] [PATCH 1/1] buildroot-test: enable toolchains based on hostarch Matt Weber
2016-03-30 14:55 ` Thomas Petazzoni
2016-03-31 0:41 ` Matthew Weber
2016-03-31 1:00 ` Thomas Petazzoni [this message]
2016-03-31 1:11 ` Matthew Weber
2016-03-31 1:24 ` Matthew Weber
2016-03-31 1:30 ` Thomas Petazzoni
2016-03-31 1:42 ` Matthew Weber
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=20160331030047.339bd480@free-electrons.com \
--to=thomas.petazzoni@free-electrons.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