From patchwork Wed Feb 6 20:23:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marius Bakke X-Patchwork-Id: 963 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 73FDF16BC8; Wed, 6 Feb 2019 20:25:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1CF8616BC6 for ; Wed, 6 Feb 2019 20:25:29 +0000 (GMT) Received: from localhost ([127.0.0.1]:58212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grTlA-0005vu-HL for patchwork@mira.cbaines.net; Wed, 06 Feb 2019 15:25:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grTl1-0005sM-DQ for guix-patches@gnu.org; Wed, 06 Feb 2019 15:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grTkr-0001hJ-E2 for guix-patches@gnu.org; Wed, 06 Feb 2019 15:25:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36909) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grTkk-0001g4-9f for guix-patches@gnu.org; Wed, 06 Feb 2019 15:25:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grTkk-0005Cd-0p for guix-patches@gnu.org; Wed, 06 Feb 2019 15:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#32953] [PATCH core-updates-next 0/8] Use GCC7 as the default compiler. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Feb 2019 20:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32953 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Received: via spool by 32953-submit@debbugs.gnu.org id=B32953.154948464919927 (code B ref 32953); Wed, 06 Feb 2019 20:25:01 +0000 Received: (at 32953) by debbugs.gnu.org; 6 Feb 2019 20:24:09 +0000 Received: from localhost ([127.0.0.1]:36190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grTjs-0005BJ-NG for submit@debbugs.gnu.org; Wed, 06 Feb 2019 15:24:09 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:56885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grTjq-0005Am-ER for 32953@debbugs.gnu.org; Wed, 06 Feb 2019 15:24:07 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 892792D79; Wed, 6 Feb 2019 15:24:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 06 Feb 2019 15:24:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=1lIM/A+YtpaqCC11eBFEnWjjAu UaOK4sXfUE8HeFEd0=; b=dMgVOUsLr7958PMEh7FgF9y6lAOPLFui0cU0nxR7qY sXvltTQhLDgxnPFx56lwWe1OcJHRY2Sn4FC0tVNH94hJz3Er1zg35q+fiO8qLObS ZJDt+OxtKJtkVU00rsWYMxGFcCXGQ+tzU/2zTkj2Tdx7eSJyy0xteDKpp0NlNE56 bz7n1dnNl30jTpEty8As02qogyorD0BL5MeUyTl1rwwx3Dy5eiTa8A3e4lHH80bP KOZjrYT3V3gCJdJ1FZOGmufDv1+SUdZ2coYU2mm7wCRemcxiaKXd0SyutL/jeX/H leCrAkM33/0X5cjI9WHRbTAPl49iTvKff9sbQqiLfp2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=1lIM/A +YtpaqCC11eBFEnWjjAuUaOK4sXfUE8HeFEd0=; b=PW3q4I5li49xIoc18/XMlB oF/sjwFSgWhDaRkoMt5/pXqj4YNfIsxtyVEow8XSncS2NePR6kPXviYnUBVpsDL2 0cvUZFf/JSsJgwBJlSPiScl1o4xgaCOYKEtVOmODMKPMkT7cuJHOBti0EdhC4H1b zle1Pf0n4n2rg8rgTk7jfKo9BztiS0ZMUfrGIfRGwvv+eSi6InTkPQn5WM9GS1Cf GerM8BuPO2QmkbFIPgqJhMpc8D8nTDOqTIasiVCmuZsG6O0rvvr5iOE5v7Jc5itD v0o+tKN4vZN8RLOulMqI8jP7PdLNLf1OB9HJcZvvw1HSrJj0EXIA8ul4w1dh+8+Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrkeekgddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffujghffg ffkfggtgesghdtreertdertdenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgs rghkkhgvsehfrghsthhmrghilhdrtghomheqnecukfhppeeivddrudeirddvvdeirdduge dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgt ohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 9B1BD100E5; Wed, 6 Feb 2019 15:23:58 -0500 (EST) From: Marius Bakke In-Reply-To: <20190119200119.GA13339@macbook41> References: <20181006131420.8131-1-mbakke@fastmail.com> <87ftxjhux0.fsf@fastmail.com> <87a7krb5hf.fsf@gnu.org> <20181229175833.GU2581@macbook41> <8736psiu9h.fsf@fastmail.com> <20190119170904.GF25281@macbook41> <20190119200119.GA13339@macbook41> User-Agent: Notmuch/0.28 (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Wed, 06 Feb 2019 21:23:56 +0100 Message-ID: <871s4kpswz.fsf@fastmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 32953@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Efraim Flashner writes: > On Sat, Jan 19, 2019 at 07:09:04PM +0200, Efraim Flashner wrote: >> >> I'm going to see if I can build hello --target=arm-linux-gnueabihf next >> and see how that works. > > When I get to gcc-cross-arm-linux-gnueabihf it fails during configure, > cannot find gmp.h. Looking at (gnu packages cross-base), I don't think > there are any package-inputs for xgcc. I still thought gcc bundled its > own gmp et. al. I'm happy to report that the cross-compilation issues are resolved with this trivial patch: Silly me for not catching the CROSS_C_INCLUDE_PATH issue earlier. But, at least I got to know the GCC build processes and GDB better... ;-) I will commit this series shortly and work on a followup patch that removes the various GCC5/C++14 workarounds in one go. 2 files changed, 5 insertions(+), 11 deletions(-) gnu/build/cross-toolchain.scm | 9 +++------ gnu/packages/cross-base.scm | 7 ++----- modified gnu/build/cross-toolchain.scm @@ -36,11 +36,8 @@ (define %gcc-include-paths ;; Environment variables for header search paths. - ;; Note: See for why not 'CPATH'. - '("C_INCLUDE_PATH" - "CPLUS_INCLUDE_PATH" - "OBJC_INCLUDE_PATH" - "OBJCPLUS_INCLUDE_PATH")) + ;; Note: See for why not 'C_INCLUDE_PATH' & co. + '("CPATH")) (define %gcc-cross-include-paths ;; Search path for target headers when cross-compiling. @@ -179,7 +176,7 @@ a target triplet." ;; header" such that #include_next does the right thing. (for-each (lambda (var) (setenv var (string-append libc "/include"))) - '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"))) + '("CROSS_C_INCLUDE_PATH" "CROSS_CPLUS_INCLUDE_PATH"))) #t))) (add-after 'install 'make-cross-binutils-visible (cut make-cross-binutils-visible #:target target <...>)) modified gnu/packages/cross-base.scm @@ -51,11 +51,8 @@ (define %gcc-include-paths ;; Environment variables for header search paths. - ;; Note: See for why not 'CPATH'. - '("C_INCLUDE_PATH" - "CPLUS_INCLUDE_PATH" - "OBJC_INCLUDE_PATH" - "OBJCPLUS_INCLUDE_PATH")) + ;; Note: See for why not 'C_INCLUDE_PATH' & co. + '("CPATH")) (define %gcc-cross-include-paths ;; Search path for target headers when cross-compiling. [back]