Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Building external i586 ARM cross toolchain on x64 Linux
@ 2010-08-06 20:08 James Ronald
  2010-08-06 20:36 ` Grant Edwards
  0 siblings, 1 reply; 5+ messages in thread
From: James Ronald @ 2010-08-06 20:08 UTC (permalink / raw)
  To: buildroot

I'm looking for a way to build a 32bit (i586) external (portable) tool chain
(gcc 4.2.3) for cross compiling ARM applications on a 64 bit Linux machine.

Building such on 32 bit Linux distribution works great but I would like to
switch to using a 64 bit Linux distribution and still be able to build an
32bit (i586) external (portable) tool chain.

Thanks
- Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100806/322bba6c/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Building external i586 ARM cross toolchain on x64 Linux
  2010-08-06 20:08 [Buildroot] Building external i586 ARM cross toolchain on x64 Linux James Ronald
@ 2010-08-06 20:36 ` Grant Edwards
  2010-08-09 14:18   ` James Ronald
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Edwards @ 2010-08-06 20:36 UTC (permalink / raw)
  To: buildroot

On 2010-08-06, James Ronald <james.ronald@gmail.com> wrote:

> Building such on 32 bit Linux distribution works great but I would like to
> switch to using a 64 bit Linux distribution and still be able to build an
> 32bit (i586) external (portable) tool chain.

I don't know why the procedure would be any different.  What exactly
failed?

-- 
Grant

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Building external i586 ARM cross toolchain on x64 Linux
  2010-08-06 20:36 ` Grant Edwards
@ 2010-08-09 14:18   ` James Ronald
  2010-08-09 14:37     ` Grant Edwards
  0 siblings, 1 reply; 5+ messages in thread
From: James Ronald @ 2010-08-09 14:18 UTC (permalink / raw)
  To: buildroot

On Fri, Aug 6, 2010 at 4:36 PM, Grant Edwards <grant.b.edwards@gmail.com>wrote:

> On 2010-08-06, James Ronald <james.ronald@gmail.com> wrote:
>
> > Building such on 32 bit Linux distribution works great but I would like
> to
> > switch to using a 64 bit Linux distribution and still be able to build an
> > 32bit (i586) external (portable) tool chain.
>
> I don't know why the procedure would be any different.  What exactly
> failed?
>

Grant,

Buildroot will automatically build a 64 bit cross toolchain when run on 64
bit Linux and a 32 bit cross toolchain when run on 32 bit Linux.  I am
asking if there is a buildroot "preferred method" or "best practice" for
building a 32 bit cross toolchain on on 64 bit Linux.

- Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100809/e19e22ef/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Building external i586 ARM cross toolchain on x64 Linux
  2010-08-09 14:18   ` James Ronald
@ 2010-08-09 14:37     ` Grant Edwards
  2010-08-10 18:25       ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Edwards @ 2010-08-09 14:37 UTC (permalink / raw)
  To: buildroot

On 2010-08-09, James Ronald <james.ronald@gmail.com> wrote:
> On Fri, Aug 6, 2010 at 4:36 PM, Grant Edwards <grant.b.edwards@gmail.com>wrote:
>
>> On 2010-08-06, James Ronald <james.ronald@gmail.com> wrote:
>>
>>> Building such on 32 bit Linux distribution works great but I would
>>> like to switch to using a 64 bit Linux distribution and still be able
>>> to build an 32bit (i586) external (portable) tool chain.
>>
>> I don't know why the procedure would be any different.  What exactly
>> failed?
>
> Buildroot will automatically build a 64 bit cross toolchain when run
> on 64 bit Linux and a 32 bit cross toolchain when run on 32 bit
> Linux.  I am asking if there is a buildroot "preferred method" or
> "best practice" for building a 32 bit cross toolchain on on 64 bit
> Linux.

I think I'm confused.  When you say a "64 bit cross toolchain" I read
that as a toolchain for a 64-bit target, and I didn't think the "bit
size" of the host made any difference to Buildroot.

If what you want to do is use Buildroot on architecture A to build a
compiler to run on architecture B for for a target with architecture
C, then that's called a "Canadian Cross", and I don't think buildroot
will do that (unless there's some special case in gcc/binutils for the
IA32 and AMD64 architectures).

You can do it with Crosstool-NG:

  http://ymorin.is-a-geek.org/projects/crosstool#canadian_build

-- 
Grant Edwards               grant.b.edwards        Yow! ... the MYSTERIANS are
                                  at               in here with my CORDUROY
                              gmail.com            SOAP DISH!!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Building external i586 ARM cross toolchain on x64 Linux
  2010-08-09 14:37     ` Grant Edwards
@ 2010-08-10 18:25       ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2010-08-10 18:25 UTC (permalink / raw)
  To: buildroot

On Mon, 9 Aug 2010 14:37:47 +0000 (UTC)
Grant Edwards <grant.b.edwards@gmail.com> wrote:

> If what you want to do is use Buildroot on architecture A to build a
> compiler to run on architecture B for for a target with architecture
> C, then that's called a "Canadian Cross", and I don't think buildroot
> will do that (unless there's some special case in gcc/binutils for the
> IA32 and AMD64 architectures).

Yes, we don't support Canadian Cross builds in Buildroot.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-10 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-06 20:08 [Buildroot] Building external i586 ARM cross toolchain on x64 Linux James Ronald
2010-08-06 20:36 ` Grant Edwards
2010-08-09 14:18   ` James Ronald
2010-08-09 14:37     ` Grant Edwards
2010-08-10 18:25       ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox