From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 kL37Ll5KxGWvDgEAe85BDQ:P1 (envelope-from ) for ; Thu, 08 Feb 2024 04:28:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kL37Ll5KxGWvDgEAe85BDQ (envelope-from ) for ; Thu, 08 Feb 2024 04:28:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=millwood.earth header.s=fm1 header.b=AbjZYFSy; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=ahDqXaB0; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707362910; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+UyldDgm+VtpZitim85dLKxY53ZhlKftBRDxfgJLj98=; b=IWrCYkgUt1GLD4uILdYlHoZES2tgBkGghtCG8C8rEb3q7CuCNPzeOsHCDg2CHUx/MtnMyc Xzqd5Td8cRINyFsXTDvJxSmtVmoC4t2dTbaIq6wV7oVHsAqmzV4a1JR6m7uP5eUMexU9VQ otM0cp42/cS1UKCrb1QHiSUQIWfae6DYz3JiS2fleU9yDOYLbGW6vKkjBJvAacahnyy0ud gxpZI2H5l/Uh10kZJwi+ZzF7YA9JaQNUBm92nLzYGZ83pHHAOhbZISPLnzs9R9wpN+L/Og AtU4u78mUbWK42AXCU2Qbd8Ci82z8LpbZhZnIJeR8H9Eo9xZrZOC8oQ6f7hlBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=millwood.earth header.s=fm1 header.b=AbjZYFSy; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=ahDqXaB0; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707362910; a=rsa-sha256; cv=none; b=P+h1HsvYFfP0jvw34iE7NsLDVkVOliWczPhFKpxNwAtQE/eu10thi3akvJHzD6zdoIGcvI DvJtFPdlF5Ofs+vGqJK5hM5M/42ZmECOnWAX9aZ0HgqfEvkNwCpjOpT33mOPfh0hb7Vb1Q 2EVCofYzOlfKxmkZhPuCxCUQsGfKew9Qg5Uv9I7KekfeIo2kadta+7GfnzhoOv7257Ke9L isfsroLFZloUFpqkPX02y+ij7dquAUXIG8E5WtyOtKEPiw0TcEnId0YAdBsBT+aGLzNR18 0sH4vmuoD5MQk7jwzFSWd7YPRG+hdiesCEF3x2O/PYM0qtuJ8Y375mkxTvLOsQ== 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 701BD3DFA5 for ; Thu, 8 Feb 2024 04:28:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXv52-00055t-Iv; Wed, 07 Feb 2024 22:28:04 -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 1rXv50-00055M-M8 for help-guix@gnu.org; Wed, 07 Feb 2024 22:28:02 -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 1rXv4y-0007vc-ID for help-guix@gnu.org; Wed, 07 Feb 2024 22:28:02 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 707A75C00C3 for ; Wed, 7 Feb 2024 22:27:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 07 Feb 2024 22:27:56 -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 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1707362876; x=1707449276; bh=+UyldDgm+VtpZitim85dLKxY53ZhlKft BRDxfgJLj98=; b=AbjZYFSy4pWJMTN4/VBOTT3eqgv/gxvGTFh6TsSBXqbnVUZa veWczVfpJXs45upLowRSbEXrrZSUpLO/4jPKGr2WmarxiBTq5iS9sX55qcXHPwyE Cq57aiZjHPBLEQXeW76znKHgBZCTPhxw9C/IM9xYpQgmXyM60H6zHVErLha2oYJj gRF+7L9DPwg0bWcE3O/GgQE+Z+Yupn4OFXhYRiCYoXNOB4MljD/ptcc1pGb7CiUV hLnfuhxM9NxqrXNZ+UnZZ53HLhB4NCS7RQLezlXB4LSuFMnhmYhLXRFQMsR1+B2s sUM+VZAZgPs0QcbiAN4lMGzpO0mYnHhMpfOSJA== 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:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1707362876; x=1707449276; bh=+UyldDgm+VtpZitim85dLKxY53ZhlKftBRD xfgJLj98=; b=ahDqXaB0f6hFCuOkyRw8X7juPRwse9eWqGNYY8GUowC40bF1Yud x2YMgPNb5BEqAGlMcJRHQO3umtmA/8MVtbs2N5jejvuAycxuRoeylFe/ttbwSx1m qtKWPeEqWGiEiS5rgSQ+y+56fTm1JlqruZo+1JUyTccCGEWwsn18dFRNaCxz6Lpo QDNaWoC70IwSyAPnaNJl/cIbj7uxdK7nY+Tqqj3xY5leQ1ccxP24YEeQAt5WqSOy HD571+M/v2HTKx87urzrzLN+1W90YfdUMxseguuPIDbT3FZdt7HElk0uQmNhUiDY X15YQeEGhjbeCrJPWTQcR8Y9nCGE1VMzHXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtdefgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenuc fjughrpegtkfffgggfhffvufesmhdtreertddvjeenucfhrhhomheplfgvshhsvgcuoegu vghvsehmihhllhifohhougdrvggrrhhthheqnecuggftrfgrthhtvghrnhepvdejgeeiue eghedvgfelvefgveejgeffffektddttdelfeffffeifedvveduhfegnecuffhomhgrihhn pehgihhthhhusgdrihhonecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepuggvvhesmhhilhhlfihoohgurdgvrghrthhh X-ME-Proxy: Feedback-ID: idd094634:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 7 Feb 2024 22:27:56 -0500 (EST) Content-Type: multipart/mixed; boundary="------------BE26YS0k3y39J0MGfBiAKAqp" Message-ID: <68237c05-3c30-4d36-b733-6251f168ad9e@millwood.earth> Date: Wed, 7 Feb 2024 22:27:54 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Jesse To: help-guix@gnu.org Subject: Help with channel build system and package Received-SPF: pass client-ip=66.111.4.27; envelope-from=dev@millwood.earth; 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, 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: -9.76 X-Migadu-Queue-Id: 701BD3DFA5 X-Spam-Score: -9.76 X-Migadu-Scanner: mx11.migadu.com X-TUID: IXrcO+vZbnUS This is a multi-part message in MIME format. --------------BE26YS0k3y39J0MGfBiAKAqp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, I have a channel where I am trying to develop a few packages that need a new build system. I want to try and use guix to build toolchains from crosstool-ng[1] for embedded development. In an effort to guix-fiy some of my development environments I'd like to be able to use the same toolchains that I do normally but specified in a manifest for embedded projects. I have attached my channel here. It seems to be able to build the crosstool-ng package fine with guix build -v3 -L embedded-dev crosstool-ng guix build: warning: invalid argument list guix build: warning: source expression failed to match any pattern guix build: warning: ambiguous package specification `crosstool-ng' guix build: warning: choosing crosstool-ng@1.26.0 from embedded-dev/embedded-dev/packages/crosstool-ng.scm:26:2 /gnu/store/5adzqwspya97z59pgxfvchrlyddl7v6a-crosstool-ng-1.26.0 However, when I try to build one of my packages that depend on crosstool-ng 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 Backtrace: In ice-9/boot-9.scm:   1747:15 19 (with-exception-handler # …)   1752:10 18 (with-exception-handler _ _ #:unwind? _ # _) In guix/ui.scm:     485:6 17 (_) In guix/scripts/build.scm:     711:5 16 (_) In srfi/srfi-1.scm:    673:15 15 (append-map # …)    586:17 14 (map1 ("x86_64-linux")) In guix/scripts/build.scm:    713:21 13 (_ _) In guix/store.scm:   1380:11 12 (map/accumulate-builds # …)    1298:8 11 (call-with-build-handler # …) In guix/scripts/build.scm:    667:16 10 (_ #)    656:24  9 (_ # …) In guix/packages.scm:   1372:17  8 (supported-package? # …) In guix/memoization.scm:     101:0  7 (_ # # …) In guix/packages.scm:   1350:39  6 (_)   1612:16  5 (package->bag _ _ _ #:graft? _)   1709:22  4 (thunk) In guix/build-system.scm:      94:2  3 (make-bag _ _ #:source _ #:inputs _ #:native-inputs _ # …) In ice-9/boot-9.scm:   1685:16  2 (raise-exception _ #:continuable? _)   1685:16  1 (raise-exception _ #:continuable? _)   1685:16  0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `match-error' with args `("match" "no matching pattern" #)'. I'm a little lost on how to proceed debugging this. It seems like it is saying it can't find the crosstool-ng package. It seemed to build fine and the package definition is in the same file. For some background, when building a toolchain from crosstool-ng you provide it with a defconfig and it has a number of steps it goes through to bootstrap it and pull the versioned dependencies down and everything. So my plan was to have some of these packages that use crosstool-ng and just provide the defconfig as a plain file: (define-public ct-ng-riscv64-unknown-elf   (package     (name "ct-ng-riscv64-unknown-elf")     (source (plain-file "defconfig"                         '("CT_CONFIG_VERSION=\"4\"\n"                           "CT_EXPERIMENTAL=y\n"                           "CT_ARCH_RISCV=y\n"                           "# CT_DEMULTILIB is not set\n"                           "CT_ARCH_USE_MMU=y\n"                           "CT_ARCH_64=y\n"                           "CT_DEBUG_GDB=y\n"                           "# CT_GDB_CROSS_PYTHON is not set\n")))     (version "1.26.0")     (build-system crosstool-ng)     (arguments `(#:sample "riscv64-unknown-elf"))     (synopsis "A crosstool-ng based riscv64 unknown elf toolchain")     (description "A crosstool-ng based riscv64 unknown elf toolchain")     (home-page "https://crosstool-ng.github.io/docs/")     (license (list gpl2 gpl2+ gpl3+ lgpl2.1 lgpl3+))     )) The actual guix build system that I put together mainly follows others that I saw in the guix source. It really just deletes a bunch of phases from the gnu standard phases and then just runs the crosstool-ng commands, one per phase. There are some tweaks that I want to make here and there to clean things up before I see if this is upstreamable but I'd like to get this build debugged first. Thanks for any tips. 1: https://crosstool-ng.github.io/ --------------BE26YS0k3y39J0MGfBiAKAqp Content-Type: application/gzip; name="embedded-dev.tar.gz" Content-Disposition: attachment; filename="embedded-dev.tar.gz" Content-Transfer-Encoding: base64 H4sIAAAAAAACA+0baW/bODaf8ysIO4XlaZXYjo+uB9NOm3o7weYo0gNdoIArS7TFRteQUo5+ 2N++jxRlUbZkye407e6IQKyD7z2S7+YTg90Ztixs6Ra+Odr7Pq0DbTQa8Gt3NOio16TtdfuD YbfT7w8Hvb1Ot9eHV2iw9wAtYqFBEdr7ghnDG+DK+v9HG1blf7iIyJ1u2obnYeevlf9w2C+U f3fUS+Xf74L8+6Nhdw91avl/96ZJae8j7QZTRnwPddrwEFEHNewwDNj46GhBQmwcuvcMUwA6 mkidOVKVp9Fu7+//+is6803DQR8MSoyZg9mYv3N9C48RM23sYv488azx/l7dfjb7x98nGFT1 /51R77h/PBL23+3W/v/Hyn8WEcc6+jHyH3a6dfz/KeRvUp+x0Pcd3Vvo4pXO7lmI3UNmun9N /B91eyvy7x0PALyO/w8R/y08Jx7WIURHDkYazwCRkDMqFD3kB6g5jliKpaItvCgLDbABhVHu eNd4HVnBjULisHUIYmL9H8g1QtOOO/Fd4NMQaY9AeJ5lUEsPbINhBp1pW5+/TFFOfNfFHoj9 nmcn/M1L3oupzoiFkQnZCvLnKLQxSuinxORMA+qb2IooPhQk312+uhyjNwZjgEb9aGGjwKCG 42AH+UEIaZUc6YSnQvuS678gzfTdwPCgf8qJs+nc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