XPost: linux.debian.bugs.dist
From:
[email protected]
Control: tag -1 moreinfo
On Fri, 25 Apr 2025 11:38:14 +0200 John Paul Adrian Glaubitz <
[email protected]> wrote:
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).
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.
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmgU+L8ACgkQ57/I7JWG EQk/UhAAx8rgFJ21lWrs26UBJGcd1gX8QPun4nCuqrMx+nup/zv9XNJd7lVpvh1f Ro4fx64sT28i3lXiqO4l8qb/LqicmqvaorO4PZNcBVtLUoFNVqpEByaagnMU1lPN obr+my8qDSExXpAG/DmF9mFNxP+SzzUv66ggBWhFJPHU+0PHgM0hh/dx5WUxmNpX RERXrmKZ8vnQJzVGeZQ+aPzBsEd1vtBERC8izFrKmL8LDx+Pw8Uply2G/qRz27lI tzDYB0FxS0BWZxT4wOv2K3P7oClHmfNSy6QBoNX2wS5XyC87OAxJz3SaIkA0pX4F Tx6aAPWPyHH4z/G/0pp/6ByHnK6rLl1UJaySyp0cf58ev6zFejtWaTm2VSnW6g+I KzLaCQ8wkZAQRa253B8j17fe86doLsKws7RW3Tim5fpaip+r8Jo0xkkuQ4w3hn8y 88Fx4pU7vVsEiddudkAiuX4ko8GJVyv6tgcd4MtZp4YAPdhs72AnJ981vR6di3U5 Syy8un0Kbkmu8qtbWp1ti45bax3Uq6s1r4jC3hN3lSO8/z2niz/Qu1q1/JmQHXc8 mtG5WezyU3r7Ei3eIpXhvNLPMwhrbz1y/S8HXYkobPIHNilE3EKrq0xaQMdwIoI2 wO7Vfi3VkmbdtQIRKpeLB/GtnI7E+jUQxJOiRL6jBLs2T5kLgSk=
=1uGz
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (