From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YMIdH5bKEWX0uwAAG6o9tA:P1 (envelope-from ) for ; Mon, 25 Sep 2023 19:59:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YMIdH5bKEWX0uwAAG6o9tA (envelope-from ) for ; Mon, 25 Sep 2023 19:59:50 +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 5004A6193C for ; Mon, 25 Sep 2023 19:59:50 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="cZFZQy/W"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695664790; h=from:from:sender:sender: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=BCkrnQroar2FgpOW8eZz95NTBE+5aAi90fs3Mfhrt7c=; b=VOb5fEFK1JQ+Jxjx/k2d4uY0eQxuz3Sk66H9Y7aPm02u6YJYOi5FMj/GCUq7rW0WIeEw3Q DjZYnnrtEM3JieWRJcb/Hae9zBdqpBHMU4jwcHjIFFhUMre17ZwNZdv4r0DQCZyu8WJH3Z mKT1cuelpXMiFeT5hOgujohtBKyNG95xH5XJgGOtyC/Z8iHXGsfqOHNkygoLhS4wKNhPuo v7mGEI3nerwpApuVgrUgknaGVNdDcaVzJv71plG86g55v5ygpwV64IusVua5CrAmho+A/T Mn/efCILIAJ491o+j9iPVT4kfOYMERNTZfklXQtW0YbxOhGfjr1nTi3EvGIE5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695664790; a=rsa-sha256; cv=none; b=Vcn3dKfJxzn/QLDfTd5bwO1RBs2Xj2YIZudlGG/33WPJznNUjKWz23PyiDcPNYemOz9IU7 sKjvvLXK+e7s4LyT4WDSKe0Z+VAcEMDN0iX82M4pdFrS+Jd3dc0xdYEQdg3FfPwyzCXnLd SBfh1OgbNVeDoW0MR3W8XxQ8zQAm0KpDMn1M7lKznWrurn2si32W/r79PPrhQrnfx9I28r tSGGyAhDyv4+uhvgawYx32wdcA+5w+AEj0PKW3IDz//eXx0KzpsxnBzDTaKwtDXUzfUBEJ q5f/xnwwJpRuwJpWFUuL0pEu2hgmyAheP8C+cWDrXWGoaWaGERHBP/MMT01q2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="cZFZQy/W"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkprG-0003Rp-GH; Mon, 25 Sep 2023 13:58:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qkprB-000304-0E for guix-patches@gnu.org; Mon, 25 Sep 2023 13:58:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qkpr8-0002Ko-Rj for guix-patches@gnu.org; Mon, 25 Sep 2023 13:58:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qkprL-0003Wj-Ai for guix-patches@gnu.org; Mon, 25 Sep 2023 13:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66063] [PATCH v2 0/3] Resolve a circular module dependencies in embedded modules Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Sep 2023 17:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66063 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Ricardo Wurmus , 66063-done@debbugs.gnu.org, 65860-done@debbugs.gnu.org Received: via spool by 66063-done@debbugs.gnu.org id=D66063.169566473113502 (code D ref 66063); Mon, 25 Sep 2023 17:59:03 +0000 Received: (at 66063-done) by debbugs.gnu.org; 25 Sep 2023 17:58:51 +0000 Received: from localhost ([127.0.0.1]:46601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkpr9-0003Vd-1K for submit@debbugs.gnu.org; Mon, 25 Sep 2023 13:58:51 -0400 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:54405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkpr4-0003VE-8A; Mon, 25 Sep 2023 13:58:49 -0400 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-65b0dad1f98so14948776d6.0; Mon, 25 Sep 2023 10:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695664708; x=1696269508; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=BCkrnQroar2FgpOW8eZz95NTBE+5aAi90fs3Mfhrt7c=; b=cZFZQy/W2lYize5cxK4QsvC0c4P5Qp9J4UiG1SAuMJxudGZoRfzjjCQaEEQVFh25fm 5ZRkwImCSpuUBn2rQTHKCzYLcwbgJ4r6XpwraM7kuyzNeefooPb5GpadTo+Fvg+5aRJ4 8U+Qa/SaFYQRqxh3rMQda3tn4kh8Zn0IcwYvUPrNada6+skN+55C93H45qj3zF1V1VM6 /vZ3C3oLPotQpu6IK4FcWAeMaQ+QXlO/Cfqx4zqgs4nex3EBvrxgOD4nMxa0w8vWXMI3 l407xib3qMDn8+c9UGn7Ixb4oOMhWPFlH0jvgw4wwNOwoa/srG5baXHeUviVH8alcu81 VG3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695664708; x=1696269508; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BCkrnQroar2FgpOW8eZz95NTBE+5aAi90fs3Mfhrt7c=; b=fzAUAWMTFe9zMxYtX2BzgFWQdlTUTF5iYl4jQ29UGCFkH+MqIFblQpUTUjn1my1nqk FzvlGCIvJQ3XOZeN/TU3WnUvqTLHFJHYNcDskvPF3DVURT6yEG2LDyARhx7Yc+Y5e8fG rQ3cH8fZLAXqArNnn5FUIPV60p5/UvEl65W5xC61EY1FoDfw94TXxAoDRZdoitnxwAIF P9+cHrvChYg55AO+Pbm+muK3UylV2RhClbF3eYGHQxYjd5umeg7X7XNyKbGeW0wh5NGZ ZbN41pTC7mqy3K/BeB3p6rh/fAfVupYIbh4eWLte+DXYqhDdP+/LPFmZ32z11H0yamLr gUIA== X-Gm-Message-State: AOJu0YxaD/Iows8n6UbUYcVQQSO0BSWUQ2CaIj6Nh4H6vse0fxhNwcHZ h+/mvooCfxyuqJU/RfAWBek= X-Google-Smtp-Source: AGHT+IEcmZL3t/CUSDwN91lBFoiy4xAI9kcaGET0NKLdnL8QPIUHoGW+mPyaXrBpCmddX2VnIGNLxg== X-Received: by 2002:a05:6214:2f0c:b0:658:2857:ed64 with SMTP id od12-20020a0562142f0c00b006582857ed64mr7671874qvb.18.1695664707982; Mon, 25 Sep 2023 10:58:27 -0700 (PDT) Received: from hurd (dsl-10-130-229.b2b2c.ca. [72.10.130.229]) by smtp.gmail.com with ESMTPSA id b19-20020a0ccd13000000b00646e0411e8csm1268296qvm.30.2023.09.25.10.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 10:58:27 -0700 (PDT) From: Maxim Cournoyer References: <87r0n1kedj.fsf_-_@gnu.org> <8734zhv49z.fsf@gmail.com> <87o7i5glwr.fsf@gnu.org> <877coo715m.fsf@gmail.com> Date: Mon, 25 Sep 2023 13:58:26 -0400 In-Reply-To: <877coo715m.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 17 Sep 2023 20:52:53 -0400") Message-ID: <871qem2kzh.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 4.97 X-Migadu-Spam-Score: 4.97 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 5004A6193C X-TUID: tDnhBkFAfZLP Hi, Maxim Cournoyer writes: > Hi Ludovic, > > Ludovic Court=C3=A8s writes: > > [...] > >> I agree that this needs to be addressed. I wondered whether/how hard we >> should search for a different solution. > > OK. I think the current situation needs to be resolved ASAP, but longer > term I'm definitely willing to revisit our strategy when it comes to > cross compiler toolchains. > > [...] > >> BTW, another issue with the package-returning procedures: they return a >> fresh package object at each call, which defeats caching. I think you >> should be able to observe it with: >> >> GUIX_PROFILING=3Dobject-cache guix build axoloti-runtime -d --no-graf= ts >> >> The effect will be more acute on the build farms since they compute >> derivations for everything that depends on these toolchains. >> >> The solution would be to make those procedures memoizing, with =E2=80=98= mlambda=E2=80=99 >> or similar. > > I haven't tried measuring the impact, but I've use mlambda in the v2 > just sent; thanks for the suggesting it! I've now pushed this series. If we can make AVR a native target/platform in Guix, that may make things simpler/nicer, but otherwise, this is at least resolved. --=20 Thanks, Maxim