From patchwork Tue Aug 15 21:23:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 52875 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0336627BBEA; Tue, 15 Aug 2023 22:36:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DAE7827BBE2 for ; Tue, 15 Aug 2023 22:36:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qW1hv-0008JL-3p; Tue, 15 Aug 2023 17:36:07 -0400 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 1qW1hr-0008HU-Un for guix-patches@gnu.org; Tue, 15 Aug 2023 17:36:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qW1hr-0005eP-Mh for guix-patches@gnu.org; Tue, 15 Aug 2023 17:36:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qW1hq-0001W3-32; Tue, 15 Aug 2023 17:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65322] [PATCH] gnu: linux-libre: Fix aarch64 build by providing hexdump command Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 15 Aug 2023 21:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65322 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65322@debbugs.gnu.org Cc: leo@famulari.name, me@tobias.gr X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: leo@famulari.name, me@tobias.gr Received: via spool by submit@debbugs.gnu.org id=B.16921353515806 (code B ref -1); Tue, 15 Aug 2023 21:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Aug 2023 21:35:51 +0000 Received: from localhost ([127.0.0.1]:36965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qW1he-0001VZ-Qg for submit@debbugs.gnu.org; Tue, 15 Aug 2023 17:35:51 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qW1hc-0001VJ-3p for submit@debbugs.gnu.org; Tue, 15 Aug 2023 17:35:50 -0400 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 1qW1hV-0008FB-Ky for guix-patches@gnu.org; Tue, 15 Aug 2023 17:35:41 -0400 Received: from mout.gmx.net ([212.227.15.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qW1hS-0005Xp-RR for guix-patches@gnu.org; Tue, 15 Aug 2023 17:35:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1692135336; x=1692740136; i=pierre.langlois@gmx.com; bh=VKzcVlO34FPktqX3UEkGpK10rXVbfVNwBHTC3arxq74=; h=X-UI-Sender-Class:From:To:Subject:Date; b=T8HntfI51K/FxWm8bZKNT+nocligseQHl5sQOigx/Tq5yxAVZ2VIkeUjuj5tkj77jSbe4pO JTrsStdtiYJlyx8YI4JmNVJsf6N+0yui5/AKpQchVhD5HIcOhXHg8JIwywgc7CBGDVx4SZpv7 EluPqwVITEYa87rphE8Pg1otJU2sG17IZA8PBuyldtCljyBzFklAcnpAdp0uaZ35DcRmVMW53 qE1heGwGVDLeerVmUHMduVO81gXJmjohOey1hemjaTYxZHfHyql+c8T9UGLvHqPsgME6kQki/ lWSO6rr7LzGs5PpzgrtGL2x+PtpVz0ShwpK2bQ6fanc9ruoX9Q9w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MTAFh-1qLBPM35Ul-00UXx1 for ; Tue, 15 Aug 2023 23:35:35 +0200 User-agent: mu4e 1.10.5; emacs 28.2 From: Pierre Langlois Date: Tue, 15 Aug 2023 22:23:47 +0100 Message-ID: <87y1icgfa6.fsf@gmx.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:+qSFmyVbw1lVwtOKis7hz3Uc3R2sUZ84uhnEzqA4//4OL+kat8v 0Nj6Z991tsvWV1yB0MPeTXftHirUzBwx02J+4Vpjdm65YRko8wkGkwT+faB6CWFOq6tYnjE BkilO1vTCW9HuyLnpp9+v+p4FXWuQoWOueordFTZuUffgkgANhqu2VeC7elS8EjdqWwSA9Q PQtlvOicBw2XR8rfnnrxQ== UI-OutboundReport: notjunk:1;M01:P0:nBduHAMe+wM=;kKUnntIYb/mbzktgGyXTLq6guv4 LQ54ELFQ2vu0eyfMbAVYWvV5dqKe6nmAFC9o4KFd2UuBO5eZLgF4SJ4glzydNSIY0jtUcoFm5 VlrNJoEQ4ysFT9UGBkJDJlQwXI/CGXrwgtTVLHA+Bqv9989orMfZOtNqjgdusx/fP3P2RB4zB h4Y5hGfxO7B5CX7VhK6QET8DPtch5wmyXhwWIQFnKfAonMpp/AxO+DlKZLh9dN1g+GvRnaBEr nH6TJqiQ2mJscM4EeE9u2Fa+cr+cnZV3UlBiaqt9BFeIeAzwaWGxEr08X444Afidi588CeBL+ o8iXRFgxUMC1d22QLJpFmLxekfd5JB28frIhfBg7bCjQ6NOFgjCOmRdH2oIrWHdHqguxJMAEl QOglNXr58Z7wCgGRImwBqiu2+U59t3SPpm4QgGWiH8I1Ndzk2lR18JOFiRKjxBUWTiQJgdJRM 4N5wOdyXPPkpy99IbaCOynNpUWD9KYzp+NkdvRjIQEtOyg5XrcSh86gXD17/gk4eiY/r95GW3 ZWJjJ3yK2aiA+G2KAASl5SmcqZQkDWGta3q9Ul820187Q/EfcZ+P6fnmZkYnc00EG4QmDQVIK A3OplRWuAFi935rjn4BQFsiLLYgeYjr1rSY9YmIsdGE17jRKBRHSrsX2dMUzs6VifUJPxoixU IuKDIc2Dx45gMETa1gTylyGur8XTAuGTiFYlib2MK4nagXbrpTAZ2tr5LgTfAd29CuFrMH+G/ t8jt0orKR9wzI5P3yqPbKLbikU17NetYiwp1Ml5t03LQ5eRz3DUs/rVo2Zibpg4+gec/yXkmr SfngZQlTlYU70xbW5q8P5lS+Yl4elM0qOb3TSxdvcxcPsjSw9cVMlDTKKkoXR1huReDAikqob qD5ilwxSYBpX9PFgtXrevFBwRnykeXPPlZ3ECstaEA9exwcS1YFU83DwvZ2qoUV2b14T0MryN sH8ugmi1iZP9lwxTagoScwuqKiw= Received-SPF: pass client-ip=212.227.15.18; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi Guix! I noticed linux 6.4 didn't build on aarch64 https://ci.guix.gnu.org/build/1787394/details, building it locally and checking the log, it seems we're simply missing the `hexdump' column: --8<---------------cut here---------------start------------->8--- CC [M] drivers/pci/controller/pcie-rockchip-host.mod.o OBJCOPY arch/arm64/boot/Image CC [M] drivers/pci/controller/pcie-brcmstb.mod.o AS arch/arm64/boot/zboot-header.o make[1]: hexdump: No such file or directory make[1]: hexdump: No such file or directory make[1]: hexdump: No such file or directory make[1]: hexdump: No such file or directory PAD arch/arm64/boot/vmlinux.bin CC [M] drivers/pci/controller/pcie-apple.mod.o truncate: Invalid number: 'arch/arm64/boot/vmlinux.bin' make[1]: *** [drivers/firmware/efi/libstub/Makefile.zboot:13: arch/arm64/boot/vmlinux.bin] Error 1 make[1]: *** Deleting file 'arch/arm64/boot/vmlinux.bin' make: *** [arch/arm64/Makefile:163: vmlinuz.efi] Error 2 make: *** Waiting for unfinished jobs.... CC [M] drivers/pci/pci-stub.mod.o CC [M] drivers/video/backlight/ams369fg06.mod.o CC [M] drivers/video/backlight/lcd.mod.o CC [M] drivers/video/backlight/hx8357.mod.o --8<---------------cut here---------------end--------------->8--- The "PAD" line seems to come from this Makefile, imported in a few targets: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/firmware/efi/libstub/Makefile.zboot#n7 So the fix is easy! Somebody probably already found the issue, but I figure I'd post the fix in case it saves time :-) Thanks! Pierre From d20fa084807706fd3fccaa2104162843420c282c Mon Sep 17 00:00:00 2001 Message-ID: From: Pierre Langlois Date: Tue, 15 Aug 2023 22:10:02 +0100 Subject: [PATCH] gnu: linux-libre: Add util-linux native input. Provide `hexdump' needed to build compressed EFI payload, on aarch64. * gnu/packages/linux.scm (make-linux-libre*)[native-inputs]: Add util-linux. --- gnu/packages/linux.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 686eb40587..48dda8cda9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1071,7 +1071,9 @@ (define* (make-linux-libre* version gnu-revision source supported-systems ;; These are needed to compile the GCC plugins. gmp mpfr - mpc)) + mpc + ;; Provide hexdump command, needed on aarch64. + util-linux)) (home-page "https://www.gnu.org/software/linux-libre/") (synopsis "100% free redistribution of a cleaned Linux kernel") (description "GNU Linux-Libre is a free (as in freedom) variant of the base-commit: 6eb0070f088cfdc4edb98fcfbea4b7aa68a2e30a -- 2.41.0