From 90a632097df1d36aa670b015d26dfe2491413da8 Mon Sep 17 00:00:00 2001 From: DuskyElf Date: Fri, 3 Jul 2026 11:43:46 +0530 Subject: [PATCH] fix: remove CC_IS_CLANG and LTO_CLANG_FULL from kernel structuredExtraConfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These options can't be forced via kernel config — CC_IS_CLANG is a def_bool auto-detected from --version, and LTO_CLANG_FULL requires the clang compiler (the build uses GCC from default stdenv). When generate-config.pl tries to answer 'y' for these options with the GCC toolchain, make config rejects the answer, the question-answering loop diverges, and the builder exits 255 with 'Error in reading or end of file' repeated in the log. Also bumps kernel from linux_7_0 to linux_7_1. --- hosts/asus/system.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hosts/asus/system.nix b/hosts/asus/system.nix index 8b6d999..3dcd1d6 100644 --- a/hosts/asus/system.nix +++ b/hosts/asus/system.nix @@ -133,7 +133,7 @@ #kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs-fast-release.linuxPackagesFor ( - pkgs-fast-release.linuxKernel.kernels.linux_7_0.override { + pkgs-fast-release.linuxKernel.kernels.linux_7_1.override { ignoreConfigErrors = true; # Start with an all-no config. It is slightly easiler to pull together @@ -158,9 +158,6 @@ SCHED_SMT = yes; SCHED_MC = yes; SCHED_MC_PRIO = yes; - # Clang options require a lot of extra config - CC_IS_CLANG = lib.mkForce yes; - LTO_CLANG_FULL = lib.mkForce yes; }; } ]; -- 2.51.2