From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4OeEEpRtT2DSbgAA0tVLHw (envelope-from ) for ; Mon, 15 Mar 2021 14:22:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0Bv8DZRtT2CcTwAAbx9fmQ (envelope-from ) for ; Mon, 15 Mar 2021 14:22:12 +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 A9F0E25993 for ; Mon, 15 Mar 2021 15:22:11 +0100 (CET) Received: from localhost ([::1]:39486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLo6k-00064z-Qp for larch@yhetil.org; 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; 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 Content-Type: text/plain; charset=UTF-8 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: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches From: =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615818131; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZdLEqfxXBSU9Kj6JkCeqSGSy/wjazZbR2O1WQcRGQCM=; b=MHmZckUcSQby3t/dsyLliXi+xJSlfmmMyk/8sHmNljcXnDJhdf1E2BeC4qSHyxwEe+AkYO nTny2Bc040M5fOEZkPRE1iDQSuk0S9Desfj0qr4M/ohBGbUcIzy0US4yH3mpSRLTswh4D5 ekQ4gEYBS+Sq6nyWBOe3QT3hcS1nXC26kAEJgvXqwizVzRTZ6RUAgaHOcviwVmn7FlUtfG Q01tDUOFVJ9/SEIkYvzad+JefBxgAeZ+gswL34pIZsluWMYGdOEoKWFW0A2eZMIbTE4au5 MrndYNXvlyp8P7rb7MgaMkjC03GOVtRBOUygGz2rKZIoRkeERSEKEVmml9fbVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615818131; a=rsa-sha256; cv=none; b=N7nZtKGTzwP1f29mOYtyVNASGa9n3lfyTTafTQDbauvuxVbz0OyXn5Cg1gxQWi0rJFUACX gDIqnAHtfc+OBk06fjgIZXtx57K+aGTEFvYuYlcjXrYaHSttW+UMLYVLxqDLvtUsa4Cp5k H0wMOgARJBhG90FEwVMGPIEgplIctQfOmyPL4Ib4RxgqvZAlgSrei76VRiZs6dbyVIRhvA 4/qJndSnCPhmae5m8oKcmFIgsvfmLCIesxwaWOWuHbECdcIGoHUhQPwYR+2aLuUjyDTJ2H /VE2G2fGlNPQ+I9mH52yw11SEHtI4Tg006d15JXSDj4XfUEH62LZrcrFdLdDtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b="bQokzQ/M"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=zaclys.net header.s=default header.b="bQokzQ/M"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A9F0E25993 X-Spam-Score: -1.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: olnTANNdAfYS 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 -- 2.30.2