Debian Bug report logs - #1104080
linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4

version graph

Package: src:linux; Maintainer for src:linux is Debian Kernel Team <[email protected]>;

Reported by: John Paul Adrian Glaubitz <[email protected]>

Date: Fri, 25 Apr 2025 09:39:03 UTC

Severity: normal

Found in version linux/6.12.22-1

Fixed in version linux/6.14.6-1~exp1

Done: Salvatore Bonaccorso <[email protected]>

Full log


Message #5 received at [email protected] (full text, mbox, reply):

Received: (at submit) by bugs.debian.org; 25 Apr 2025 09:38:21 +0000
From [email protected] Fri Apr 25 09:38:21 2025
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_EF,FOURLA,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,
	RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,XMAILER_REPORTBUG
	autolearn=ham autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 23; hammy, 150; neutral, 58; spammy,
	0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
	0.000-+--X-Debbugs-Cc, 0.000-+--H*x:12.0.0, 0.000-+--H*UA:12.0.0,
	0.000-+--H*M:reportbug
Return-path: <[email protected]>
Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:44493)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1u8FVk-00HLNj-2y
	for [email protected]; Fri, 25 Apr 2025 09:38:21 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=fu-berlin.de; s=fub01; h=Date:Message-ID:Subject:To:From:
	Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Reply-To:Cc:
	Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
	Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:
	List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
	bh=iylytwFiaqDV9O4abmfDbLMKsb5wIXb+QUkkxw8mvkU=; t=1745573900; x=1746178700; 
	b=bG7Qf+TqS8cBesdIlm/7YcnwnYuvh6zz+WD4KiBd+IsBEQO9F5zmOE6lSr5jhcnZNVPeGGWYkYU
	b1KWSwvwgq6Gy0GDKVuu0SoX8eA9dbft39ycErt96xGeIXFpkPUYWmvkQFUZ0L4zzlkelFo/XyeUS
	TodZDsLUY8ff6mYjK6aj9LNRqiHd8/5aK5YqwV9vcIZDjqfYtrAsx1FVYEh/iyALbKg4gEsWAmoIZ
	UQzG+pH5zIrk/APxMPjUGH29ktPmv995xf0hTGsmRZo5qEnteg6+eG+aWLEs5YIgvTGZTkXtpNPp8
	pzuTS9exKCYZGje1VVRGEomb9hl9ba9uSpBA==;
Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69])
          by outpost.zedat.fu-berlin.de (Exim 4.98)
          with esmtps (TLS1.3)
          tls TLS_AES_256_GCM_SHA384
          (envelope-from <[email protected]>)
          id 1u8FVf-00000001blw-3QJz; Fri, 25 Apr 2025 11:38:15 +0200
Received: from p5b13afe4.dip0.t-ipconnect.de ([91.19.175.228] helo=z6.fritz.box)
          by inpost2.zedat.fu-berlin.de (Exim 4.98)
          with esmtpsa (TLS1.3)
          tls TLS_AES_256_GCM_SHA384
          (envelope-from <[email protected]>)
          id 1u8FVf-00000004C1e-2Nry; Fri, 25 Apr 2025 11:38:15 +0200
Received: from glaubitz by z6.fritz.box with local (Exim 4.96)
	(envelope-from <[email protected]>)
	id 1u8FVe-00Bkvl-0O;
	Fri, 25 Apr 2025 11:38:14 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: John Paul Adrian Glaubitz <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4
Message-ID: <174557389410.2784722.5226002021271379703.reportbug@z6>
X-Mailer: reportbug 12.0.0
Date: Fri, 25 Apr 2025 11:38:14 +0200
X-Original-Sender: [email protected]
X-Originating-IP: 91.19.175.228
X-ZEDAT-Hint: PO
Delivered-To: [email protected]
Source: linux
Version: 6.12.22-1
Severity: normal
User: [email protected]
Usertags: sh4
X-Debbugs-Cc: [email protected]

Hello,

src:linux currently fails to build from source on sh4 due to the kernel
image compression set to XZ (CONFIG_KERNEL_XZ=y). I tried setting the
compression to GZIP (CONFIG_KERNEL_GZIP=y) in debian/config/sh4/config
and disabling CONFIG_KERNEL_XZ with the following configuration:

##
## file: init/Kconfig
##
## choice: Kernel compression mode
#. Decompression is done by the bootloader, so we need to be
#. conservative here.
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_ZSTD is not set
## end choice
## choice: Compiler optimization level
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
## end choice

But for some reason that still resulted in CONFIG_KERNEL_XZ=y ending up
in the .config file of the sh7751lr kernel image.

However, I can enter the schroot after the failed build, edit the .config
files in /build/reproducible-path/linux-6.12.22/debian/build/build_sh4_none_sh7751r
and manually set CONFIG_KERNEL_GZIP=y and # CONFIG_KERNEL_XZ is not set which
makes the kernel build succeed when just running "make".

Thus, could you modify the configuration on sh4 such that the kernel is
compressed with GZIP instead of XZ (and ZSTD) by default so that the
kernel package builds again on sh4?

Using XZ doesn't make sense on sh4 with its small image sizes anyway.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:24:50 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.