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 2FC751391DB for ; Fri, 1 Aug 2014 08:25:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CBDDE095D; Fri, 1 Aug 2014 08:25:18 +0000 (UTC) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10E8FE090A for ; Fri, 1 Aug 2014 08:25:16 +0000 (UTC) Received: by mail-pa0-f49.google.com with SMTP id hz1so5372061pad.22 for ; Fri, 01 Aug 2014 01:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nileshgr.com; s=google; h=message-id:subject:from:to:date:in-reply-to:references:content-type :mime-version:content-transfer-encoding; bh=6uoxoHrZiFKdZwBiqiGmD1zM+qXWzF5kmF6/lazn1C8=; b=BQGPAYsJRkBOW+PMaAoZT6CYW8EtAUwYV1NQ4csLKtrT3k8Ox1ZmlLWtf5R0CIFe34 v0ZYX4yCnEB3WrK1Up1ip+oqTbBA8a6x2g87jQfU3PD8ui/CeNv0Cs9gYC4nwPaPaYsw xRcF6tced3TAMHn8++40JKwZ1YE5DX0s1jKoM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=6uoxoHrZiFKdZwBiqiGmD1zM+qXWzF5kmF6/lazn1C8=; b=FnF6JU3gZ2Rpq/sdtEGNxZ9jaRTwOCKbwF0IOXwf2IXl0cJJPWmTD4ECXX5e8pq14N ER1w13gybF9woMpW7d2XE3c5BnQMvixjBmE1pZRWiHA5lshKuskFeYuHzbR4nTj5/7Nq WcV+Ppw0MutNNWvb5k8PeuusBTDmwN+sFaJ4mNlYyYyCH2s0KqU+E1Lw7sFtBE+y0+Rb 66mWaLSxSc9fouwt1fMiCRjF/V8KbgqTt+N0yjK9KevEZKPeDrWLXqbNnIbBvkQJ1lgr APXl+eFVFhQ6giEM3QImxyel+ysHYzVfCE3G0fmajiBf+I22+tsTlLdNd3vrJ0qrXTGF HnPg== X-Gm-Message-State: ALoCoQl6zIbmr5kUc90ydwKAS4GFtyRgkZrt9+rxNZziIxbX+/+2HnWsmLL1PA7gDs1C/21AEPu0 X-Received: by 10.68.197.40 with SMTP id ir8mr4027744pbc.139.1406881515746; Fri, 01 Aug 2014 01:25:15 -0700 (PDT) Received: from nilesh-pc.lan ([123.201.38.211]) by mx.google.com with ESMTPSA id p9sm1079554pdl.21.2014.08.01.01.25.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Aug 2014 01:25:14 -0700 (PDT) Message-ID: <1406881510.32352.0.camel@nileshgr.com> Subject: Re: [gentoo-user] Compiling for different CPU but same architecture From: Nilesh Govindrajan To: gentoo-user@lists.gentoo.org Date: Fri, 01 Aug 2014 13:55:10 +0530 In-Reply-To: <1406881383.2106.1.camel@wraeth.id.au> References: <1406872796.1957.1.camel@wraeth.id.au> <20140801085351.02b6bf18@digimed.co.uk> <1406880069.31927.1.camel@nileshgr.com> <1406881383.2106.1.camel@wraeth.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.4 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-Transfer-Encoding: 7bit X-Archives-Salt: 482a45d5-506f-420f-832c-5760ea43ccaa X-Archives-Hash: 041f7ae2de861a0b0ae9ca65e321d8da On Fri, 2014-08-01 at 18:23 +1000, wraeth wrote: > On Fri, 2014-08-01 at 13:31 +0530, Nilesh Govindrajan wrote: > > 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. > > systemd-nspawn is described as "a chroot on steroids". It has no impact > on what flags you use for compiling packages. > > The advantage of systemd-nspawn is the fact that it actually isolates > and executes the chroot's own init process, either systemd or (as I > understand - haven't tested myself) newer versions of OpenRC. Once > you're in the chroot, things work almost the same as if you had actually > booted the system itself (with some exceptions). It manages mounting the > virtual filesystems it needs, and has built-in functionality for > managing bind mounts if needed (such as binding your portage tree so you > don't have to re-download it). > > As Neil said, once inside the chroot, you would still have to manually > set your CFLAGS - "-march=native" is a function of gcc to dynamically > detect the optimal flags to use *at the time it compiles*. > > All this is rather meaningless, though, if you don't have systemd on > your host system anyway. I wouldn't have taken interest in that one if I didn't have systemd. I'm using GNOME3 on both my desktop and the laptop, so systemd is a must. -- Nilesh Govindrajan