From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4GegA30QzmUsnQAA62LTzQ:P1 (envelope-from ) for ; Thu, 15 Feb 2024 14:24:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4GegA30QzmUsnQAA62LTzQ (envelope-from ) for ; Thu, 15 Feb 2024 14:24:13 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=millwood.earth header.s=fm1 header.b=Mz6RcOUl; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=F7y1yoyw; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708003453; 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=ukgCLNTMnDG1D5Ol2MgrOz9joeSyBpIAnyQL7J4/WOo=; b=Cexo0lxFyMTrjP6eo3rYaFhdZpayF1FtQTkkYg8vcva/i34WlHsn1F93BHX7gnc84xPIwz CfcQl0hzF1I/5dKYXMt+azvIgqPGgkUHAuOxU0BH9VO2MpkRyWjcsQXBehk1qbSk4QTYrr NJF5kVNaZ/1jyR2ylOxGHaCWBCM3bdhxGvUx/NoX3V0EjFf4yyvTquP5+OzZhiP0vh3fi0 vCyI2IHoTtDEQqBpJBMO4LRTW3x8LkMGyQ02jHXchY5saSPnQBHUgKb5Uw+ZOMdIHQaZOP X2nUiw4uqylebQx+0+4f+z5ggNvRnbnNej0jV6dg6scDEuiAr+Ov6LCZPFPMFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=millwood.earth header.s=fm1 header.b=Mz6RcOUl; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b=F7y1yoyw; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708003453; a=rsa-sha256; cv=none; b=nxu9oDnT349l3B75OHwge2VghOsdId+Hn4mCiTIwX+bhbOCzaxhxY1u7YTfZd50wuZsbDF Bsde7GwR7raqR7wrTF3mxYNec3Y4oe8QsRI3Liv9aNv8iTIHzAtgJjPYLbhIhB9oJwS7WK P91dF9/nmhlrvgQ6b55mIQ576IZxO1CxXYXsbnA7dkWeETYGAqxPKByAeG/JEZKY+gWNcE 5tcv3MTmcOz0z1wfY0wgmu2XlZXfy/ZWmjF7Hwpvc3RBU6tQCZd1vLbRMzNQRtLf/aa7Da s6KGuchhnsUzFcr5vpvQsdcNqloRqHS6mZTosFZ6480TAcLut3cIgv5iNbsr1Q== 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 4A2AE659B1 for ; Thu, 15 Feb 2024 14:24:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rabiQ-0000nh-JQ; Thu, 15 Feb 2024 08:23:50 -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 1rabiO-0000my-UH for help-guix@gnu.org; Thu, 15 Feb 2024 08:23:48 -0500 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rabiI-0003iy-4f for help-guix@gnu.org; Thu, 15 Feb 2024 08:23:48 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 9864311400AB for ; Thu, 15 Feb 2024 08:23:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 15 Feb 2024 08:23:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=millwood.earth; h=cc: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=fm1; t=1708003419; x=1708089819; bh=tLrheYlhDJ y0gdtEOwv8jLth6V4QpNJsWvyJr+cBw9A=; b=Mz6RcOUlK9ZVPpb22/9D+K3d5Q r0xzvxw4ZBj/SoAVJ998bzKIPC/VIfLUMeqcZO+q6UpyvPNX22uLEwxw9LIaFxfz pYwQTA1HHDHNPfJXMj2mD3dm3OH/ZAr+7gr9hcv7ecGvaZ5jutAzMOgaexOG7OKg JaVBOHakYlcqaBYRQDkh1ksAxmL1VXWZDuoXrUuzQC8Wm5Les+SIAwPVaMr6lfIp PYn0xJThYYbw+Wng4tSJnvfzRO29Lt1FkN7g+K6iv8VrFUr7X07ibEBdJEiT/DPC T3xKJS7A3L1t92tIGxaUpmAh5MPKIO3LHH0lF7iPlkLtKVPaYJ2bbwuzin/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= fm1; t=1708003419; x=1708089819; bh=tLrheYlhDJy0gdtEOwv8jLth6V4Q pNJsWvyJr+cBw9A=; b=F7y1yoywQSWFeemkVVgL4RzYmYNxmpV30PLxOFa9w99D aIyo9TGUT6iHO8kB7vwQT2q3hHdl46mtPATZ2sN0AvCkz4/QAdLe2iGuRyVMgIut R/s0s5fV4fdeh4RXjTQpNYbGRoVn9Aq3voWHhWQUCO0aogVtfG6Bi++0jJfw5175 djmtFtcLaPp9mQnHPdrN/RNMdHl+hB7W7tC+Q0RNiLvHzFiHx/4+ciucTTIJvXUD /7r8IGZIbCrRn4Z81TZM2U948ppJJfvDEB7kfrGyZbgFqYC4UKNhcfwhdNlZu3Nn /G/eNXvZbdGKuxBrC1CYq+Z1MzTfWwNhtY/WW8pEBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddtgdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderre dtvdejnecuhfhrohhmpeflvghsshgvuceouggvvhesmhhilhhlfihoohgurdgvrghrthhh qeenucggtffrrghtthgvrhhnpeehleefgedufeeitdffuefgudeuieeuvefhieduhedvve ehtdfgveeiiedtudduffenucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguvghvsehmihhllhifohhoug drvggrrhhthh X-ME-Proxy: Feedback-ID: idd094634:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 15 Feb 2024 08:23:39 -0500 (EST) Message-ID: <71333165-cb1a-40b2-aee0-70eb68ded67a@millwood.earth> Date: Thu, 15 Feb 2024 08:23:37 -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> <3587568.aeNJFYEL58@akashi> <3091283.mvXUDI8C0e@akashi> From: Jesse In-Reply-To: <3091283.mvXUDI8C0e@akashi> Received-SPF: pass client-ip=103.168.172.155; envelope-from=dev@millwood.earth; helo=fhigh4-smtp.messagingengine.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: -2.56 X-Spam-Score: -2.56 X-Migadu-Queue-Id: 4A2AE659B1 X-Migadu-Scanner: mx13.migadu.com X-TUID: xqEggk/CjekG > About the warnings of invalid argument list: comment out the argument lists in > the toolchain packages (I do not remember fully the names, I do not have acces > to the big computer right now for easy reference). See how the change effects > the build. > > I learned a lot by intentionally breaking code and reading the errors. > I ended up trying that, removing the arguments from the package, but I did not get any change in the output. One thing I did try is trying to build with the repl. I made this script, named build-repl.scm: (use-modules  (guix store)  (guix derivations)  (guix packages)  ;;(embedded-dev packages)  ) (define (build-packages packages)   (with-store store     (let ((builds (map (lambda (package)                          (package-derivation store package))                        packages)))       (build-derivations store builds)))) (define (build-package package)   (build-packages (list package))) Which i got from here: https://lists.gnu.org/archive/html/help-guix/2020-06/msg00173.html I don't seem to be able to use my channel here for some reason but I think I got around that later. For context, this is my directory layout: embedded-dev-chan ├── build-repl.scm ├── .guix-channel └── embedded-dev     ├── build     │   └── crosstool-ng-build-system.scm     ├── build-system     │   └── crosstool-ng.scm     └── packages         └── crosstool-ng.scm My understanding is that by adding embedded-dev-chan to the load path I should be able to use the guile files inside with something like (use-modules embedded-dev packages crosstool-ng). I invoked the repl: guix repl -L /home/jesse/Code/embedded-dev-chan Then I loaded the "build-repl.scm" script and tried to build my package: scheme@(guix-user)> ,load /home/jesse/Code/embedded-dev-chan/build-repl.scm scheme@(guix-user) [2]> (use-modules (embedded-dev packages crosstool-ng)) While compiling expression: Syntax error: unknown location: lambda*: invalid argument list in subform ((phases (quote %standard-phases)) (outputs (quote ("out"))) (search-paths (quote ())) (system (%current-system)) (guile #f) (imported-modules %crosstool-ng-build-system-modules) (modules (quote ((embedded-dev build crosstool-ng-build-system) (guix build utils))))) of (name inputs (phases (quote %standard-phases)) (outputs (quote ("out"))) (search-paths (quote ())) (system (%current-system)) (guile #f) (imported-modules %crosstool-ng-build-system-modules) (modules (quote ((embedded-dev build crosstool-ng-build-system) (guix build utils))))) This seems like it is giving me a little more to go off of. I pretified the output a bit: ((phases   (quote %standard-phases))  (outputs (quote ("out")))  (search-paths (quote ()))  (system (%current-system))  (guile #f)  (imported-modules %crosstool-ng-build-system-modules)  (modules   (quote ((embedded-dev build crosstool-ng-build-system)           (guix build utils))))) of (name  inputs  (phases (quote %standard-phases))  (outputs (quote ("out")))  (search-paths (quote ()))  (system (%current-system))  (guile #f)  (imported-modules %crosstool-ng-build-system-modules)  (modules (quote ((embedded-dev build crosstool-ng-build-system)                   (guix build utils))))) I'm not quite sure what this is trying to tell me. It seems like it is an issue around here in embedded-dev/build-system/crosstool-ng.scm: (define* (crosstool-ng-build name inputs                              (phases '%standard-phases)                              (outputs '("out"))                              (search-paths '())                              (system (%current-system))                              (guile #f)                              (imported-modules %crosstool-ng-build-system-modules)                              (modules '((embedded-dev build crosstool-ng-build-system)                                         (guix build utils)))                              )   "Build Crosstool-ng toolchain"   (define build     #~(begin         (use-modules #$@(sexp->gexp modules))         #$(with-build-variables inputs outputs             #~(crosstool-ng-build #:name #$name                                   #:source #+source                                   #:system #$system                                   #:phases #$(if (pair? phases)                                                  (sexp->gexp phases)                                                  phases)                                   #:outputs %outputs                                   #:search-paths '#$(sexp->gexp                                                      (map search-path-specification->sexp search-paths))                                   #:inputs %build-inputs))))   (mlet %store-monad ((guile (package->derivation (or guile (default-guile))                                                   system #:graft? #f)))     (gexp->derivation name build                       #:system system                       #:target #f                       #:modules imported-modules                       #:guile-for-build guile))) My first thought was that there was a mismatch between the arguments of crosstool-ng-build -> build -> gexp->derivation. But the arguments all seem to match up. I compared to build-system/ruby.scm and that part seems really close to that as well except for some arguments that seem like they are ruby specific. There must be some nuance that I'm missing here. Jesse