Change:
Steps to reproduce the behavior: linuxKernel.kernels.linux54hardened (with ) This causes many failure in Hydra (one per module). The non-hardened version works fine. Other kernel versions work fine. (for previous ZHF discussion) ZHF: Please run and paste the result.
This is linked with commit (Feb 21 23:41:34 2023): "use , not assert"
linuxKernel.kernels.linux54_hardened was introduced in and seems to build fine at this commit. I am going to from this point.
The commit breaking linuxKernel.kernels.linux54_hardened is (found via bisect).
Could this be the same as ? Since the build failure is actually in , not the actual kernel build.
I confirm that the build failure is linuxKernel.kernels.linux54hardened.configfile. It seems that specifies that uses gcc10: but adding in outputs . There is definitely something off in these Nix expressions. I don't understand why the derivation sees gcc12 rather than gcc10.
: It looks like there is another definition here which doesn't override the stdenv: But since the failures are happening in the kernel package-set, I don't believe the kernel with the missing stdenv is related.

Discussion:
DEBUG_SG              = yes; SCHED_STACK_END_CHECK = yes; <del> REFCOUNT_FULL = whenOlder "5.5" yes; </del> <ins> REFCOUNT_FULL = whenOlder "5.4.208" yes; </ins> # Randomize page allocator when page_alloc.shuffle=1 SHUFFLE_PAGE_ALLOCATOR = whenAtLeast "5.2" yes;

inherit sha256; }; extraMeta = { <del> broken = kernel.meta.broken || lib.versions.majorMinor version == "4.14" || (stdenv.isx86_64 && lib.versionAtLeast version "4.19" && lib.versionOlder version "5.5"); </del> <ins> broken = kernel.meta.broken; </ins> }; }; kernelPatches = kernel.kernelPatches ++ [

linux_hardened = hardenedKernelFor packageAliases.linux_default.kernel { }; <del> linux_4_14_hardened = hardenedKernelFor kernels.linux_4_14 { }; linux_4_19_hardened = hardenedKernelFor kernels.linux_4_19 { }; linux_5_4_hardened = hardenedKernelFor kernels.linux_5_4 { }; </del> <ins> linux_4_14_hardened = hardenedKernelFor kernels.linux_4_14 { stdenv = gcc10Stdenv; buildPackages = buildPackages // { stdenv = buildPackages.gcc10Stdenv; }; }; linux_4_19_hardened = hardenedKernelFor kernels.linux_4_19 { stdenv = gcc10Stdenv; buildPackages = buildPackages // { stdenv = buildPackages.gcc10Stdenv; }; }; linux_5_4_hardened = hardenedKernelFor kernels.linux_5_4 { stdenv = gcc10Stdenv; buildPackages = buildPackages // { stdenv = buildPackages.gcc10Stdenv; }; }; </ins> linux_5_10_hardened = hardenedKernelFor kernels.linux_5_10 { }; linux_5_15_hardened = hardenedKernelFor kernels.linux_5_15 { }; linux_6_1_hardened = hardenedKernelFor kernels.linux_6_1 { };

linux_testing = packagesFor kernels.linux_testing; linux_testing_bcachefs = recurseIntoAttrs (packagesFor kernels.linux_testing_bcachefs); <del> linux_hardened = recurseIntoAttrs (hardenedPackagesFor packageAliases.linux_default.kernel { }); </del> <ins> linux_hardened = recurseIntoAttrs (packagesFor kernels.linux_hardened); </ins> <del> linux_4_14_hardened = recurseIntoAttrs (hardenedPackagesFor kernels.linux_4_14 { stdenv = gcc10Stdenv; buildPackages = buildPackages // { stdenv = buildPackages.gcc10Stdenv; }; }); linux_4_19_hardened = recurseIntoAttrs (hardenedPackagesFor kernels.linux_4_19 { stdenv = gcc10Stdenv; buildPackages = buildPackages // { stdenv = buildPackages.gcc10Stdenv; }; }); linux_5_4_hardened = recurseIntoAttrs (hardenedPackagesFor kernels.linux_5_4 { stdenv = gcc10Stdenv; buildPackages = buildPackages // { stdenv = buildPackages.gcc10Stdenv; }; }); linux_5_10_hardened = recurseIntoAttrs (hardenedPackagesFor kernels.linux_5_10 { }); linux_5_15_hardened = recurseIntoAttrs (hardenedPackagesFor kernels.linux_5_15 { }); linux_6_1_hardened = recurseIntoAttrs (hardenedPackagesFor kernels.linux_6_1 { }); </del> <ins> linux_4_14_hardened = recurseIntoAttrs (packagesFor kernels.linux_4_14_hardened); linux_4_19_hardened = recurseIntoAttrs (packagesFor kernels.linux_4_19_hardened); linux_5_4_hardened = recurseIntoAttrs (packagesFor kernels.linux_5_4_hardened); linux_5_10_hardened = recurseIntoAttrs (packagesFor kernels.linux_5_10_hardened); linux_5_15_hardened = recurseIntoAttrs (packagesFor kernels.linux_5_15_hardened); linux_6_1_hardened = recurseIntoAttrs (packagesFor kernels.linux_6_1_hardened); </ins> linux_zen = recurseIntoAttrs (packagesFor kernels.linux_zen); linux_lqx = recurseIntoAttrs (packagesFor kernels.linux_lqx);