From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qB5TNrOhW2CY2QAAgWs5BA (envelope-from ) for ; Wed, 24 Mar 2021 21:31:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uGcSMrOhW2AaBAAA1q6Kng (envelope-from ) for ; Wed, 24 Mar 2021 20:31:47 +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 1973C12DAA for ; Wed, 24 Mar 2021 21:31:47 +0100 (CET) Received: from localhost ([::1]:55110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPAAL-00078P-SQ for larch@yhetil.org; Wed, 24 Mar 2021 16:31:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP8Oz-0005kc-2Q for help-guix@gnu.org; Wed, 24 Mar 2021 14:38:45 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:32362) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lP8Ow-0005kE-2t for help-guix@gnu.org; Wed, 24 Mar 2021 14:38:44 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (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-201.mailbox.org (Postfix) with ESMTPS id 4F5H7J64GszQj6k for ; Wed, 24 Mar 2021 19:38:36 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dhruvin.dev; s=MBO0001; t=1616611114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=9FyC6MKszxdVFVePOPl2U3ndVSzE0FybsM0V5/r+D2E=; b=I6V84MdUMh9RyXEvHfCojGwXwjbWyhBd5VmlVf/5N17C9n8/UKVFwCdZQWyZr9jymN/uDN Rsi3Dq+CD4Ml6EOpaQQsbEziPqNh/ToPDs+wPeMelGSgDiIjNpC/vaL84YXZqyf8Ktx9fh YzvW0ViMrQf3uLXXTYjmuiWHISgf5ffD9WJjq0SjrCk8xgYdlWng57kgj4JzdLkNOmGYtM Cns8EH4ekRTPwoKMJVGb5pyqmu3XRWouaX/EN/m1O7OVpk8L+SOTCRixtlszmo0gZe421u 5l74X9ijYN98FaEK+BhR8Ee2E88GoBP0Bm6XtKMrlSzMh49sLWLXlqemdAhPDA== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id 9gJ3FpV_2fha for ; Wed, 24 Mar 2021 19:38:33 +0100 (CET) From: Dhruvin Gandhi To: help-guix@gnu.org Subject: Help with zig package Date: Thu, 25 Mar 2021 00:08:24 +0530 Message-ID: <87sg4kflcv.fsf@dhruvin.dev> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-MBO-SPAM-Probability: X-Rspamd-Score: -8.68 / 15.00 / 15.00 X-Rspamd-Queue-Id: 93BBC4F5 X-Rspamd-UID: 56a39e Received-SPF: pass client-ip=80.241.56.171; envelope-from=contact@dhruvin.dev; helo=mout-p-201.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 24 Mar 2021 16:26:37 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616617907; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9FyC6MKszxdVFVePOPl2U3ndVSzE0FybsM0V5/r+D2E=; b=BjFDTLZWtxNJeYPbVQHdymu8uecQCKCrSbveBcwd1qCMf2TVn3CDwK//ACW3MnqyHX7fzg 4rLJ09y2se31B+GlyKJj0YZa+GGVYYVAHNUbloryK0NoYcptWy3JKGrnK4z7AJy2UFseSr cAZFRa00dzjyemR3K6U3VoSfKVcKQilff3UkHimAN3zZLqSjSgGLsSGdFYhEivFcE/FLUM lsLDgpXCBCSPKWAsYwwOMc7a1J2PlJTsLqpvoJdRYoznNnyr26jBkBAtrrdY7OepNQVczh 1+QbFZV+ikUnv5vYOyBegH3MeJdFEDjG5eAwJowvIhlXiA9QyRykxYhgcaZCIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616617907; a=rsa-sha256; cv=none; b=jUIpBvZyP5VJyQS0SodPmL37wtVjvtGj7P8hYXkcjCzIwGyWGyTpncdJ+LupYcGV5Dy6Su LbAPmcigcYYOxyo2Yk670de/BINc0/xg8NT7VpvI/Mb3NDl3Qp1YcEhllT7hZS4OasQNmr d6NihWrnCzzEgNJEO7OdgzcR5KwVVPWZKJ/NydAB2/dRIOvlcdPwsuKcHRbcLxZV4NqXAH KR42c8VOdPGJV3MLwVy1RGcSD4TB6vwqs4FgNF5QbpfmJ1F7TuqaKUdqKV4sgDjc+RcO97 ete7b/NtITjRISvtk73fmXzvGFIqhDl9nNs2R1UCInJxAjZMwU3THjkP74syoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dhruvin.dev header.s=MBO0001 header.b=I6V84MdU; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.67 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dhruvin.dev header.s=MBO0001 header.b=I6V84MdU; dmarc=pass (policy=reject) header.from=dhruvin.dev; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 1973C12DAA X-Spam-Score: -3.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3lnH2P4S8LjU --=-=-= Content-Type: text/plain Hello Guix, I've been working on building latest zig compiler toolchain (0.7.1) following Simon Nielsen's work (bug#39480 for 0.5.0). The compiler builds correctly. But it fails during the install phase. It is able to copy the binary to /bin/zig but it fails while copying the libraries to /lib (this is what I understood from logs and by manual inspection). It would be great if someone can help me figure this out. Thanks! Regards, Dhruvin Gandhi --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-WIP-zig-package.patch Content-Transfer-Encoding: quoted-printable Content-Description: WIP zig package >From 59bb5d3427f7df186b4d8adc198e3b7ad1c6a69b Mon Sep 17 00:00:00 2001 From: Dhruvin Gandhi Date: Wed, 24 Mar 2021 23:41:14 +0530 Subject: [PATCH] WIP zig package --- gnu/local.mk | 2 ++ gnu/packages/zig.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 gnu/packages/zig.scm diff --git a/gnu/local.mk b/gnu/local.mk index 14d228cfa4..6b3632ea26 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -40,6 +40,7 @@ # Copyright =C2=A9 2020 Malte Frank Gerdes # Copyright =C2=A9 2020 Vinicius Monego # Copyright =C2=A9 2021 Bj=C3=B6rn H=C3=B6fling +# Copyright =C2=A9 2021 Dhruvin Gandhi # # This file is part of GNU Guix. # @@ -586,6 +587,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/xorg.scm \ %D%/packages/xfce.scm \ %D%/packages/zile.scm \ + %D%/packages/zig.scm \ %D%/packages/zwave.scm \ \ %D%/services.scm \ diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm new file mode 100644 index 0000000000..4980025f59 --- /dev/null +++ b/gnu/packages/zig.scm @@ -0,0 +1,53 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2020 Simon A. Nielsen Knights +;;; Copyright =C2=A9 2021 Dhruvin Gandhi +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages zig) + #:use-module (guix packages) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) + #:use-module (gnu packages llvm)) + +(define-public zig + (package + (name "zig") + (version "0.7.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ziglang/zig") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1z6c4ym9jmga46cw2arn7zv2drcpmrf3vw139gscxp27n7q2z5md")))) + (build-system cmake-build-system) + (arguments `(#:tests? #f)) ; TODO (zig build test) + (native-inputs + `(("llvm" ,llvm-11) + ("clang" ,clang-11) + ("lld" ,lld))) + (description + "Zig compiler toolchain") + (synopsis + "Zig is a general-purpose programming language and toolchain for +maintaining robust, optimal, and reusable software.") + (home-page "https://ziglang.org") + (license license:expat))) + --=20 2.31.0 --=-=-=--