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 3D1F013832E for ; Sun, 31 Jul 2016 20:15:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7AE2F21C0CC; Sun, 31 Jul 2016 20:15:25 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41D6D21C08A for ; Sun, 31 Jul 2016 20:15:24 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id f65so347098471wmi.0 for ; Sun, 31 Jul 2016 13:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lxvDmNidIrd5gWZBgDcLoh8lbsUNv/l0dHzHYShw9Ys=; b=SSZS5aKPmB7Y5jVLhq2LDR67RAVNYKHjBhdiopFRCNlhSZC5vgvmZXGPfjGZlJDHjp dB46MR+4DvvxB4eb6Cy5jBfwEBu5N6Ms7eCx8c4zoZNlBynrH0WEnEpOuiO8OAUOFdmC +I6dFsj23xLrEuwESzsjkBuIi4hUHzxVzoGuLsfD+FoV/9wYpZfgSQWyvt2X0o8rtoZE fmpV1knzHuUsU8Y0BUuzxU0C2Us7Y4+8LO1PVLU84mTgDsiKsWwq3HgWsoaA5OEyJmno w4dwzyTSqK4tsisU3SSZrNDQhnW0GCwyWi5696ULXjGdoUnSL85gh6Oa8tFhD1CMgVAZ WJBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lxvDmNidIrd5gWZBgDcLoh8lbsUNv/l0dHzHYShw9Ys=; b=mVoAa0Xr+bT9kqaSvgNtaSmvPtGBAA0Zp9SA36Y0XFfPcdjLH4iyU/wq0t+Djsop1A G6drQkjB/x0UzISiXr7BZLlNxPapjfXHcOex8lkBbXk+6mCVJu8Spw5VObdjlgf4LZxV Rs3tbMsXvdc2dUjtslJhzrXzlrgnsdl+FWFqARPKAlE1iZnj7jFsLipKpa613sk2Z82D 4kj6zYQOPyzZhfvqUhXqfBtl8IX+hcuqjv03vldvDPArFj1wtkvrbprgOMeuM50XY7fT 2RLxIj56gJFNo8uxvdb7DrVLrCkg8L1V00v+GH7HW5XxHMIMvKdqIyJ11CB4WUaPFT0u oiug== X-Gm-Message-State: AEkoouvLDmYOhQpmb+8woREYEgIyKzUk3bGfOGJIWezrD9p8H/JBsJPjRelikgio8/li8g== X-Received: by 10.194.77.97 with SMTP id r1mr51034942wjw.83.1469996122616; Sun, 31 Jul 2016 13:15:22 -0700 (PDT) Received: from gentoo-tp.home ([2a02:908:f324:d600:acf0:3a73:fbab:148e]) by smtp.gmail.com with ESMTPSA id r67sm13527995wmb.14.2016.07.31.13.15.21 for (version=TLS1_2 cipher=AES128-GCM-SHA256 bits=128/128); Sun, 31 Jul 2016 13:15:21 -0700 (PDT) Date: Sun, 31 Jul 2016 22:15:19 +0200 From: Jeremi Piotrowski To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] cross-compile attempt Message-ID: <20160731201519.GA7447@gentoo-tp.home> 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: 70c75450-82be-4810-a6be-9201f4eccc96 X-Archives-Hash: 3bef830ac7dd528487cb691809dad5ed On Sun, Jul 31, 2016 at 07:40:37PM +0100, Mick wrote: > > * ARCH is not set... Are you missing the '/usr/i686-pc-linux- > * gnu/etc/portage/make.profile' symlink? Is the symlink correct? Is your > * portage tree complete? > =============== > > As far as I can tell the link is there: > > # ls -la /usr/i686-pc-linux-gnu/etc/portage/ > total 8 > drwxr-xr-x 1 root root 56 Jul 31 19:32 . > drwxr-xr-x 1 root root 20 Jul 31 18:32 .. > -rw-r--r-- 1 root root 1019 Jul 31 19:32 make.conf > lrwxrwxrwx 1 root root 30 Jul 31 17:48 make.profile -> > /usr/portage/profiles/embedded > drwxr-xr-x 1 root root 32 Jul 31 18:16 profile > > and it was created when I ran 'crossdev --stable -v -t i686-pc-linux-gnu'. > As far as I know, ARCH is one of those variables that has to be specified in a profile, not in make.conf. A quick solution is to place the ARCH=x86 line into the site-specific override .../etc/portage/profile/make.defaults Although in this case your choice of profile may simply be wrong. The embedded profile is the crossdev default that pretty much only has busybox. Choose something like default/linux/x86/13.0 or if you want a lighter libc how about default/linux/uclibc/x86 (or hardened/linux/musl/x86). That should give you a more complete @system set. > > What am I missing? How would/do you go about achieving the same objective? > Since you are doing this on an amd64 box which can natively run x86, if you want to achieve the same goal faster, start with a x86 stage3, chroot into it and emerge a couple packages that you want to add, then tar it up and load onto your 32 bit box. If you want to add packages later, emerge them with '-b' in the chroot (on the amd64 box), and then follow https://wiki.gentoo.org/wiki/Binary_package_guide to allow the 32-bit box to install them as binary packages. Ofcourse if you want to learn crossdev, then this is a great chance to do so.