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 9A658138206 for ; Mon, 1 Aug 2016 16:19:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D48D5E0B24; Mon, 1 Aug 2016 16:19:38 +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 B735EE0B08 for ; Mon, 1 Aug 2016 16:19:37 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CFCwA731xV/1T292hcgxBUXsNcCYFWhXUEAgKBPDkUAQEBAQEBAYEKQQWDXAEBAQECATocKAsLGAkTEg8FJTeIJAjPIwEBAQEBBQEBAQEBARgEizqEOlIWgwGBFgWXIYZOgSiGUItEg1kjhBQiMYJHAQEB X-IPAS-Result: A0CFCwA731xV/1T292hcgxBUXsNcCYFWhXUEAgKBPDkUAQEBAQEBAYEKQQWDXAEBAQECATocKAsLGAkTEg8FJTeIJAjPIwEBAQEBBQEBAQEBARgEizqEOlIWgwGBFgWXIYZOgSiGUItEg1kjhBQiMYJHAQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="249915369" 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 12:21:55 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Mon, 01 Aug 2016 12:19:41 -0400 From: waltdnes@waltdnes.org Date: Mon, 1 Aug 2016 12:19:41 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: [was cross-compile attempt] 32bit chroot Message-ID: <20160801161941.GA411@waltdnes.org> References: <1544697.klPk7OG4O7@dell_xps> <20160801152303.GA32763@waltdnes.org> <8913347.WbJZnuc41j@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: <8913347.WbJZnuc41j@dell_xps> User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: e61bf71f-c027-4d6c-b518-0fa64d2ed5f0 X-Archives-Hash: e06c3bf697f17de0e3d226ab164e15c9 On Mon, Aug 01, 2016 at 04:46:24PM +0100, Mick wrote > On Monday 01 Aug 2016 11:23:03 waltdnes@waltdnes.org wrote: > > > 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. > > I'm trying your cheat (1) above, but I must be doing something wrong: > > gentoo-32bit # linux32 chroot /mnt/iso/gentoo-32bit /bin/bash > chroot: failed to run command ???/bin/bash???: No such file or directory > > gentoo-32bit # ls -la /bin/bash > -rwxr-xr-x 1 root root 705400 Jan 9 2016 /bin/bash > > gentoo-32bit # ls -la ./bin/bash > -rwxr-xr-x 1 root root 677244 Jan 16 2016 ./bin/bash > > gentoo-32bit # linux32 chroot /mnt/iso/gentoo-32bit ./bin/bash > chroot: failed to run command ???./bin/bash???: No such file or directory I believe that "/bin/bash" is the pathname after you switch to the chroot environment. So you would need a 32-bit bash located at /mnt/iso/gentoo-32bit/bin/bash *BEFORE CHROOTING*. See https://lwn.net/Articles/252794/ > What chroot() actually does is fairly simple, it modifies pathname > lookups for a process and its children so that any reference to a path > starting '/' will effectively have the new root, which is passed as > the single argument, prepended onto the path. The current working > directory is left unchanged and relative paths can still refer to > files outside of the new root. -- Walter Dnes I don't run "desktop environments"; I run useful applications