From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 71330138A1A for ; Fri, 20 Feb 2015 23:41:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79848E0880; Fri, 20 Feb 2015 23:40:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51624E0866 for ; Fri, 20 Feb 2015 23:40:22 +0000 (UTC) Received: from localhost (sloan0.ut.mephi.ru [85.143.112.33]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bircoph) by smtp.gentoo.org (Postfix) with ESMTPSA id 9E6C6340841 for ; Fri, 20 Feb 2015 03:51:54 +0000 (UTC) Date: Fri, 20 Feb 2015 06:51:49 +0300 From: Andrew Savchenko To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] compiling via distcc Message-Id: <20150220065149.c02dc75a15f95b94b1782f5c@gentoo.org> In-Reply-To: References: <20150211225151.GE31069@syscon7> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.25; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA512"; boundary="Signature=_Fri__20_Feb_2015_06_51_49_+0300_WjAhcZ+jTJ9wXHqm" X-Archives-Salt: 6b93a4b7-1874-4de2-bd95-94075e86d06e X-Archives-Hash: a705062c65819dc8709d9c1a8a489fd3 --Signature=_Fri__20_Feb_2015_06_51_49_+0300_WjAhcZ+jTJ9wXHqm Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 compil= e. >=20 > 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=3Dnative or -mtune=3Dnative 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 --Signature=_Fri__20_Feb_2015_06_51_49_+0300_WjAhcZ+jTJ9wXHqm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJU5q9VAAoJEPZTWjO6HuSN/tYP/2Ss1lp++qJhRCbZNuZbN/JS JoKAs1MT/UcW3GAmFENycDBqwSr5jPxOcvQ2piXq5mdXSKdn8oIt0+lJC9wTpSFD CHWPzhyg5uqaX2T4TkCB21eVkjx8AVO3PGeniCGR/P74lVE2hcIsIT+tMsVoxXw8 WFA5IhVVEqyvrF8o4ruZXGuZCIbQ4Bsbzt8urs6zzd3hh9tCF7cYTAv7OPVMckG1 ZNyxxnd1SBhlgHi/HSH6uJlfzS6RuteBW9vNCMJWdblxw3NJQWLo/T8rGOR0kf+1 xGySk1zh//xY1EdQ/j5ZKGJl/MhuUW1W+nc7S4cGc6l5Tu+/+PCoaXeM5L5e+/YH 8WE69kGGPodfw726kF/NFRBKQP8lER/1+yrAT02yyIgPxqQNR80vvWoVgGCj3AzM tRLTV0yap0SKue7xP/KgKqCyseV8nPprGpGgVhOt+DWP7n5TYFkWc3KYZC2Vde0F BlQn16VVhm7tRp+qFLNDd5luiVUg0OKxGDCtpxEfy+wCrBQlIuyxD6ufjLp9SCnt oDQ6lJpD79BbHSVz8yB7Ozm4gaHNKT8sdMoo7CTROiGwZN7pEa8KzbUd0GlukZPq 1olJzExkKBfXVwWB/TbbfHKxTG4b66pSYwB7Br44ZF2PE/GmpjOpUq2arcmM5Uhp A2HdTSsWtZhD20Mt0jWV =wlXP -----END PGP SIGNATURE----- --Signature=_Fri__20_Feb_2015_06_51_49_+0300_WjAhcZ+jTJ9wXHqm--