Gentoo Archives: gentoo-user

From: Fernando Rodriguez <frodriguez.developer@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?
Date: Thu, 19 Mar 2015 02:27:44
Message-Id: 2685505.RfjHhG2H7t@navi
In Reply to: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code? by Walter Dnes
1 On Wednesday, March 18, 2015 9:56:12 PM Walter Dnes wrote:
2 > My situation...
3 >
4 > * I've dug up my ancient netbook, and got Gentoo re-installed on it
5 > * The cpu is a dual-core Intel(R) Atom(TM) CPU Z520
6 > * It's 32-bit only; YES!
7 > * Compiling just the Seamonkey binary (ignoring its dependancies) took
8 > 14 hours
9 >
10 > I obviously want to offload compiling to another machine. As per the
11 > subject, will a 64-bit no-multilb install be able to cross compile
12 > 32-bit code?
13
14 I've done it with distcc by adding the -m32 option to cflags. I used a script
15 (named after the compiler on the gentoo box) to call the compiler with the -
16 m32 flag and placed on the PATH environment (just for the distccd service)
17 before anything else and it worked. I got a 64 bit arch box to compile for a
18 32 bit gentoo (not nearly as fast as compiling locally on the arch box but
19 much faster than the gentoo box). It should work similarly with other cross-
20 compile scenarios.
21
22
23 --
24 Fernando Rodriguez

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code? Walter Dnes <waltdnes@××××××××.org>