From patchwork Thu Mar 12 21:56:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "LaFreniere, Joseph" X-Patchwork-Id: 20662 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 577DD27BBEA; Thu, 12 Mar 2020 21:57:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id BFFB827BBE4 for ; Thu, 12 Mar 2020 21:57:12 +0000 (GMT) Received: from localhost ([::1]:50930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCVpI-0006d7-6c for patchwork@mira.cbaines.net; Thu, 12 Mar 2020 17:57:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41518) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCVpA-0006XT-VA for guix-patches@gnu.org; Thu, 12 Mar 2020 17:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCVp9-0001sh-KM for guix-patches@gnu.org; Thu, 12 Mar 2020 17:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCVp9-0001s6-GM for guix-patches@gnu.org; Thu, 12 Mar 2020 17:57:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCVp8-0003uW-Fb for guix-patches@gnu.org; Thu, 12 Mar 2020 17:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40045] [PATCH] gnu: Add libgccjit. Resent-From: "LaFreniere, Joseph" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Mar 2020 21:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40045 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40045@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158405021415015 (code B ref -1); Thu, 12 Mar 2020 21:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2020 21:56:54 +0000 Received: from localhost ([127.0.0.1]:57903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCVp0-0003u7-1o for submit@debbugs.gnu.org; Thu, 12 Mar 2020 17:56:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:48217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCVoy-0003ty-GF for submit@debbugs.gnu.org; Thu, 12 Mar 2020 17:56:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41371) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCVow-000658-SV for guix-patches@gnu.org; Thu, 12 Mar 2020 17:56:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCVot-0001da-Q7 for guix-patches@gnu.org; Thu, 12 Mar 2020 17:56:50 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:10278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jCVot-0001bS-4W for guix-patches@gnu.org; Thu, 12 Mar 2020 17:56:47 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id BE0DCC09 for ; Thu, 12 Mar 2020 22:56:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1584050200; x=1585864601; bh=tbQHY8LArFw5UZ28T+i vUSLUu0cSczffGUmw7w5e7zk=; b=jNrcndo5+U/SUQQY9xSHkSS6WIjA5LQEYXr +X0dNh2+fKwMUPQChUC2aEo6swLkxUQDQ0X9+uTU4hWeQuF2WSM0YsqZ+JkgpBMp dgGByk3NxGgB4Kj9tnVzV/AqULmnGhHCfT3zSjUoUabipMrI53wwG3sZ7Pt9Srxz xcc7eS+ZWGdYOEv45H7IuBQ1FwjanDh1npNfrw8qgbLRVIAVQVSMl/8vf7f7z0DE 0AIQCVW17RiOCB5UG0Yr7h5wkYcNcwkIsipVCoOIykjYpvh6DzZ30g6+SnvvXgwP LMpNbUc6iweKcWItCy5QtHOtCvshQFbVeHDUlw/iidnIMEo5XmMxiWXOcmGWbCvO tmTI2GSxq9pqX622l2awJ3ZjR4lQluDApDqsa3YHGzCBUE5fFtbcc/iM3OWK85Zt CXFKzQPECW0X0EmknQPrY9TOvb3Gd78UlhRQcUj0kS7rc02GEHqA1Ya4DdNSk6VI Esy6Kjc7Z6AOLIygIUXk5HgmllK8oGTifo7BdpbquLwTGkm15L2BCeR65nwmmNgC Orml5EIeCrI+6s7Q3JTztLqfFwr7qJPpr8E0oOm1JLljmr5KtQVnMexS8YDhX9gA KcfKLU75H/d393yzL4wm0cVBYKKICE3M+dYgovc//zemnL1YJN+ZaaW9haaMGzMI anGHOhvg= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OhmhzfXHX8TD for ; Thu, 12 Mar 2020 22:56:40 +0100 (CET) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 9EFE455A for ; Thu, 12 Mar 2020 22:56:40 +0100 (CET) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 61C93B0F for ; Thu, 12 Mar 2020 22:56:40 +0100 (CET) From: "LaFreniere, Joseph" Date: Thu, 12 Mar 2020 16:56:33 -0500 Message-ID: <87tv2tnsoe.fsf@lafreniere.xyz> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Patch file is attached. I have no experience building or packaging GCC, so any feedback is appreciated. That being said, I _believe_ this recipe follows the build instructions at https://gcc.gnu.org/onlinedocs/jit/internals/index.html#packaging-notes correctly. This is toward the eventual goal of packaging gccemacs (https://akrl.sdf.org/gccemacs.html). --- Joseph LaFreniere From 8b08b302f6bf601f5c95513a56b7b0b54b0dc95c Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Wed, 11 Mar 2020 21:48:59 -0500 Subject: [PATCH] gnu: Add libgccjit. * gnu/packages/gcc.scm (libgccjit): New variable. --- gnu/packages/gcc.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index ead50bb1dc..03fdeb02e1 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -690,6 +690,34 @@ as the 'native-search-paths' field." ;; report two gfortran@5 that are in fact identical. gfortran-7) +(define-public libgccjit + (package + (inherit gcc-9) + (name "libgccjit") + (outputs (delete "lib" (package-outputs gcc))) + (properties (alist-delete 'hidden? (package-properties gcc))) + (arguments + (substitute-keyword-arguments `(#:modules ((guix build gnu-build-system) + (guix build utils) + (ice-9 regex) + (srfi srfi-1) + (srfi srfi-26)) + ,@(package-arguments gcc)) + ((#:configure-flags flags) + `(append `("--enable-host-shared" + ,(string-append "--enable-languages=jit")) + (remove (cut string-match "--enable-languages.*" <>) + ,flags))) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'install 'remove-broken-or-conflicting-files + (lambda* (#:key outputs #:allow-other-keys) + (for-each delete-file + (find-files (string-append (assoc-ref outputs "out") "/bin") + ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)")) + #t)))))))) + + (define-public gccgo-4.9 (custom-gcc gcc-4.9 "gccgo" '("go") %generic-search-paths -- 2.25.1