From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WHaCDpr8SWK8JgAAgWs5BA (envelope-from ) for ; Sun, 03 Apr 2022 21:59:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MGHlC5r8SWJaigAA9RJhRA (envelope-from ) for ; Sun, 03 Apr 2022 21:59:22 +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 DDFED39E42 for ; Sun, 3 Apr 2022 21:59:21 +0200 (CEST) Received: from localhost ([::1]:56832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nb6Nc-0002fg-Fr for larch@yhetil.org; Sun, 03 Apr 2022 15:59:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb6KX-0002RS-CC for help-guix@gnu.org; Sun, 03 Apr 2022 15:56:09 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:44025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb6KR-0007fb-9M for help-guix@gnu.org; Sun, 03 Apr 2022 15:56:07 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id C52423200946 for ; Sun, 3 Apr 2022 15:55:51 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Sun, 03 Apr 2022 15:55:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=ft/usY/8+36hLHvEMrVGO81N1S8bKMTEh11HLRXkD hY=; b=cRNG6gZ5cRhtRusPz0cwbcj4ZMJOFJ0Uybycq1v16OZORhRADg87BpWKw ohfvIQqmpJiqgWgpnXyx1y+L/sDdVMk5Ufdpaf70HCRiQycckeZrZsJgIU70XeJ0 +uMyXp/PrmJD8TBHW/bL2FlCzkQQgc7ASttPBEa/gTmSFsfV6M3g6nxNk3nNsEZf iNfMYzvPgnRnSmNpQLCIW6mcTv6/U2JgsqaPU6lElyMyrtx5WX38rZ8rYhcHtsXl vHeqJxzz9olh9cO2UvHWTr7RqZZyRc2CGQdnG3z6lwbwb2sABi0YKYoRuO7QwxLz iC4Lq4uSHW2OUbopi/Wr75vIAx5fA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejtddgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtre dtreertdenucfhrhhomhepfdffrghvihguucetrhhrohihohdfuceouggrvhhiugesrghq figrrhhirdhnvghtqeenucggtffrrghtthgvrhhnpeelhfffgfeivedvudelveduledufe elhfellefgjeeijefgffeugfdtffeigeffffenucffohhmrghinhepshhrrdhhthdpshhk rghrnhgvthdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegurghvihgusegrqhifrghrihdrnhgvth X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3A96DF60083; Sun, 3 Apr 2022 15:55:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-382-g88b93171a9-fm-20220330.001-g88b93171 Mime-Version: 1.0 Message-Id: <868399f1-2248-4bea-8bd4-8cc921f18840@www.fastmail.com> Date: Sun, 03 Apr 2022 15:54:30 -0400 From: "David Arroyo" To: help-guix@gnu.org Subject: How do you debug build-side code? Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.24; envelope-from=david@aqwari.net; helo=wout1-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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Mailman-Approved-At: Sun, 03 Apr 2022 15:58:43 -0400 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649015961; 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=ft/usY/8+36hLHvEMrVGO81N1S8bKMTEh11HLRXkDhY=; b=sNRevQX9d090j/Th0zLJScRcW3Vkc4bMC29I5tQj7sAJ0TG6Wn5EUJC+LE5WVwjqgF9Jcs WJz39oyUcFbplLhhQiCly9RCW/tzvRJwk/QRZM4XpCldgaMiEckWkwBmGDJkuWpeIETgY5 rDqSK1i5UZndEz9jcIVhhwj1LvJ7sLY/aPdj7ejowgJPw4UEVlJIKF/2QrMGahW8genQSc yiixW8VtVVDs9REeEEEQIe0N9RmAIGsYujFRZqLXW7J4flG2b9tvPzYgX7mqJUvOh1Mnvf DpQ9+tUtAW+sdFr1BebF1ldpgeiujGtFUH9duHcl1+oO2dr8z/UJ4iwGeoOw/g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649015961; a=rsa-sha256; cv=none; b=qYOVDfclj5gW1TdeFUf+vowxD8gubHwNgbONIvotWvZOpE46uYnTMQhUxpzHwmSaLIC33b V+uYhuSPfMibK2MNeUyjzWsPi4xjY46A4sKhJu7M9maB9WDYG/r//WzQQKwVF5ihyZhCUJ ygGustZ1+mmD7ZQD9+v1Tungy2b4tY0v6J67GDAsL+UUFGW2MlbzraTqfLwSgeMXVO/3OU IWvOVcGOwEB00c0rAx3jevEbx9k6Q5PvzInoYzwx+xhgy4ROLEGgjp0M9LQL1meTAfvI6L V9m8N6Uwzc7QHo7s8hnMpzY+YKvdQ+3m46QgT29VJbWMI9kT13WjC0mC+3CSZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=cRNG6gZ5; 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" X-Migadu-Spam-Score: 1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=cRNG6gZ5; 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" X-Migadu-Queue-Id: DDFED39E42 X-Spam-Score: 1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: dJoZhtnGxrvG Hello, I currently use Guix on a foreign distro to define development and build environments. I'm trying to extend guix with types that build an s6[1] supervision tree in the store from a declarative definition. I can then use that to build a guix profile (or a pack) with everything needed for s6-svscan to run and supervise these services. This is my current attempt: https://git.sr.ht/~droyo/guix-channel/tree/1ca4a1043c1f38bcc118046fa5ba771cf47393a9/item/aqwari/services/s6.scm https://git.sr.ht/~droyo/guix-channel/tree/1ca4a1043c1f38bcc118046fa5ba771cf47393a9/item/example/router.scm However, `guix build -f router.scm` currently fails. The specific error is something about incorrect arguments to "apply". I'm sure I can find it eventually, but this is just one of many errors I've made, and I've had a bear of a time fixing them. I feel like I am in uncharted territory, because the docs I can find all talk about packages, and I'm not trying to build a package. Often the stack traced I get do not include my code at all, so it's hard to tell where my mistake is. I'd love to hear how others debug errors in the build-side code. Is there any way for me to trace the function calls or even have an interactive debugging session? David [1]: https://skarnet.org/software/s6/index.html