From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: [PATCH 01/10] gnu: cross: Use CROSS_*_INCLUDE_PATH for system headers. Date: Tue, 03 May 2016 15:27:46 +0200 Message-ID: <8760uvjmp9.fsf@igalia.com> References: <1461942751-23883-1-git-send-email-janneke@gnu.org> <87zis8naw1.fsf@igalia.com> <871t5jcplz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axaNq-0006TF-VC for guix-devel@gnu.org; Tue, 03 May 2016 09:29:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axaNe-0003rv-VK for guix-devel@gnu.org; Tue, 03 May 2016 09:28:57 -0400 In-Reply-To: <871t5jcplz.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 03 May 2016 14:06:48 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org On Tue 03 May 2016 14:06, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo skribis: > >> And why just one CROSS_C_INCLUDE_PATH -- would it not be necessary in >> theory to have such a CROSS_ARCH_... for each ARCH that we might be >> interested in? I am not suggesting that you make the change now but I >> want to know what the right thing is :) > > In theory, you=E2=80=99re right. That=E2=80=99s one of the concerns that= was raised: > > http://gcc.gnu.org/ml/gcc/2013-02/msg00125.html > > I don=E2=80=99t think it=E2=80=99s a common use case though. I dunno. You could certainly manage to install a mingw toolchain and an AVR toolchain into a profile by mistake. It's a bad idea of course, and we wouldn't warn about it, and the failure would be weird. The mitigating factors are that you rarely need to actually have a cross-compiler in a profile because cross-builds can just include them automatically, and also you can use environments -- but it's something that people need to add to their mental model, and something we should document in the pending "cross-compiling from guix" section of the manual :) Andy