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 949D513832E for ; Wed, 3 Aug 2016 20:11:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 378E321C065; Wed, 3 Aug 2016 20:11:35 +0000 (UTC) Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) (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 1BA62E09B3 for ; Wed, 3 Aug 2016 20:11:33 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id l9so20863695oih.0 for ; Wed, 03 Aug 2016 13:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=9kJMXObPPmJiwQF7EYbnK+JQoyMqfw1zypBBrxB2WZI=; b=CkQP0tFGoXwLG4lcLVo/GHBxfWSLraiUu6gUp8PwcByiSJ8ypj5kJPabemx1/axLSv Fd6P1Kz9120S5ydmzovcQXJcbKm62w0d6+te9PvfFlkbD91cZk9Y4LXtucYDTLFBuJ7o oC7SpNbGbe/2eMUUQIgr5a3LG8ZsyqDcDrojB7iCMQMw+OEPRqfF+VN+3tMcRj9Yz5cV dP10kizEmzebitBRfbvJTbOeqB4soaf6nyqhq7wurToL3WFYVEPeayFcKSDmeRuQFzsp JxNI8SGj+GMnkPMge/l/eFf6y3EOLhlqbrt01W3du2X4sj42peCz1ejhFi0lPrWowiCx 3vSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=9kJMXObPPmJiwQF7EYbnK+JQoyMqfw1zypBBrxB2WZI=; b=II9iavlKxq58FIcuXnWPJVLBo8gqRwba3hth5Ud4U2AYco6oHBJHiqp0bV2YcA6wGy +PCV2KD+bWtvihgxQqY3ARlfI/uQvRdNO+t/+pV7/eQ04DS2qe4HsqkXZbi8kNqEL2Z6 dCT91ctqKQIkLb9sWcUC4d3n5iRBFFI8CeF5z6U/ZKjuT/Uo+s6ckYbesePMvZtnOrnb PFFyI1WHJpnlwMywleyV4BNR5hPHHSRgocvDXehPMfO/lJDkD2dcuKkixcervrY2cz1g Mc4DvenBlDRtbtNARJvtYNSiOKMa5JmUrrA3foAOskaWTw9XWb0V234cJY0dMixOoAov yROA== X-Gm-Message-State: AEkooutT7zIMoakXqE6U7960BqeuesQ6a7wi0g4JqCOIwnAsYWHj8Sv0CZ89wBE/3cDsfXy84Tppn0PDwbhNcQ== X-Received: by 10.202.90.130 with SMTP id o124mr28267802oib.7.1470255092985; Wed, 03 Aug 2016 13:11:32 -0700 (PDT) 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 Received: by 10.202.5.2 with HTTP; Wed, 3 Aug 2016 13:11:32 -0700 (PDT) In-Reply-To: <66a230d1-813f-574d-7239-08bbd6f4ad75@verizon.net> References: <1544697.klPk7OG4O7@dell_xps> <2788057.PL0PvVn3Vb@dell_xps> <7280559.BLtsgQ0YyM@peak> <1741521.Dge7ti9OX5@dell_xps> <20160802125604.4dea5fe3@digimed.co.uk> <20160803002229.6501.1E623655@matica.foolinux.mooo.com> <20160803092014.1965cc88@hactar.digimed.co.uk> <66a230d1-813f-574d-7239-08bbd6f4ad75@verizon.net> From: R0b0t1 Date: Wed, 3 Aug 2016 15:11:32 -0500 Message-ID: Subject: Re: [gentoo-user] Re: cross-compile attempt To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: a3cb0ddf-0476-4c70-af46-600586fd372c X-Archives-Hash: 683b3fb468e4d15f82d51c9cfbb274e5 On Wed, Aug 3, 2016 at 12:26 PM, james wrote: > On 08/03/2016 03:20 AM, Neil Bothwick wrote: >> >> On Tue, 2 Aug 2016 17:26:09 -0700, Ian Zimmerman wrote: >> >>>> If you are using systemd, it is much simpler to use a container with >>>> systemd-nspawn that chroot, it takes care of all the mucking around >>>> required to get /dev, /proc and friends available to the container. >>>> >>>> The only mount I need to take care of myself is for $PKGDIR, which is >>>> also available via NFS on the target box. >>> >>> >>> Even with chroot and without without systemd, it pays to create a dead >>> simple shell script that does all the mounting. You can even have that >>> script itself exec chroot as the last step. >> >> >> That's what I do, only the script is even simpler now ;-) >> >> While containers are simpler, it is still easy to miss out a step, so a >> script makes a lot of sense. >> >> > > OK, so now I curious to try this out too. I'd be interested in testing > this script for a hardware system (situation) exactly identical to Mick. > I do not use systemd. If someone wanted to post a script via gist > (http://www.labnol.org/internet/github-gist-tutorial/) or elsewhere > or privately or via private email, centric to openrc, I'd test it out, > for a variety of final target image needs. > > Also any other scripts for arm64v8 builds on native arm64 systems would > be of keen interest to me. I'd settle for a script for armv7 to use as a > starting point. > > > > James > You can compile for i386 natively with the multi-target libraries installed. I have used a chroot instead when my system was installed without the i386 libraries. My other thought was using a cross compiler, but I was running out of disk space at the time and needed to support multiple systems. The major issue here is it is hard (or cumbersome) to keep partial systems; each crossdev prefix will be a self-contained system.