From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 411AF138206 for ; Mon, 1 Aug 2016 15:23:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FC1A21C091; Mon, 1 Aug 2016 15:23:02 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2B5AFE0B4F for ; Mon, 1 Aug 2016 15:23:01 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BmDQA731xV/1T292hcgxBUXsNlgVyFbwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEEOhwzCxIPExIPBSUQJ4gsDc8WAQEBAQYBAQEBGgSLOoQ6UhaDAYEWBZchgkyEAod4jx0jhBQiMYJHAQEB X-IPAS-Result: A0BmDQA731xV/1T292hcgxBUXsNlgVyFbwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEEOhwzCxIPExIPBSUQJ4gsDc8WAQEBAQYBAQEBGgSLOoQ6UhaDAYEWBZchgkyEAod4jx0jhBQiMYJHAQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="249912429" Received: from 104-247-246-84.cpe.teksavvy.com (HELO waltdnes.org) ([104.247.246.84]) by ironport2-out.teksavvy.com with SMTP; 01 Aug 2016 11:25:16 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Mon, 01 Aug 2016 11:23:03 -0400 From: waltdnes@waltdnes.org Date: Mon, 1 Aug 2016 11:23:03 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] cross-compile attempt Message-ID: <20160801152303.GA32763@waltdnes.org> References: <1544697.klPk7OG4O7@dell_xps> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1544697.klPk7OG4O7@dell_xps> User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: 4befb67a-1eac-4e28-9c52-94672bb67b82 X-Archives-Hash: 3abe6afadc007ce158b1c9ae3c8ec298 On Sun, Jul 31, 2016 at 07:40:37PM +0100, Mick wrote > Hi All, > > I am dipping my toe into cross-compile territory, in order to build i686 > binaries for a 32bit box, which is too old to do its own emerges. I am using > an amd64 box which is significantly faster to do all the heavy lifting and > started applying this page: > > https://wiki.gentoo.org/wiki/Embedded_Handbook/General/Creating_a_cross-compiler "True cross-compiling" is a pain. It will not work for non trivial stuff, which builds against glib/glibc and other system libraries, unless you pull in a whole bunch of "compatability libraries" for the target architecture. On my "no-multilib" system, it doesn't work. Sure, distcc "works transparently", but a bunch of builds get sent back to the target machine to be done. That defeats the whole point of distcc, which is to do all the work on the more powerful machine... I recommend going with one of 3 "cheats"... 1) A 32-bit chroot in a 64-bit machine 2) A QEMU (or VirtualBox) 32-bit guest on a 64-bit host 3) If you have a spare 64-bit machine, install 32-bit Gentoo on it I use option 2) both as my distccd server and to manually build Pale Moon. The target in both cases is an ancient 32-bit-only Atom netbook. -- Walter Dnes I don't run "desktop environments"; I run useful applications