Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #87302
| Path | csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ben Hutchings <ben@decadent.org.uk> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 |
| Date | Fri, 02 May 2025 19:00:02 +0200 |
| Message-ID | <KI1TY-fSp-7@gated-at.bofh.it> (permalink) |
| References | <KFnHj-g7hO-21@gated-at.bofh.it> <KFnHj-g7hO-21@gated-at.bofh.it> |
| X-Original-To | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Fri May 2 16:57:10 2025 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -4.199 |
| Reply-To | Ben Hutchings <ben@decadent.org.uk>, 1104080@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | Debian Kernel Team <debian-kernel@lists.debian.org> |
| X-Debian-Pr-Message | followup 1104080 |
| X-Debian-Pr-Package | src:linux |
| X-Debian-Pr-Source | linux |
| Content-Type | multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-XnRr3/rLLbWQk6D2emAK" |
| User-Agent | Evolution 3.56.0-1 |
| MIME-Version | 1.0 |
| X-Sa-Exim-Connect-IP | 2a02:578:851f:1502:391e:c5f5:10e2:b9a3 |
| X-Sa-Exim-Mail-From | ben@decadent.org.uk |
| X-Sa-Exim-Scanned | No (on maynard); SAEximRunCond expanded to false |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1902904 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 100 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | 1104080@bugs.debian.org |
| X-Original-Date | Fri, 02 May 2025 18:54:23 +0200 |
| X-Original-Message-ID | <fcace8637c9183068d51df538fdbca539ea0d8b8.camel@decadent.org.uk> |
| X-Original-References | <174557389410.2784722.5226002021271379703.reportbug@z6> <174557389410.2784722.5226002021271379703.reportbug@z6> |
| Xref | csiph.com linux.debian.bugs.dist:1244489 linux.debian.kernel:87302 |
Cross-posted to 2 groups.
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Control: tag -1 moreinfo On Fri, 25 Apr 2025 11:38:14 +0200 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote: > Source: linux > Version: 6.12.22-1 > Severity: normal > User: debian-superh@lists.debian.org > Usertags: sh4 > X-Debbugs-Cc: debian-superh@lists.debian.org > > Hello, > > src:linux currently fails to build from source on sh4 due to the kernel > image compression set to XZ (CONFIG_KERNEL_XZ=y). You didn't say exactly why xz is a problem, but looking at the logs I see xz sometimes failing with an out-of-memory error. Are the sh4 builds running natively? > 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. That change should work, and it does work for me. > 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. Well, speaking of that, you have not yet reported back on whether my fix-sh7785lcr branch works. I just rebased this and uploaded fresh packages to <https://people.debian.org/~benh/packages/linux-sh4/>. If we apply this config change on top of that, the kernel image size for sh7785lcr will again go over the 4 MiB limit. So we would need to either (1) trim the config further or (2) drop the sh7785lcr flavour. I do not intend to spend more time on (1) so this is really up to you (or other sh4 porters) now. Ben. -- Ben Hutchings It's easier to fight for one's principles than to live up to them.
Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2025-04-25 11:40 +0200
Processed: Re: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-05-02 19:00 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 Ben Hutchings <ben@decadent.org.uk> - 2025-05-02 19:00 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2025-05-02 20:10 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 Ben Hutchings <ben@decadent.org.uk> - 2025-05-02 20:20 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2025-05-02 20:20 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 Ben Hutchings <ben@decadent.org.uk> - 2025-05-02 21:00 +0200
Processed: Re: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-05-02 20:20 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 Ben Hutchings <ben@decadent.org.uk> - 2025-05-02 20:20 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2025-05-02 20:20 +0200
Bug#1104080: linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4 Ben Hutchings <ben@decadent.org.uk> - 2025-05-02 20:30 +0200
Bug#1104080: marked as done (linux: Please build with CONFIG_KERNEL_GZIP=y instead of CONFIG_KERNEL_XZ=y on sh4) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-05-09 22:50 +0200
csiph-web