From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KuWFIfKndmLQ3gAAbAwnHQ (envelope-from ) for ; Sat, 07 May 2022 19:10: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 mp10.migadu.com with LMTPS id iHFaH/KndmK6NQAAG6o9tA (envelope-from ) for ; Sat, 07 May 2022 19:10:10 +0200 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 0EA682D58C for ; Sat, 7 May 2022 19:10:10 +0200 (CEST) Received: from localhost ([::1]:49300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnNwW-00073V-Rx for larch@yhetil.org; Sat, 07 May 2022 13:10:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnNwQ-00072z-U6 for guix-patches@gnu.org; Sat, 07 May 2022 13:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnNwQ-00038I-L8 for guix-patches@gnu.org; Sat, 07 May 2022 13:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnNwQ-0003rO-7L for guix-patches@gnu.org; Sat, 07 May 2022 13:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53833] [PATCH] gnu: Add qbe. References: <20220207011332.27844-1-jgart@dismail.de> In-Reply-To: <20220207011332.27844-1-jgart@dismail.de> Resent-From: "(unmatched-parenthesis" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 May 2022 17:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53833 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53833@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 53833-submit@debbugs.gnu.org id=B53833.165194339114815 (code B ref 53833); Sat, 07 May 2022 17:10:02 +0000 Received: (at 53833) by debbugs.gnu.org; 7 May 2022 17:09:51 +0000 Received: from localhost ([127.0.0.1]:52902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnNwF-0003qt-K3 for submit@debbugs.gnu.org; Sat, 07 May 2022 13:09:51 -0400 Received: from knopi.disroot.org ([178.21.23.139]:36226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnNwE-0003qm-LS for 53833@debbugs.gnu.org; Sat, 07 May 2022 13:09:51 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EB7F543675; Sat, 7 May 2022 19:09:49 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VBWRw6cq1zLs; Sat, 7 May 2022 19:09:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1651943387; bh=PUzpI6ym1jwuBWM61ZAwXSHzwv7Klwuky02cZFAtWts=; h=From:To:Cc:Subject:Date; b=SLD4c1pyUvt+fSuzlF/yPJP+0JAjbsQvOarGCXHVqgOJiIJzSihL2NCsHBuuEMUr+ ZjjgqKMwIsfVW3VNiAKw0Mf4XD/jQqfPcLi3ctnth0UGW5rp4od6mDLHYUJ4W1D4K6 FFz92UoEDaExt27HFy3ec1IJkl/w6MF564ySR5wMo9Wwg3lk7Ef6IMx7x02uj3SRaj rplpmb+kWtJV/iW35z/3AWGagjZtcLgwtGMXszHcTT74qFWldYYwCsTFimPQtoY4z7 h5RiLs+N+B2OK1yDbiIEHYinuyqQmmvn1nTfemMpyv1hToqX0FoVF30nwuIHju3oGA +SR7zaE0MTpwA== Date: Sat, 7 May 2022 18:09:42 +0100 Message-Id: <20220507170942.13785-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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" Reply-to: "\(unmatched-parenthesis" X-ACL-Warn: , "\(unmatched-parenthesis via Guix-patches" From: "\(unmatched-parenthesis via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651943410; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=Flgnvv8AfEuwSs/MUowfsjWM3fDG12nqlePCiNJWV1o=; b=FFljebQeOEha65BCKQdg0tmSkZoIpfgNvoB622xN9NslL/x5AZgBt426GiASDEiz+GJRFg sGAO7tDrnno7c9CBXupEukO/cLQLgYmOOOR/dQQTEB7NKf3ZY2oBToZgs+wjYA3rEqugDM xruxi+HN0MohrN3Fcl6COQa2rNd92v7G6swSrNPLMLE/a7RQqci2MDZMMuRCVUom+q2fg3 njw672lk8DHQoW7uLzz1VRi38EAodAXWZ1/flMHu3E1ybdd9s5d8hZfu3Po1oRYHwCmjm1 NQYAOzXH1IAdOrdgiQpnpqsUFXYUO6qQVSoTDesiFgZuCjG9HtCNmc5+aqWPwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651943410; a=rsa-sha256; cv=none; b=tk+VkgwS3Pch+oLDxmbgkbOBXiA6uN95B6gAb1c4wmILsDhKp0DSgDkNAAriCr1P4X4+I3 uRWGb7rixOJXBH9aEVLB7EgeMqDOUMyz8OlmrAb0XzsdlHUZhu6F2hs1BxKr0CSshfPoZ5 xTxQcT3h0Qjq8qpR1kUazfDz8ii3X6D8lIUxYqMVIM8p390JpNt0t1ccD6SOeza8bL55fw 3sOTz0Jus6iK8C+FERizo+crdJEuuJWwcgt6qoZi88Ew8JesGbK6e1yoWTHdT05POycdjZ ZXnhfB8376C+nU/Kq/NTUNHwKzszYnTpPvUmmL666zyLSfmA4goUlqd0CDZp1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=SLD4c1py; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=SLD4c1py; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0EA682D58C X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0u03QA0EgfCZ * gnu/packages/c.scm (qbe): New variable. Signed-off-by: (unmatched-parenthesis --- gnu/packages/c.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index da034d5fd9..1e3296dae1 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -1064,3 +1064,36 @@ (define-public utf8-h C and C++. The functions it provides are like those from the C header string.h, but with a utf8* prefix instead of the str* prefix.") (license license:unlicense)))) + +(define-public qbe + (let ((commit "2caa26e388b1c904d2f12fb09f84df7e761d8331") + (revision "1")) + (package + (name "qbe") + (version (git-version "0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "git://c9x.me/qbe") + (commit commit))) + (file-name (git-file-name name version)) + (patches (search-patches "qbe-makefile-add-target.patch")) + (sha256 + (base32 "1gv03ym0gqrl4wkbhysa82025xwrkr1fg44z814b6vnggwlqgljc")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; Tests require a running qemu + #:make-flags ,#~(list (string-append "CC=" #$(cc-for-target)) + (string-append "PREFIX=" #$output) + (string-append "TARGET=" #$(or (%current-target-system) + (%current-system)))) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (supported-systems (list "x86_64-linux" "aarch64-linux" "riscv64-linux")) + (synopsis "Simple, straightforward backend compiler") + (description "QBE is a compiler backend with the goal of reaching 70% of the +performance of advanced compilers such as LLVM and GCC in only 10% of the code.") + (home-page "https://c9x.me/compile/") + (license license:expat)))) -- 2.36.0