From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yCCLE0gLPWH1LQEAgWs5BA (envelope-from ) for ; Sat, 11 Sep 2021 22:02:16 +0200 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 SIg0D0gLPWE0bAAA1q6Kng (envelope-from ) for ; Sat, 11 Sep 2021 20:02:16 +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 164131ED87 for ; Sat, 11 Sep 2021 22:02:16 +0200 (CEST) Received: from localhost ([::1]:46048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mP9CY-0001il-Ow for larch@yhetil.org; Sat, 11 Sep 2021 16:02:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP9CM-0001hf-F1 for guix-patches@gnu.org; Sat, 11 Sep 2021 16:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mP9CM-0001Xb-5t for guix-patches@gnu.org; Sat, 11 Sep 2021 16:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mP9CM-0003mg-4U for guix-patches@gnu.org; Sat, 11 Sep 2021 16:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#39480] [bug#47006] [WIP PATCH v2 2/2] gnu: Add zig. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Sep 2021 20:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39480 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sarah Morgensen Cc: 47006@debbugs.gnu.org, 39480@debbugs.gnu.org, maximedevos@telenet.be, efraim@flashner.co.il Received: via spool by 39480-submit@debbugs.gnu.org id=B39480.163139050114513 (code B ref 39480); Sat, 11 Sep 2021 20:02:02 +0000 Received: (at 39480) by debbugs.gnu.org; 11 Sep 2021 20:01:41 +0000 Received: from localhost ([127.0.0.1]:41519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP9C1-0003m0-FE for submit@debbugs.gnu.org; Sat, 11 Sep 2021 16:01:41 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP9Bz-0003lh-Qz; Sat, 11 Sep 2021 16:01:40 -0400 Received: by mail-wr1-f67.google.com with SMTP id g16so7970166wrb.3; Sat, 11 Sep 2021 13:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=OmPo/XrEfhX6kYoQpAbMuszAZ4NWlifpsH76wjxc2Jw=; b=H4R9CdipOBOVN7yojGKKSNbMqYJslwPZ2hJytwPGknYVAoaao5sbwWIIK/Crg9pFUU FddSewQgNNhvl7vaGQQk/jAw41zglxCp9PE3oSojtRlWlpW5nYyCLTbaGEnQLtH8hIac iWde5qu8q+syDQJWTOOHdPV1YHh24gT+Kxy2UnE+e6bjiMlmDy/ztYPm37NsXWmW7Jja IWLe6PdRVbmrJEscGuH8rnypcbwO5X4RrbdTjdMloqECjm0BwpqrVUnjxwkyehEwJcHp qXU5drYyr0Et+1HSmVFeB0oYFAAopEsUKcuO/rpfvJ1/siGeOiGzZK+hhhpGtkMNmKbB k2gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=OmPo/XrEfhX6kYoQpAbMuszAZ4NWlifpsH76wjxc2Jw=; b=0zpg7MoyEazDvWMSzplflS9j+hP2xb+PVagpxsqhbzOu8aX9DChpRGCqYUbwMhPf0A Nqb1cnZbQld9Bqqo8DiVxYPmNW09AaQv5zL1GWo4N6HFYvDtgDmrmx5xfS1U766Bnx84 s1O5DFuOX5AJSXLAbYe2DPa7BZxZ+rgsRR918pWce70JP1+xSoHcdaK5N28noFdVIJHN 2lFgXMM1+kYmEqOss+OKx9RULQtwDeArsMgKhB92mL7P9WFXpLg/M3YoDa9cNFLoOY9H qOGwyTA7fTBmJnvHDf8Aw/vjTkpk+zwFfYI2sGzQVoRFPXUjKDPzkvcEgGmcg9ytn6dV uCnw== X-Gm-Message-State: AOAM533xLhhlyKLLUqlFb6fIWsa2fN2oGjdYedIZLct5L8TRQk1Ue0zW 8eH3hQ7B1HRePSbAPYKExyU= X-Google-Smtp-Source: ABdhPJzNXnyjN9mLWMvOH0CJ6hDXprvWQTXdWcwoJHlU6Wi3cBV6l2POOu0JHDdgcUr+NZUuUnNccQ== X-Received: by 2002:a05:6000:104e:: with SMTP id c14mr4408977wrx.130.1631390493753; Sat, 11 Sep 2021 13:01:33 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id t11sm2632890wmi.23.2021.09.11.13.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Sep 2021 13:01:32 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Sat, 11 Sep 2021 22:01:31 +0200 In-Reply-To: <86wnnmnceg.fsf@mgsn.dev> References: <0f6c5b692df8d06a0d7adddc9e5abf93894a366f.1631226695.git.liliana.prikler@gmail.com> <86wnnmnceg.fsf@mgsn.dev> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 164131ED87 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: JEyIbiONlX62 Hi Sarah, Am Samstag, den 11.09.2021, 12:24 -0700 schrieb Sarah Morgensen: > All, > > Apologies for the empty email earlier. That shows me for trying to > send from mobile! Curse those mobile applications with their small buttons amirite? :P > Liliana, > > Liliana Prikler writes: > > > I've added a patch to use explicit search paths rather than > > whatever Zig used > > before and tried fixing some (syntactic) errors with the tests, but > > was > > unsuccesful, as there appear to be failing tests in the suite > > itself. Could > > you have a look at the revised patch and check what flags you could > > add to > > the check phase to make it meaningful? > > > > Btw. I haven't checked whether my cosmetic changes to #:configure- > > flags break > > things or not. The end of the build phase puts a large amount of > > stress onto > > my system that I'd like to avoid at this hour. > > I'm still working through the tests, but I did find one issue that > has cropped up either from your patch or from the 0.7.1 -> 0.8.1 > upgrade. This is from attempting to build tetris [0] (though I had > to make a few syntax fixes, attached below, to build with 0.8.1): W.r.t. the syntax fixes, that is probably an upstream issue or perhaps an incompatibility introduced by zig itself. (Maybe already from 0.7.1 to 0.8.0?) > --8<---------------cut here---------------start------------->8--- > Zig attempted to find the path to native system libc headers by > executing this command: > cc -E -Wp,-v -xc /dev/null > error: unable to create compilation: UnableToSpawnCCompiler > --8<---------------cut here---------------end--------------->8--- It appears zig tries to execute @command{cc}. Note, that this command does not exist in Guix unless you install a symlink, so it will always fail. We might want to investigate the source of this error to check whether spawning a C compiler is indeed the right choice for what they're claiming to try or whether our hard coding already takes care of that. > No combination of ZIG_LIB_DIRS and ZIG_INCLUDE_DIRS seems to fix > it. Neither does --search-prefix. > > If I set CC=gcc, it works fine. But I think something changed such > that it now has to fall back to this method of detection. I have no > idea why. Thanks for the info. I'll let you know once I find out more.