From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +BkKJcUzjGK3PQEAbAwnHQ (envelope-from ) for ; Tue, 24 May 2022 03:24:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uBcgJMUzjGKllQAAG6o9tA (envelope-from ) for ; Tue, 24 May 2022 03:24:21 +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 034243BA59 for ; Tue, 24 May 2022 03:24:21 +0200 (CEST) Received: from localhost ([::1]:49632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntJHX-0002L1-Fy for larch@yhetil.org; Mon, 23 May 2022 21:24:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntJHH-0002Kh-1q for guix-patches@gnu.org; Mon, 23 May 2022 21:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntJHG-00065Q-EV for guix-patches@gnu.org; Mon, 23 May 2022 21:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntJHG-0001dZ-9N for guix-patches@gnu.org; Mon, 23 May 2022 21:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55605] [PATCH 1/2] gnu: Add qbe. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 24 May 2022 01:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55605 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55605@debbugs.gnu.org Cc: Antero Mejr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16533553916214 (code B ref -1); Tue, 24 May 2022 01:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 May 2022 01:23:11 +0000 Received: from localhost ([127.0.0.1]:50500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntJGR-0001cA-4y for submit@debbugs.gnu.org; Mon, 23 May 2022 21:23:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:49722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntJGN-0001c1-My for submit@debbugs.gnu.org; Mon, 23 May 2022 21:23:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntJGN-0002IZ-Hs for guix-patches@gnu.org; Mon, 23 May 2022 21:23:07 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:58090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1ntJGL-00062X-4k for guix-patches@gnu.org; Mon, 23 May 2022 21:23:07 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4L6bzl5VShz9sZk for ; Tue, 24 May 2022 03:22:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1653355379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zoH3KAgdbfi1Tok7KeFESu/14a4yQdOodf1/lfe1Bu4=; b=ex6LTb6t/rLSo5Ne7KY0+qSRv/YWYZPb784PrlLnM6eky/9/uxkIpOgdiwFIDfe6p3ZV2G JXshvJbyRMzbI3HekBBV+V7xbasx/FoLqjWEiB72lKF39GxTdkvRLy35Cabs4eegzUte0E BUWdqyMz9vfrxtyfycynVUey1kB0mN1ozgheOLOf7c08F5PR5s59/BNP7d6tbu4FeQzLqt vz7ASPitpoPrafJUvCIYhxdrrq/uoX06kxu5/wKQW3A1H04VFSDRBSX8WWPFjAg7SH9wzV c1sQoKn5Aie4np+gq52FctJNvBvt2qJtTZFAxBqkcafARyK2vzc5tcMzqJsqig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1653355377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zoH3KAgdbfi1Tok7KeFESu/14a4yQdOodf1/lfe1Bu4=; b=nm9E3ISPX+GcYL9tPMzVF6gWr1hgrBsyHTQuX69fi0LYSE2pMYEHrLUBIqzch5ipPlB2zj jFlpnPMNTdQ8I/glhbkS0j3kQXKxnPKv3qvOT/yb4CiGVgNCBGX7Xickmz9BdCOLHSkESB EDPjt6Q/yUrANcq9TdoOBKjHl1Wi7c32dsadb1YpK3dkr+7RpD0Q08A8RYM6h5anPc8baY znhi7gEZUqpqzzH51QLE7FpRrxXJLlBOWqDcRJ8M9W17RoA2QvAb8GcIHNEg6q5Nvi/3O7 Av8L2TxpdRRr0e1HyfIqqFFnSP51IzdaDPb4H2wLXR5j1QD5K1bi1Pq20bPETA== Date: Mon, 23 May 2022 21:21:54 -0400 Message-Id: <20220524012155.48729-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-META: nq7cnaabtz8k1ox6ny4qydy5rgot8yqq X-MBO-RS-ID: 55c20fe40be9a8dcb4e Received-SPF: pass client-ip=80.241.56.151; envelope-from=antero@mailbox.org; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr 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=1653355461; 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-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zoH3KAgdbfi1Tok7KeFESu/14a4yQdOodf1/lfe1Bu4=; b=RWFIbhwvmHnm3yqoc7/7A591U36Di/+k1KPK5yKLrpZiTD4zesdc1A/CUZ9k2bqdwAaRNp UdyFNVgAXtfbNlSb75ScKxQ4ReAysZsCImgulM3PJYSG8/24IUTwW9lJiXUG6iTyaqwexQ SekP8tGEf0ykUsmXzcnyVe27pTuP3AdiuqChI8tDRzTnYX6cRBSkKTpRpuj+jsBFzqDXag J3dNQFRgFZbKRz0Z0QdFMk89uJyHFv1WnC6ACMtWlBMDVMIk8jhVNl5L9bIB1n4F0xcYVT 6WdLIwATXPjR1D2is/TrK+hwk3kDjXiU+Y+G8IzM0Ck5uXFLNO7uDganP84xaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653355461; a=rsa-sha256; cv=none; b=aNaVP8EmtNL5Di/IZmrhh/od5UTV67IRCE3D0o4m699GDx154gGrttHvAAQBND/aa1g3Es /mGQbXpFwL412idhRfh0Xvkfc92UiDU43qbnHT7xHoYa9F51XN96wQuCHASvo8NDmj13oJ ZTXeTq3Yc8l0ZDnjbc9LxEBQHf34gvsM3iBuBzu21KAI5OU8BcKmBNWx4dCTFE+d6FOoyR Sn27lFJEb6cV3fzas6GOODB0tt6l17BXMmRCXw/aHSzr580g0vbL+ZupQVWr0YYLRz9gUQ Zgj/qnoDGkKFMXMv/Ieszt/I0YcPjeO+ZMBZpQo3NUynu1lqQTWlqKh7t7uckA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ex6LTb6t; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=nm9E3ISP; 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: -3.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ex6LTb6t; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=nm9E3ISP; 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: 034243BA59 X-Spam-Score: -3.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: vUCUGKPMrJJW * gnu/packages/c.scm (qbe): New variable. --- Hare + QBE builds, tested running a Hello World program using the stdlib. gnu/packages/c.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index e14e56ad71..01fd2e9a96 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2020, 2021 Greg Hogan ;;; Copyright © 2021 David Dashyan ;;; Copyright © 2021 Foo Chuan Wei +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -1096,3 +1097,37 @@ (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 "9a3e131cf713f8619705f906caf28c5809708ad0") (revision "0")) + (package + (name "qbe") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "git://c9x.me/qbe.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04dhdm2j84h9hlqj934wh9v456v3kzh0ayxs1gncyh4inv3b41cf")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ;no test suite + #:make-flags + (list (string-append "CC=" + ,(cc-for-target)) + (string-append "DESTDIR=" + (assoc-ref %outputs "out")) + "PREFIX=") + #:phases + (modify-phases %standard-phases + (delete 'configure)))) ;no configure script + (supported-systems (list "x86_64-linux" "aarch64-linux" "riscv64-linux")) + (home-page "https://c9x.me/compile/") + (synopsis "Compiler backend written in C") + (description + "QBE aims to be a pure C embeddable backend that provides 70% of the +performance of advanced compilers in 10% of the code.") + (license license:expat)))) -- 2.36.1