From patchwork Mon Mar 15 14:20:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?L=C3=A9o_Le_Bouter?= X-Patchwork-Id: 17 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 6F2A127BC54; Mon, 15 Mar 2021 14:22:11 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, 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 ESMTPS id 2256827BC52 for ; Mon, 15 Mar 2021 14:22:11 +0000 (GMT) Received: from localhost ([::1]:39486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLo6k-00064z-2B for patchwork@mira.cbaines.net; Mon, 15 Mar 2021 10:22:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLo6c-00063D-E7 for guix-patches@gnu.org; Mon, 15 Mar 2021 10:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52995) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLo6c-0002aF-5h for guix-patches@gnu.org; Mon, 15 Mar 2021 10:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLo6c-0002QV-0L for guix-patches@gnu.org; Mon, 15 Mar 2021 10:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47006] [PATCH v2 0/1] gnu: Add zig. References: <20210308131155.7441-1-leo.prikler@student.tugraz.at> In-Reply-To: <20210308131155.7441-1-leo.prikler@student.tugraz.at> Resent-From: =?utf-8?q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Mar 2021 14:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47006 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47006@debbugs.gnu.org Cc: =?utf-8?q?L=C3=A9o?= Le Bouter Received: via spool by 47006-submit@debbugs.gnu.org id=B47006.16158180829263 (code B ref 47006); Mon, 15 Mar 2021 14:22:01 +0000 Received: (at 47006) by debbugs.gnu.org; 15 Mar 2021 14:21:22 +0000 Received: from localhost ([127.0.0.1]:36306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLo5x-0002PF-QT for submit@debbugs.gnu.org; Mon, 15 Mar 2021 10:21:22 -0400 Received: from mail.zaclys.net ([178.33.93.72]:50031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLo5s-0002Ox-Un for 47006@debbugs.gnu.org; Mon, 15 Mar 2021 10:21:20 -0400 Received: from localhost.localdomain (82-64-145-38.subs.proxad.net [82.64.145.38]) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 12FEL8na026359 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 15 Mar 2021 15:21:09 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12FEL8na026359 Authentication-Results: mail.zaclys.net; dmarc=fail (p=reject dis=none) header.from=zaclys.net Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1615818069; bh=ZdLEqfxXBSU9Kj6JkCeqSGSy/wjazZbR2O1WQcRGQCM=; h=From:To:Cc:Subject:Date:From; b=bQokzQ/MSu8BuQGLnTTVtt4EVmWor5LR2tlvr3fxReCjuYXgWaM0pn1wnVorweA9V YNQU4ifXlgToVllSUDKWxnGQY+zKsIN6ApQ+iG7iYQzNt0fNFMUvfQBaTI7Izes1TQ PqKK+DTVOojiXMsUvCvbXT3om1Jky0kIgktMtKuU= Date: Mon, 15 Mar 2021 15:20:44 +0100 Message-Id: <20210315142045.25392-1-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: =?utf-8?q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?utf-8?q?L=C3=A9o?= Le Bouter via Guix-patches X-Patchwork-Original-From: =?utf-8?q?L=C3=A9o?= Le Bouter via Guix-patches via From: =?utf-8?q?L=C3=A9o_Le_Bouter?= X-getmail-retrieved-from-mailbox: Patches I attempted to add tests, Zig has an unconventional way of requiring tests to be run after installation so I added a 'check phase after the 'install phase which works but then after lots of tests succeeded there is a FileNotFound error cause by some 'test' binary failing to run. I found out by running: $ ./pre-inst-env guix build --keep-failed zig $ cd /tmp/guix-build-zig-0.7.1.drv-0/source $ env -i $(which bash) $ source ../environment-variables $ /run/current-system/profile/bin/strace -f -e trace=file /gnu/store/1cmjgdiim452bqkzgp53d0kw4fi4gfar-zig-0.7.1/bin/zig build test ... [pid 25896] execve("/tmp/guix-build-zig-0.7.1.drv-0/source/zig-cache/o/25718f52ae311b1dafdba7de4a338f12/test", ["/tmp/guix-build-zig-0.7.1.drv-0/"...], 0x4e42bb0 /* 27 vars */) = -1 ENOENT (No such file or directory) [pid 25896] +++ exited with 1 +++ [pid 25885] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25896, si_uid=1000, si_status=1, si_utime=0, si_stime=0} --- error: FileNotFound ... $ ldd /tmp/guix-build-zig-0.7.1.drv-0/source/zig-cache/o/25718f52ae311b1dafdba7de4a338f12/test linux-vdso.so.1 (0x00007ffd22d1d000) libc.so.6 => /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libc.so.6 (0x00007fea82162000) libm.so.6 => /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libm.so.6 (0x00007fea82021000) libpthread.so.0 => /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libpthread.so.0 (0x00007fea82000000) libdl.so.2 => /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libdl.so.2 (0x00007fea81ffb000) librt.so.1 => /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/librt.so.1 (0x00007fea81ff1000) /lib64/ld-linux-x86-64.so.2 => /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/ld-linux-x86-64.so.2 (0x00007fea82321000) libutil.so.1 => /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libutil.so.1 (0x00007fea81fec000) $ file /tmp/guix-build-zig-0.7.1.drv-0/source/zig-cache/o/25718f52ae311b1dafdba7de4a338f12/test /tmp/guix-build-zig-0.7.1.drv-0/source/zig-cache/o/25718f52ae311b1dafdba7de4a338f12/test: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.0.0, with debug_info, not stripped The issue here is that this binary should work fine already according to the output of ldd and file. We would need a way to get verbose debugging errors of execve somehow. Leo Prikler (1): gnu: Add zig. gnu/local.mk | 1 + gnu/packages/zig.scm | 76 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 gnu/packages/zig.scm