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 AE8AA13877A for ; Fri, 1 Aug 2014 11:45:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B93D4E08C0; Fri, 1 Aug 2014 11:45:39 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 90BD2E0849 for ; Fri, 1 Aug 2014 11:45:38 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id 10so3149062lbg.34 for ; Fri, 01 Aug 2014 04:45:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XEYDpgBVD6N8B0t0YPtuuYctx3mW1nLnAaLG95b5KK0=; b=rEkcTajXsoSVBeV9+1oKj9YH4GModUYnc7L4q1okCaDRtfFZnLKLToVSAk9Cj4MWpi cY4ZJCzNYD1Q+3udtNGvTKkwyQRtCpyBfQJM74D+Reo1PsypHPhFqDizRqaPs27fUl5d LYpf5svKHFCF3LqFyJuLQ6lHFUL70KyHPY7WfOtgPMeO+G0cLuUjxlwGLvf4oIiqdcxw ssbOj+3syWWlfiYXIxTpwRrDmmgKN2r8NOSF8/+TlbZnwF0YhYcUx42/Q4jruyw0p/jV LNWMZtjn2ia1tIq28kOY30JhAtTuDd+agoIfqTQtFX8XIG4W6Qmu3OWObeS1w3RIbC9b lrbg== 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 X-Received: by 10.112.162.229 with SMTP id yd5mr4805275lbb.29.1406893536215; Fri, 01 Aug 2014 04:45:36 -0700 (PDT) Received: by 10.112.135.229 with HTTP; Fri, 1 Aug 2014 04:45:36 -0700 (PDT) In-Reply-To: <1406880069.31927.1.camel@nileshgr.com> References: <1406872796.1957.1.camel@wraeth.id.au> <20140801085351.02b6bf18@digimed.co.uk> <1406880069.31927.1.camel@nileshgr.com> Date: Fri, 1 Aug 2014 05:45:36 -0600 Message-ID: Subject: Re: [gentoo-user] Compiling for different CPU but same architecture From: =?UTF-8?Q?Jc_Garc=C3=ADa?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 72e74461-7531-4dc2-acd3-4cd2b80cb363 X-Archives-Hash: 56664ebcdf4f186befdef8fc7bfbaac8 2014-08-01 2:01 GMT-06:00 Nilesh Govindrajan : > On Fri, 2014-08-01 at 08:53 +0100, Neil Bothwick wrote: >> On Fri, 01 Aug 2014 15:59:56 +1000, wraeth wrote: >> >> > systemd-nspawn is quite a useful utility for working in a chroot - >> > almost a complete virtual machine without the overhead. >> > >> > I also came across a handy introduction to it [1] too, by none other >> > than rich0 (one of our esteemed devs) - it's worth a read (particularly >> > when you try using it without DEVPTS_MULTIPLE_INSTANCES set - that was >> > fun!). >> > >> > [1] >> > http://rich0gentoo.wordpress.com/2014/07/14/quick-systemd-nspawn-guide/ >> >> I saw that a couple of weeks ago and thought "I'll try that when I get >> time". The time needed turned out to be about 5 minutes, it's so much >> easier than using a chroot. >> >> > > systemd-nspawn seems to be interesting. But will it work on my i5? > Because I prefer to use -march=native. For using distcc I copied all the > flags that gcc selects in march=native mode to make.conf. > > I don't think what CFLAGS you are using matters for using systemd-nspawn, but In my tests, It can be used for typical chroot and installation of a stage3 with openrc, but if you want to use '-b' to boot the container you need systemd on host and container. Here's another guide[1] by a gentoo dev, but on CFLAGS, -march=native and using distcc. [1] http://blogs.gentoo.org/mgorny/2014/06/23/inlining-marchnative-for-distcc/