From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SBjaLvwLKWAKVAAA0tVLHw (envelope-from ) for ; Sun, 14 Feb 2021 11:39:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oAa7KvwLKWA4DQAA1q6Kng (envelope-from ) for ; Sun, 14 Feb 2021 11:39:40 +0000 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 3047A25133 for ; Sun, 14 Feb 2021 12:39:40 +0100 (CET) Received: from localhost ([::1]:38002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBFkZ-0005bH-9u for larch@yhetil.org; Sun, 14 Feb 2021 06:39:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBFkQ-0005b2-Ms for guix-devel@gnu.org; Sun, 14 Feb 2021 06:39:30 -0500 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]:45621) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBFkO-0001br-Q0 for guix-devel@gnu.org; Sun, 14 Feb 2021 06:39:30 -0500 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id 0B36E27BC2E for ; Sun, 14 Feb 2021 11:39:27 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 1218bffe for ; Sun, 14 Feb 2021 11:39:26 +0000 (UTC) User-agent: mu4e 1.4.14; emacs 27.1 From: Christopher Baines To: guix-devel@gnu.org Subject: Getting the Guix Build Coordinator agent working on the Hurd Date: Sun, 14 Feb 2021 11:39:24 +0000 Message-ID: <87tuqekheb.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 3047A25133 X-Spam-Score: -4.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0e/S4AOCqt8t --=-=-= Content-Type: text/plain Hey, This has been on my todo list ever since the childhurd service came in to existence. I spent some more time looking at it yesterday, and did manage to get the agent working in a childhurd VM, at least somewhat. Firstly, guile-lib needed tweaking so that it actually cross compiles, I've sent a patch [1]. 1: https://lists.gnu.org/archive/html/guile-devel/2021-02/msg00004.html Adding the agent service also required this tweak [2]. 2: https://issues.guix.gnu.org/46506 Then I faced two problems with the guix-build-coordinator package. Firstly, wrap-program picks bash for Linux for the wrapper script, which isn't very useful. I hacked around this by setting the PATH such that it picked bash for the Hurd. In terms of properly fixing this, I guess that needs to somehow be able to find the right bash, I'm not sure how though? The second issue is that I'm not sure capturing the build time GUILE_LOAD_COMPILED_PATH doesn't seem to work, at least file says that the .go files this contains are built for a 64-bit architecture. I worked around this by constructing the GUILE_LOAD_COMPILED_PATH from the inputs I knew should be on it. Maybe it should always have been done this way, any ideas? There's also one problem probably within the Guix Build Coordinator itself, after doing a few builds, it will just stop. I've only seen this behaviour on the Hurd, but I'm unsure how to debug it, any suggestions? My only idea is add more logging. Thanks, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmApC+xfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XedeQ/+LG5UFP83v+m289ca75SMaMvl3BVNZM06 IaNOXqfg4wHToMMHGKP7xfKm2P4evzWBt5UYiXklHGLAV+BRJSAn/6dmSOKoP6eY y1TN7sFyF3G/8yFcXLtBIjCb5nvy7cOskxcpaph0msYLpooE1+KCOGqrZJpu1HKl 7MEXp1Wc48g1ePxmVr/eALHCYn9OA+V99IfVfqmxuumkAWLGiKU7o5IHec86DqZf udTxB0HfYqRMf4zR0Jafb0WYjefRj5t5N3F8pecSb6TieS3wVJmY4S3zm2ba6U+x WRavpkkUWB93SFQ6ps4cKrlgEH5Aoq8mwQPpvBA8aAG5HrHtVnriX6nLbx4R+moj pDza193MUnXZ2ZQZP4Ny77of90wkSaRdjkcxmPLL7vjWvhB1Ll85dvNZ7du+e0gx 1xuNssJtCfnEPC6l+p4o1U7hgtNmFIv2WM3n6mhYlaEER178VmasWV9FGVoy5vhp Hf2mi9gnfqC6M+tltzQbV6PUciOnx1WSC4V/qSouQVrnK1aKDaJ85ZKmi7RHhDt3 wtuVifcqJbV6jt+ASiTMNwKV7yHHEjarpTtmpJWaUjELVJJx+gjrma6z0peQSVHy ay+BKSPOf5FBtAYNfpUKBZUGm+yEsw3X19wKa2QH0R1S/Iny6X1aF+Uc08pb+gv5 I54Pl31EAYQ= =lRTU -----END PGP SIGNATURE----- --=-=-=--