From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8OyVHv/r6mUqhQAAqHPOHw:P1 (envelope-from ) for ; Fri, 08 Mar 2024 11:44:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8OyVHv/r6mUqhQAAqHPOHw (envelope-from ) for ; Fri, 08 Mar 2024 11:44:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=hP5qyJbJ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709894655; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature:autocrypt:autocrypt; bh=WX7jXwR4oXly/cBKk33Sw4E25p4lQtDTFW8b+pqq3Ug=; b=KEAa1zXtaOAhr/C9yM0r0OPWFHxRBFv1PJKXQ2KtZpFCq4g93Dqp+sr5xPCbex3U8g8WAz z/K06VL3094dx9HxiMiEVTv3+paMQnsruCACYzlmxnau3QaOwgJNf/uTIfYoaiwhiRXljB Ww3QBuyb9fZDi4y9MQm+WueXW/O0QJiUD0X07zZchy5UtohmC0wyaX4qoT8paRqtVzZoGA qWjRfF8Vq5VHOlfhvhKMmoOyYMH765B2xxJgamB4Qj29+eiSvp+LzuCVwY+6X85/lOL7Ja AUTOsMHCsmks9Tg/unvp5dtQVwPFjfc+MsmMccInN/Isuhr+PR7teLX6s36yHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=hP5qyJbJ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709894655; a=rsa-sha256; cv=none; b=T88Yh4JH9Aq7uSojp7tQON/ttwLkNcaJGK8vo4MKbbyJVWvUADrpUhJrgF7+Gz8LvDHTqb mfYAYB0XtypCexYwLZ8s7arswtC12J1LMRpfdrNIRM/PWZj/V9A8/3w8TPl9aANsmtSq8c iIowrpvU71/hvr0Hw6Q5ru0BZF2iAOCw4n9OD1THZZ21viKJcg8muY+cn+ndtAOzNyKu0Y IrvlPVUHjpEOmOPi+tbsPsKuAxfSRGpLIfLIuliiQ8VhQKXMB8KccUE1LCMuHZiS7PT12V lZw5oNcVMr6xBpVpW/cfNLo5WiqA79BaKvRTbr3CeZdI8vzLMjlcOmzOOjFUhw== 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 2DAE9316B3 for ; Fri, 8 Mar 2024 11:44:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riXhP-0000LV-JE; Fri, 08 Mar 2024 05:43:35 -0500 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 1riXhO-0000LE-38 for help-guix@gnu.org; Fri, 08 Mar 2024 05:43:34 -0500 Received: from [81.190.248.246] (helo=marekpasnikowski.pl) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riXhI-0002jq-Hv for help-guix@gnu.org; Fri, 08 Mar 2024 05:43:33 -0500 Received: from localhost (localhost.lan [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id d8e8fa11 for ; Fri, 8 Mar 2024 10:43:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=marekpasnikowski.pl; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=dkim; bh=yFP4PRHxG1DO6J/E1xrnB2mh4 iKFw3TFj1R6Sjc48FY=; b=hP5qyJbJDpki+189ddVbUuE2P5iHmVOCQCaKHO95w 2HhgQsVlp/FYY+iGJl+r+zJnKs9M5TYvXV3NxHWDkdZB7IejB+Vw5Q24HtTFOxst 6rhbprMHcp1gTTSBs4vgFL7CRfzk7i1mMEspyS7RFcwkMY1vEEWg29Obvn1uN26H yOmsDMTe0ALLoW1/ndoiYLKHk/FXnaRsQw38NMzntuMX5z+K5I/bavLZWZTZbvAz 2bZaujKSuMq0C1/Hecy8aBCXt6w4/v7a3On3NeyJyZWwVvKDv6A/KCbmIzDKzt8r Qx1iL4SBPzfAokAFoQ+27NVHK8pcFvKayEQts24+cpRtQ== Received: by localhost (OpenSMTPD) with ESMTPSA id a24d6641 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 8 Mar 2024 10:43:21 +0000 (UTC) From: Marek =?utf-8?B?UGHFm25pa293c2tp?= To: help-guix@gnu.org Subject: Re: Help with channel build system and package Date: Fri, 08 Mar 2024 11:43:17 +0100 Message-ID: <3564583.iIbC2pHGDl@akashi> In-Reply-To: References: <68237c05-3c30-4d36-b733-6251f168ad9e@millwood.earth> <71333165-cb1a-40b2-aee0-70eb68ded67a@millwood.earth> MIME-Version: 1.0 Autocryp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CJrUjZ7r QBBorq4dMDKCsqErlaD+DjaPsOIXYrT09HjEuuf+kyowrUSpZDqnBb7hspU1pEot9/b6E/9EVN1 DbW+ThU2sRD+KdvVJ9rYwG2k4Iak4CZJe1uICIMMultV42o7OCdIF5Ufi0Qhn0enZjdfjPIMZOV 3GIhRBABEBAAGJAjYEGAEIACAWIQRZDlAP450ms+YLdDttgbEgdxGJnwUCZYNtNAIbDAAKCRBtg bEgdxGJn7jbEADgK37EvVEK+7nBQR/5sB+gahxfP1zCAVlInb9ipLhbnB7WsckBaoAk9r01VDz+ jh4GZjWiYVj3rT3SfpwoYp61ciZMBGnWFrnd6Ibdd82pqAlrd6jOlZUVaFg5daQfUE/419hSiRL CBOFt0vIvHSUPfTJVrWMWgvBaztAvbuJhTARnVvg/lAzA6oZBluxvIgidM+ubRSuarE9f1QqMZN bGmd+hi/S13Gs2k9CLxrKBgVI/XzRNgvI6MA1RWtewH8J0J0h+8l/Fq3J4uYXKd2UhnfufAHjn2 YpQ1zMfDdHFVofL29eFhVbR8V2MlT2zRpcdcX40myoqmKnFra/kLZjLA45QwWmGHv4E8Uvh/BTm T06lmxz96vE5Ij+tAxwUBvMbcZC8B0c9q/FquNhdvqnVCT4lQCb8Rd8hmLe9dyjyo6w52NglAia LB6lExx0fftTPlLwyp1PgIkxawWhDTeZM749P37LY2bvHKKmjiAfO3Tydr6CF3LbLpYT3CdQqql 2l045luGSmB2iU8j0nq/v2NMCz/4CjZoK4wUEQ+3TnBnrHtmMCCKSBK3LY6fmmifFEMQUxcAe0A aJU58sMJDnBdvPD5UgtybQHsNHwfBs4WOeUoNns8yCUgXcdTQRFpdvOG8GawvvS+Zp7qmcMV+r/ /UDUeeYvAnCadFzZz2+1Ew== Content-Type: multipart/signed; boundary="nextPart9259757.CDJkKcVGEf"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 81.190.248.246 (failed) Received-SPF: pass client-ip=81.190.248.246; envelope-from=marek@marekpasnikowski.pl; helo=marekpasnikowski.pl X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_SORBS_DUL=0.001, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.08 X-Spam-Score: -9.08 X-Migadu-Queue-Id: 2DAE9316B3 X-TUID: oVzdcqP899uO --nextPart9259757.CDJkKcVGEf Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Marek =?utf-8?B?UGHFm25pa293c2tp?= To: help-guix@gnu.org Subject: Re: Help with channel build system and package Date: Fri, 08 Mar 2024 11:43:17 +0100 Message-ID: <3564583.iIbC2pHGDl@akashi> In-Reply-To: MIME-Version: 1.0 08.03.2024 03:35:11 CET Jesse Millwood: > I'm still trying to get this to work. I tracked some things I forgot and > now have my channel hosted at: > https://codeberg.org/moonling/guix-embedded-dev >=20 > When I try to build my toolchain package I get this: >=20 > =E2=9E=9C guix build -v 4 -L guix-embedded-dev ct-ng-riscv64-unknown-elf > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% > substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... > 100.0% > The following derivation will be built: > /gnu/store/wm1jba8npfb9jiqsbzd50gz4c89n3gjm-ct-ng-riscv64-unknown-elf-1.2= 6.0 > .drv building > /gnu/store/wm1jba8npfb9jiqsbzd50gz4c89n3gjm-ct-ng-riscv64-unknown-elf-1.2= 6.0 > .drv... Backtrace: > 3 (primitive-load "/gnu/store/kghq1xz3wyb509944y9jd8vhy0l?") > In ice-9/eval.scm: > 191:27 2 (_ #f) > 223:20 1 (proc #) > In unknown file: > 0 (%resolve-variable (7 . gexp) #) >=20 > ERROR: In procedure %resolve-variable: > Unbound variable: gexp > builder for > `/gnu/store/wm1jba8npfb9jiqsbzd50gz4c89n3gjm-ct-ng-riscv64-unknown-elf-1.= 26. > 0.drv' failed with exit code 1 > build of > /gnu/store/wm1jba8npfb9jiqsbzd50gz4c89n3gjm-ct-ng-riscv64-unknown-elf-1.2= 6.0 > .drv failed > View build log at > '/var/log/guix/drvs/wm/1jba8npfb9jiqsbzd50gz4c89n3gjm-ct-ng-riscv64-unkno= wn- > elf-1.26.0.drv.gz'. guix build: error: build of > `/gnu/store/wm1jba8npfb9jiqsbzd50gz4c89n3gjm-ct-ng-riscv64-unknown-elf-1.= 26. > 0.drv' failed >=20 >=20 > It seems the issue here is an unbound variable "gexp". I'm a little > confused about this because I have #:use-module (guix gexp) included in > my package and build-system/crosstool-ng.scm files. The backtrace is a > little hard to follow. I am self-learning Scheme and yet confident in my skills, so take what I am= =20 about to write with a dose of healthy scepticism. 1. From the error message alone, I do not know whether the unresolved varia= ble=20 is actually in the crosstool-ng package file, or anywhere else. 2. "gexp" or its alias "#~" do not occur in the body of the package module.= =20 However, the module does depend, among others that I trust to be correct, o= n=20 the crosstool-ng build system. There is a potential for the unresolved=20 variable to live there. 3. Upon opening the build-system file, I was quickly drawn to the nested ge= xp=20 in the definition of build procedure. It took me some reading of the=20 documentation to somewhat understand what the #$@(sexp-gexp modules) form i= s. =20 My current understanding is that it brings an externally defined list of=20 modules. 4. The (crosstool-ng-build name inputs _) definition does contain what appe= ars=20 to be a "modules" binding to a list of modules. That list does NOT contain= =20 (guix gexp), and this in turn makes #~(crosstool-ng-build _) form unreadabl= e=20 to the interpreter. Do mind that at this point the interpreter is not runn= ing=20 inside the build-system file =E2=80=94 it is working on a staged code of #~= (begin _). 5. My proposed solution is to include (guix gexp) in the (define* (crosstoo= l- ng-build name inputs _ (modules)) form. I have tested the change at the la= st=20 minute =E2=80=94 guix no longer complains about unresolved variables, but t= here is a=20 new error about "no code for module (guix gexp)". More work needs to be pu= t=20 into the code overall. PS: I would appreciate it if someone who feels confident in their Scheme=20 knowledge could grade my line of reasoning. This is my first ever attempt = to=20 debug completely foreign code. --nextPart9259757.CDJkKcVGEf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEWQ5QD+OdJrPmC3Q7bYGxIHcRiZ8FAmXq68UACgkQbYGxIHcR iZ/q0Q//buUeJqL1CQ4UF6cpTgVCLTekdxpeyLZTISTx7x7ATgOnwFmNWySAZBQY /ng+LnTacZlGxSRh9wKod99Q/e9uVifRAh4PW/TP13arfeEj0DJahclyjyo7IINe JamI/e8h0cQYRJZQA1WQNkLLZV5nSBqeTdFBoOd9Rp5LwxZaYfi98prMrxHgyYgf P9pAs8bJYLQdrqt31mqDWschg+GwNnE9L9gvTX2fztCpCdnm5KPkDjnR13F1wSyH zwnHbfgXitxPQDy+RUBNHjUBhxAdiUXQ+7cKdFpvDjdTW4x9NWhYoI39hvEckdDc zy6Gtejiucbn6oZzc1I4OTC4oOXHlss6JaHu7BOLmzWT6jtsJA/je3O3V0Cg3L5l SHHq4spZ5NezPihB1aHnnHt6LlO8Iyxh6xoQQUAHndhVKwaOEeE2IlxF3Hx88cK7 mBw0I9uTxX/qBsxIb1qUY1AdLJNHElnKPKfJA14GZdTOnqBuuIGlKyVO2kK48gjM 6JFLyRPMc6sG0j1nupZbe0g7znnQh/gp1WG0oruzby+G/ZuhkJ0ScvkQz539jX5j /RmYVNBCCJnWMCFPY4Haamt3XnUZO+m2VAgMBBw7j6tt7+cd/Pg7abfajft7+Orq gPAwMxh3e8pPmKW2p4DWjTTRxbqqZGNQb0vDxePDDiEkc2hqrBA= =wpFd -----END PGP SIGNATURE----- --nextPart9259757.CDJkKcVGEf--