From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KGccMYYexWXtvgAAqHPOHw:P1 (envelope-from ) for ; Thu, 08 Feb 2024 19:33:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id KGccMYYexWXtvgAAqHPOHw (envelope-from ) for ; Thu, 08 Feb 2024 19:33:42 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=3UPkIqky; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="l jrhjuk"; 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=none) header.from=fastmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707417222; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wLUM56lXAjT0raPDPKkm3kfIuZYulKFBEQLYRgOie5I=; b=B1c7pKacx2rnlVs29hvllL9X7uy84obCVlzH1x6sZYQfcFdKe7r0gNkZCCWSPzQe70RTha 2azaJ6KE5CSMsNy93oJQ5VeyOldsyBIX7AaQ+b9ilnakVahdIDQj1tI5r8NFlZ0rhqrHW1 Typ1BTFoVuyYX+79lcmsoiXYUTMR36Vi3ZTIbY2By84S7rFui0mhslyQoST2u1hDEuqf6z dPsky/kcFs0mapLb3a2Rt+4o6ilt0Lm9VZyWrVi3G2Bu5xjnVum9oVZDcuGpgKFSDC9Wl2 rqd/vDCkEJZBuZSz6xaTxUrubSneUASuwJTsRMbYPxnnvvTQw8ZPJMfFJ9XR+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=3UPkIqky; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="l jrhjuk"; 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=none) header.from=fastmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707417222; a=rsa-sha256; cv=none; b=mI2aCJRtxW0TDR+rrj+Pku1TEUGQiQFb2JodqLiiJ2dHILK0eTD1jmTWklDfOK1Rf4i3tV zS4n8eFRu00nYnhofGJhBYYP5LtuU1RXFgK9XqiWve6utEHCWZZU7K5Ix5aeVQcgBzkqmn NNqT1awRFZAogFLcGYDlKfJHFh3AK3sLq4dp8GJqBTWV/J4trWe7Sb4jIQJghmn4cCATWS uD2oOrMwVoRUp3WwzqVknaFTrVlOtC8Mi9hsA9FEAX8tcVP5Jhthtg2r0U6hen9GayakGr kl97BS0E/4WW5YhyBUY6szGK2/HkEGsUatjoUOfVXkZIghFBIcq6XGmWxpefew== 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 A4AA4412FE for ; Thu, 8 Feb 2024 19:33:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY9D5-0002vu-Un; Thu, 08 Feb 2024 13:33:19 -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 1rY9D4-0002vj-CG for help-guix@gnu.org; Thu, 08 Feb 2024 13:33:18 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rY9D2-0002Fu-Dt for help-guix@gnu.org; Thu, 08 Feb 2024 13:33:18 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4DBC25C015C for ; Thu, 8 Feb 2024 13:33:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 08 Feb 2024 13:33:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1707417191; x=1707503591; bh=wLUM56lXAjT0raPDPKkm3kfIuZYulKFBEQLYRgOie5I=; b= 3UPkIqkyZb6SQTNmKq2fYCoZlfrCz8v8Snhuhl6thTOVu1Br9LUb+P6qSOdDPG1O rz9hovwh3JkWhVUpJnCja4lGiIceq1AqB/uwRkN8Vdz7AIUnFkf4jy7/BjPKVtNB hZuIUnApDkJMPUUXp3MRvijWPjvNPNboI3E0fkiXIUbFtaNvnBf4D3oq4k+rS47y pnEU87N9Im4zsUTdWWRwIx2jSwHItW6Vm/jXJLy7O+50rgysNrVpjI0BWwHVIMRy BiJb7/JgV17fWjJOPgkY0E0RafHftpYxnsg5qnMOPi8oprK2Guz6Q6QDpKKxBW+1 pbmdXD0i3Z7/ZUu4iV8Hhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1707417191; x= 1707503591; bh=wLUM56lXAjT0raPDPKkm3kfIuZYulKFBEQLYRgOie5I=; b=l jrhjuknZBqvCYqjKBnLzyFncM2WHeJb5JkM7FWOAZN6IZ86EA4sBvQadLU/GJOpL eP1fVRA7c9sdlL5H3Y7tIAtTOV/uFJSYLd87hM2r2GghvgXsUiIO7xOZloo1GgKK obvwBpLlimB+zqmcAr3j5b4e8/d0jdiAmjTL5wr6cYeg1nOt58N/IIefEvrmtNeT LRGpsOKaIMiEa0REX2tHw1UK8+ZLmgUkcWrbl9hZuHegaU+lGd49FHs7PnXNqT2+ yFGcfumrXt0yOZkHTLEzas1qJ+hVirItquFezJw3Frq9m1/JdlU9ye7VZ/LMPgG7 EENnsCwih65TZ9ND4qSKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtdeggdduudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtvdejnecuhfhrohhmpeflvghsshgvucfoihhllhifohhougcuoehjvghsshgvpghm sehfrghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhephefguedvveevfeevve ehkedtudduudeiteegveetteefieduveevtdehhefgudfhnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhgvshhsvggpmhesfhgrshhtmhgrih hlrdgtohhm X-ME-Proxy: Feedback-ID: i57f947b1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 8 Feb 2024 13:33:10 -0500 (EST) Message-ID: Date: Thu, 8 Feb 2024 13:33:09 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Help with channel build system and package Content-Language: en-US To: help-guix@gnu.org References: <68237c05-3c30-4d36-b733-6251f168ad9e@millwood.earth> <87v86zhbj0.fsf@zancanaro.id.au> <77fd3fdc-d1cf-4abc-a9fd-a981c17510b0@millwood.earth> <3587568.aeNJFYEL58@akashi> From: Jesse Millwood In-Reply-To: <3587568.aeNJFYEL58@akashi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.27; envelope-from=jesse_m@fastmail.com; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.84 X-Migadu-Queue-Id: A4AA4412FE X-Spam-Score: -10.84 X-Migadu-Scanner: mx11.migadu.com X-TUID: OkVCCtbZ43Dy Thanks for the response Marek On 2/8/24 12:00, Marek Paśnikowski wrote: > 08.02.2024 15:32:44 CET Jesse: >> Thanks for taking a look Carlo! >> >> On 2/7/24 22:37, Carlo Zancanaro wrote: >>> Hi Jesse, >>> >>> I know very little about what you're trying to do, but there's one thing >>> that looked wrong to me: >>> >>> On Wed, Feb 07 2024, Jesse wrote: >>>> ... >>>> >>>> (build-system crosstool-ng) >>>> >>>> ... >>> This isn't a build system, right? It's just the package? I think you may >>> want crosstool-ng-build-system here. >> However, now I get this: >> >> guix build -v3 -L embedded-dev ct-ng-riscv64-unknown-elf >> guix build: warning: invalid argument list >> guix build: warning: source expression failed to match any pattern >> error: crosstool-ng-build-system: unbound variable >> hint: Did you forget `(use-modules (embedded-dev build-system >> crosstool-ng))'? >> >> guix build: error: ct-ng-riscv64-unknown-elf: unknown package >> >> This confuses me a bit because it says that it is an unbound variable >> but it is defined in embedded-dev/build-system/crosstool-ng.scm. I >> believe I should be importing this module with the "#:use-module >> (embedded-dev build-system crosstool-ng)" line in the package file. The >> symbol should be exported with: > I am just starting to understand how packaging works, but one thing that > stands out to me is the #:sample keyword in arguments of the *riscv64* package > definition. Where is it defined? Is the source correctly imported? Ha, I am just trying to understand how packaging works too (or at least I think I am, lol). That's a good catch and suggestion. I thought that by doing this in build-system/crosstool-ng.scm: (define* (crosstool-ng-build name inputs                              #:key (sample "unknown")                              (test-target "test")                              (tests? #t)                              (phases '%standard-phases)                              (outputs '("out"))                              (search-paths '())                              (system (%current-system))                              (guile #f)                              (imported-modules %crosstool-ng-build-system-modules)                              (modules '((guix build crosstool-ng-build-system)                                         (guix build utils)))                              ) That the #:key (sample "unknown") was defining that as a keyword argument. It was a hold over from an idea I had that I kind of abandoned but didn't think it was causing any issues. I just removed that and the arguments line from the packages. Now I get two invalid argument list errors: guix build -v3 -L embedded-dev ct-ng-riscv64-unknown-elf guix build: warning: invalid argument list guix build: warning: invalid argument list error: crosstool-ng-build-system: unbound variable hint: Did you forget `(use-modules (embedded-dev build-system crosstool-ng))'? guix build: error: ct-ng-riscv64-unknown-elf: unknown package I guess I was thinking that it was saying that my invocation of the guix build command had an invalid argument given. I hadn't thought that it was talking about an argument given to one of the functions. That gives me some where to start looking at least. > > My hypothesis is that guix, upon loading the module in question: > 1. fails to parse the #:sample keyword (invalid argument list warning) > 2. fails to parse the package definition due to the above (pattern failure) > 3. fails to find the package definition due to the above (unbound variable) > > This problem is educational to me, so give me the benefit of the doubt. That's a sound hypothesis. It gives me a good idea of where to look, thanks! Do you know of any way to increase the verbosity of error messages or logs to help debug where things are going awry? > > Sincerely, > > Marek Paśnikowski Thanks, Jesse