On Wed, 11 Feb 2015 17:19:22 -0600 Jeff Smelser wrote:
> People do it all the time. You have to set up the amd64's to cross compile.
> 
> https://wiki.gentoo.org/wiki/Distcc/Cross-Compiling

One doesn't need to setup cross-compilation in order to generate
x86 code on amd64 systems: 64-bit amd64 gcc natively supports this,
just be sure to add -m32 to your {C,CXX,F,FC,LD}FLAGS variables.

Care should be taken with -march=native or -mtune=native arguments.
Vanilla distcc doesn't support this. Patch can be taken here[1] or
distcc from my overlay[2] may be used.

Another approach will be to use one powerful box to build all
packages for an older system: either root filesystem may be
exported via NFS to a powerful host or just copy entire disk image
to and fro that host; afterwards just setarch && chroot to that
image / NFS mount and build all packages using modern hardware.
An old but still useful guide is here[3].

[1] https://groups.google.com/forum/#!topic/distcc-patches/eeP-9pTgz7E
[2] git://git.overlays.gentoo.org/dev/bircoph.git sys-devel/distcc
[3] http://www.gentoo-wiki.info/HOWTO_Emerge_on_very_slow_systems

Best regards,
Andrew Savchenko

Attachment: pgpqjFjXODScJ.pgp
Description: PGP signature

Reply via email to