From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QM6YCCqXUGF8nAAAgWs5BA (envelope-from ) for ; Sun, 26 Sep 2021 17:52:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UCEDBCqXUGEfMgAAbx9fmQ (envelope-from ) for ; Sun, 26 Sep 2021 15:52:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BA2152EA30 for ; Sun, 26 Sep 2021 17:52:09 +0200 (CEST) Received: from localhost ([::1]:54054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUWRk-000678-Rh for larch@yhetil.org; Sun, 26 Sep 2021 11:52:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUWRe-000670-Nn for guix-patches@gnu.org; Sun, 26 Sep 2021 11:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55244) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUWRe-0004k3-Fx for guix-patches@gnu.org; Sun, 26 Sep 2021 11:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUWRe-0005r0-Eb for guix-patches@gnu.org; Sun, 26 Sep 2021 11:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48767] [PATCH 2/6] gnu: Add gcc-msp430. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Sep 2021 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48767 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Morgan.J.Smith@outlook.com, 48767@debbugs.gnu.org Received: via spool by 48767-submit@debbugs.gnu.org id=B48767.163267151622488 (code B ref 48767); Sun, 26 Sep 2021 15:52:02 +0000 Received: (at 48767) by debbugs.gnu.org; 26 Sep 2021 15:51:56 +0000 Received: from localhost ([127.0.0.1]:38557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUWRX-0005qe-W9 for submit@debbugs.gnu.org; Sun, 26 Sep 2021 11:51:56 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:60510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUWRV-0005qV-PK for 48767@debbugs.gnu.org; Sun, 26 Sep 2021 11:51:54 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by michel.telenet-ops.be with bizsmtp id yfrr2500G0mfAB406frryA; Sun, 26 Sep 2021 17:51:51 +0200 Message-ID: <2e7f75188f8cef65077d2e19efa3b5efdeb71781.camel@telenet.be> From: Maxime Devos Date: Sun, 26 Sep 2021 17:51:44 +0200 In-Reply-To: References: <20210926145155.966-1-Morgan.J.Smith@outlook.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-kgey/Rznaf+tboBX3aXp" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1632671511; bh=BMkWyqgw5wfa9jxciSQyDsZw4d9m7GV3j2LKdUMuNPQ=; h=Subject:From:To:Date:In-Reply-To:References; b=HHzHyyB9240G0gCeL2LeJ+WJFdyelEY9Wo6YyNqoBPjrBrzb7XZU2r25494LNeE5n FWWoDMQobxnF0dkhhTS1Uc3lNQvyHM7t3jWKHKfyqBVgEONMGcf00aQEweOoOi0YaB 8SSC2BcSx9jJuZQ7grRRGMaeKquR+34yw79OiMEpypUENg3yYIkNvic56XYZ+Opc3I lbYC4Qp+Ya0wU44ZetkM7B0oYxZDmg6y/jpn/M3aAW7iX3sZ5VcSd78ZbvojCtJVXU VmVLxVIb4aOFXKCY63IvM1nkPzz+eFRfJtreurIjBllsXszN/ekuqfo8FeWGkBN9Au PDsfHRSt684eg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632671529; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=BMkWyqgw5wfa9jxciSQyDsZw4d9m7GV3j2LKdUMuNPQ=; b=YM30+u6DpR1Af3r3T3CFqVSe3miuQCmgQ2mS9wCCLIELnK4Ylgmbjl/vr7VQ/N3h7RIlQL tJEQ2hZ/EnVF5ZaZ/kymyQlOaz+FpiJDx07vZWaaM0cqgW0c7Jy7ok5bLXZ1+SseswHLkx 4C+azGPtvuuOXJV9obc8wqDynJa3Lay1cnqDBTkze8s4mq3HWWxlkERHVxiXGkJ6v6Rum+ MxjXwVDnhRjRYMjtn9A+rHNPLxN7zKc5C8kml2cFwtpbWSO38mddxPwIh5Yz6Po9NxLhai PnMt08OQvWRwqWPEQxlEqrL4h6Rs6gayevXet8D3xOPHplkcqn68TYApemBk7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632671529; a=rsa-sha256; cv=none; b=aLr4xskB53+kuZLmkcMy6AE40OBIC1Ibim7LEqCnkqp/Mjgz1cZnsikztEiRNT0PuGtxGe KkM5I237ewe7Ibr69+l5+pOgZUTCaoycDr41wDyAumMB5fe2XC96XHbfHhTcTca+Ll2LYh 6YsfkeeFT8Co+LYTisO81nxakEXrTrDt3DZBQ7QL41qBrPCYSbpO8/j2M62u3ailLXi9kN iTd1m0xm+cqNpaIhuzWW92nkkUizl0RbmdNCBX0QvMd3tnmCyjwYz6EAmhHxoTOI70KUih KAnb/pyfrG/r8K4C0NqUcEMU8UB1o4NyFBaQIgVB+2ZZ1RoEmb4m2onu7e21gw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=HHzHyyB9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=HHzHyyB9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: BA2152EA30 X-Spam-Score: -3.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: pKZnS5lVDtYY --=-kgey/Rznaf+tboBX3aXp Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Morgan.J.Smith@outlook.com schreef op zo 26-09-2021 om 10:51 [-0400]: > From: Morgan Smith >=20 > * gnu/packages/embedded.scm (gcc-msp430): New variable. > --- > gnu/packages/bootstrap.scm | 1 + > gnu/packages/embedded.scm | 33 +++++++++++++++++++++++++++++++++ > 2 files changed, 34 insertions(+) >=20 > diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm > index c598cedc0a..54a028e977 100644 > --- a/gnu/packages/bootstrap.scm > +++ b/gnu/packages/bootstrap.scm > @@ -311,6 +311,7 @@ or false to signal an error." > ((string=3D? system "arm-eabi") "no-ld.so") > ((string=3D? system "xtensa-elf") "no-ld.so") > ((string=3D? system "avr") "no-ld.so") > + ((string=3D? system "msp430-elf") "no-ld.so") > ((string=3D? system "propeller-elf") "no-ld.so") > ((string=3D? system "i686-mingw") "no-ld.so") > ((string=3D? system "x86_64-mingw") "no-ld.so") > diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm > index f1f17e83a7..7073168b57 100644 > --- a/gnu/packages/embedded.scm > +++ b/gnu/packages/embedded.scm > @@ -530,6 +530,39 @@ languages are C and C++.") > `(("unzip" ,unzip))) > (license license:bsd-3))) > =20 > +(define-public gcc-msp430 > + (let ((xgcc (cross-gcc "msp430-elf" > + #:xgcc gcc-9 > + #:xbinutils (cross-binutils "msp430-elf")))) > + (package > + (inherit xgcc) > + (name "gcc-msp430") > + (arguments > + (substitute-keyword-arguments (package-arguments xgcc) > + ((#:phases phases) > + `(modify-phases ,phases > + (add-after 'set-paths 'augment-CPLUS_INCLUDE_PATH > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((gcc (assoc-ref inputs "gcc"))) > + ;; Remove the default compiler from CPLUS_INCLUDE_PAT= H to > + ;; prevent header conflict with the GCC from native-i= nputs. > + (setenv "CPLUS_INCLUDE_PATH" > + (string-join > + (delete (string-append gcc "/include/c++") > + (string-split (getenv "CPLUS_INCLUDE= _PATH") > + #\:)) > + ":")) > + (format #t > + "environment variable `CPLUS_INCLUDE_PATH' ch= anged to ~a~%" > + (getenv "CPLUS_INCLUDE_PATH"))))))))) > + (native-search-paths Shouldn't these be 'search-paths' instead of 'native-search-paths', as "gcc-msp430" is a cross-compiler? (I know other GCC cross-compiler packages in (gnu packages embedded) are using native-search-paths as well, but I don't understand why.) > + (list (search-path-specification > + (variable "CROSS_C_INCLUDE_PATH") > + (files '("msp430-elf/include"))) > + (search-path-specification > + (variable "CROSS_LIBRARY_PATH") > + (files '("msp430-elf/lib")))))))) Greetings, Maxime. --=-kgey/Rznaf+tboBX3aXp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVCXEBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7lEPAQCiVKWRtL3uSnNdYp5Y38Sx9y2x yNxx94HMpVo5xbKFQgD/c+gCiUAfcD3cgktGRR/OzKuf+Hs3ur28n/A88dD3hAA= =6IfO -----END PGP SIGNATURE----- --=-kgey/Rznaf+tboBX3aXp--