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 ICo1DclarWVyzgAA62LTzQ:P1 (envelope-from ) for ; Sun, 21 Jan 2024 18:56:25 +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 ICo1DclarWVyzgAA62LTzQ (envelope-from ) for ; Sun, 21 Jan 2024 18:56:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=LZ5wsGUs; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705859785; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=vgpEB4Mt9acY0vqePSWXjoCARMna2bed5+P7rTCKbKM=; b=g9jBoWs1M0J3dxqsSUaVwLeoJE9eZgp+RfsueH9tbTpmS62guXp8fYSM0yYkM3WkNm5Riu ocPyxEHE+N6uM3dPQq2V04JmnNpg1kgEY20n+CGXQ0eDviNMZjQb6TdhSB9RLX2BdiXZbs Wr6OPUxeoY4Kw1SKG0AXxAI4pe4xIujxJrBuqf6O2CCZ9du3eTfF7n0me4vgJnaJOHzEcy WFricYIrOfsBVAcz71hbMhxkX4N43050N19hpoIqsk6l58+ZpPb3+UEoBIq6zsV5qdbeVx 50InnG+RXDii9EayUgRFhqRl8bXRczLzXOcFY2CDMqODMrC09O69HhG3/ZdOpw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=LZ5wsGUs; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705859785; a=rsa-sha256; cv=none; b=gqBlUZG3NBeKjVnM/XsgchlsuHySixNVZB03wz7uiG7MWaPKKp2yswinQHXmz6Elb88ifi lDFMWI4iFFkkRQo1YVyw1pnHqTg76HIUxgF/dmypPkJ5mfxmYrBR4bTnTuK4UsQWPXX/Rd bt/pvbNHJ2KPJrkkpADNDnQL2wKqgpGpIh50dPDgU4OhfXEcl14IbXV2clMzbBiNJZC0nS MrrnGUE41jaJKV0HymV/Pvknz9dwAyZE5j6lFcMsqq8eNMixVFa1bvywP2EGIhk0qDCTHh +OyIr5ugfwW/VrTPy2oT4Y+UU5IlNzRIoKDWW5r+EZVXxdF2XTNeuSOqvgyRRg== 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 B3BAE5234B for ; Sun, 21 Jan 2024 18:56:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRc2y-0004c7-Jm; Sun, 21 Jan 2024 12:55:53 -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 1rRc2u-0004bn-Qp for guix-devel@gnu.org; Sun, 21 Jan 2024 12:55:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRc2s-0003UZ-Ma; Sun, 21 Jan 2024 12:55:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=vgpEB4Mt9acY0vqePSWXjoCARMna2bed5+P7rTCKbKM=; b=LZ5wsGUsvhkolHruJM2r pD3TJN5Y0312Io30aLoYWWiik31DIKt8f+1Juc7MWhykZ4h5/CLB8xsdtwGVoSwtjee8Yozhp/v1S G6W9n9jjRBEf/xHkGm32Jy7HE5lOhhF4loXqhSjORIIE4bI7nlw3ctpMVhkjBnhDpZnNOT38voRRv pmVBsiyc88550J382yciMvwL02A8bqOkaHHMljfx+m0POW80iQUTW938mt4XcPVmVtik2SSYIbFMg zehU/9Md4xHHFTh7ufbh7o0Z7bEdpgLvoL0HpLe/pG09ODPki9xKZLN5uJYqPTm+EvU1GPcc1i4Kb hlqzj4XiJCDh1A==; From: Janneke Nieuwenhuizen To: Maxim Cournoyer Cc: guix-devel@gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [core-updates] Native build of make-boot0 fails on missing zstd In-Reply-To: <87fryqabj5.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 21 Jan 2024 11:36:46 -0500") Organization: AvatarAcademy.nl References: <87plxvkp3i.fsf@gnu.org> <87fryqabj5.fsf@gmail.com> X-Url: http://AvatarAcademy.nl Date: Sun, 21 Jan 2024 18:55:42 +0100 Message-ID: <87h6j6lgf5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -11.40 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -11.40 X-Migadu-Queue-Id: B3BAE5234B X-TUID: ioBHVZNyUvt+ Maxim Cournoyer writes: Hi, > Efraim Flashner writes: > >> On Sun, Jan 21, 2024 at 10:33:37AM +0100, Janneke Nieuwenhuizen wrote: >>> Hi! >>>=20 >>> On core-updates, running >>>=20 >>> ./pre-inst-env guix build --system=3Di586-gnu -e '(@@ (gnu packages= commencement) gnu-make-boot0)' >>>=20 >>> fails for me with >>>=20 >>> sh: zstd: command not found >>>=20 >>> See log below. FWIW, using --system=3Di686-linux for example, works fi= ne. > > I don't know what it'd only affect non-x86 systems, but I've noticed one > bug in my recent "default to zstd" repack logic, which would name a xz > tarball as .tar.zst. Perhaps tar then try to use zstd to decompress it, > even if it's really a xz compressed archive? Ah, that could be... > I have the following commit that fixes this, haven't pushed it yet (it's > a world rebuild). > > modified guix/packages.scm > @@ -949,10 +949,7 @@ (define* (patch-and-repack source patches > (bzip2 (lookup-input "bzip2")) > (lzip (lookup-input "lzip")) > (xz (lookup-input "xz")) > - (zstd (or (lookup-input "zstd") > - ;; Fallback to xz in case zstd is not available, s= uch as > - ;; for bootstrap packages. > - xz)) > + (zstd (lookup-input "zstd")) > (patch (lookup-input "patch")) > (comp (and=3D> (compressor source-file-name) lookup-input)) > (patches (map instantiate-patch patches))) > @@ -1033,10 +1030,16 @@ (define* (patch-and-repack source patches > locale (system-error-errno args))))) >=20=20 > (setenv "PATH" > - (string-append #+zstd "/bin" > - (if #+comp > - (string-append ":" #+comp "/bin") > - ""))) > + (string-join (fold (lambda (x path) > + (if (and x (not (member x path)= )) > + (cons x path) > + path)) > + '() > + ;; Fallback to xz in case zstd is > + ;; not available, such as for > + ;; bootstrap packages. > + (list #+zstd #+xz #+comp)) > + ":")) >=20=20 > (setenv "ZSTD_NBTHREADS" (number->string (parallel-job-count= ))) Thanks for looking into this. When trying ./pre-inst-env guix build --system=3Di586-gnu -e '(@@ (gnu packages com= mencement) gnu-make-boot0)' (or for --system=3Driscv64-linux, ftm) with this patch, I get tar (child): gzip: Cannot exec: No such file or directory (see below. So, no longer an attempt to use zstd... Greetings, Janneke --8<---------------cut here---------------start------------->8--- The following derivations will be built: /gnu/store/pr5r6fg3h5c8qrsl46gvvb3ip2zcz96k-make-boot0-4.4.1.drv /gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.xz.drv process 28163 acquired build slot '/var/guix/offload/kluit.dezyne.org:10022= /0' process 28163 acquired build slot '/var/guix/offload/localhost:10022/0' normalized load on machine 'kluit.dezyne.org' is 0.16 building /gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.xz.drv.= .. guix offload: sending 0 store items (0 MiB) to 'kluit.dezyne.org'... offloading '/gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.xz.d= rv' to 'kluit.dezyne.org'... offloading build of /gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.= tar.xz.drv to 'kluit.dezyne.org' @ build-started /gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.= xz.drv - i586-gnu /var/log/guix/drvs/zi//rmshsc75x1isxkfladjmqhkl04l8in-mak= e-4.4.1.tar.xz.drv.gz 6964 failed to install 'C.UTF-8' locale: 1073741846 tar (child): gzip: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now /gnu/store/sb4x78r4d5l8833nmrml4b823irf954h-bootstrap-binaries-0/bin/tar: C= hild returned status 2 /gnu/store/sb4x78r4d5l8833nmrml4b823irf954h-bootstrap-binaries-0/bin/tar: E= rror is not recoverable: exiting now Backtrace: In ice-9/boot-9.scm: 160: 10 [catch #t # ...] In unknown file: ?: 9 [apply-smob/1 #] In ice-9/boot-9.scm: 66: 8 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 7 [eval # #] In ice-9/boot-9.scm: 2412: 6 [save-module-excursion #] 4089: 5 [#] 1734: 4 [%start-stack load-stack #] 1739: 3 [#] In unknown file: ?: 2 [primitive-load "/gnu/store/y0pg4vk114kir2kvf7i7p8i22vf4z8pj-make-4= .4.1.tar.xz-builder"] In ice-9/eval.scm: 432: 1 [eval # ()] In guix/build/utils.scm: 816: 0 [invoke "/gnu/store/sb4x78r4d5l8833nmrml4b823irf954h-bootstrap-bina= ries-0/bin/tar" ...] guix/build/utils.scm:816:6: In procedure invoke: guix/build/utils.scm:816:6: Throw to key `srfi-34' with args `(#)'. builder for `/gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.xz.= drv' failed with exit code 1 @ build-failed /gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.x= z.drv - 1 builder for `/gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4= .1.tar.xz.drv' failed with exit code 1 derivation '/gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.xz.d= rv' offloaded to 'kluit.dezyne.org' failed: build of `/gnu/store/zirmshsc75= x1isxkfladjmqhkl04l8in-make-4.4.1.tar.xz.drv' failed build of /gnu/store/zirmshsc75x1isxkfladjmqhkl04l8in-make-4.4.1.tar.xz.drv = failed --8<---------------cut here---------------end--------------->8--- --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com