Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Generating a 32-bit toolchain on a 64-bit machine
@ 2012-01-02 15:42 Thomas De Schampheleire
  2012-01-02 16:05 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas De Schampheleire @ 2012-01-02 15:42 UTC (permalink / raw)
  To: buildroot

Hi,

I would like to create a 32-bit toolchain on a 64-bit machine with
buildroot/crosstool-ng. By default, all host tools will be 64-bit.

I couldn't find a configuration option or the like for this.
I guess one way to do is it to call 'make' like this:
make HOSTCC="`which gcc` -m32" HOSTCXX="`which g++` -m32" HOSTCPP="cpp
-m32" HOSTLD="ld -m32"
but ideally there'd be a configuration for this.

In crosstool-ng I didn't find such an option either...

Thanks for your advice,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120102/ba97f067/attachment-0001.html>

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

* [Buildroot] Generating a 32-bit toolchain on a 64-bit machine
  2012-01-02 15:42 [Buildroot] Generating a 32-bit toolchain on a 64-bit machine Thomas De Schampheleire
@ 2012-01-02 16:05 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2012-01-02 16:05 UTC (permalink / raw)
  To: buildroot

Le Mon, 2 Jan 2012 16:42:01 +0100,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :

> In crosstool-ng I didn't find such an option either...

I did so with crosstool-ng. I created a Debian 32 bits chroot on my 64
bits machine and did the build in here. I had to force ABI=32 to
the ./configure script of GMP to get it to build properly, though,
since it gets confused by the fact of having a 64 bits kernel and a 32
bits userspace. My reason for using a chroot is also because I wanted
the toolchain to be built against an old version of the C library, so
as to be compatible with as many hosts as possible.

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] 2+ messages in thread

end of thread, other threads:[~2012-01-02 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-02 15:42 [Buildroot] Generating a 32-bit toolchain on a 64-bit machine Thomas De Schampheleire
2012-01-02 16:05 ` Thomas Petazzoni

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