1 |
On Wed, 11 Feb 2015 17:19:22 -0600 Jeff Smelser wrote: |
2 |
> People do it all the time. You have to set up the amd64's to cross compile. |
3 |
> |
4 |
> https://wiki.gentoo.org/wiki/Distcc/Cross-Compiling |
5 |
|
6 |
One doesn't need to setup cross-compilation in order to generate |
7 |
x86 code on amd64 systems: 64-bit amd64 gcc natively supports this, |
8 |
just be sure to add -m32 to your {C,CXX,F,FC,LD}FLAGS variables. |
9 |
|
10 |
Care should be taken with -march=native or -mtune=native arguments. |
11 |
Vanilla distcc doesn't support this. Patch can be taken here[1] or |
12 |
distcc from my overlay[2] may be used. |
13 |
|
14 |
Another approach will be to use one powerful box to build all |
15 |
packages for an older system: either root filesystem may be |
16 |
exported via NFS to a powerful host or just copy entire disk image |
17 |
to and fro that host; afterwards just setarch && chroot to that |
18 |
image / NFS mount and build all packages using modern hardware. |
19 |
An old but still useful guide is here[3]. |
20 |
|
21 |
[1] https://groups.google.com/forum/#!topic/distcc-patches/eeP-9pTgz7E |
22 |
[2] git://git.overlays.gentoo.org/dev/bircoph.git sys-devel/distcc |
23 |
[3] http://www.gentoo-wiki.info/HOWTO_Emerge_on_very_slow_systems |
24 |
|
25 |
Best regards, |
26 |
Andrew Savchenko |