kuruczgy / x1e-nixos-config

NixOS configs for the Lenovo Yoga Slim 7x
MIT License
17 stars 4 forks source link

Kernel failed to build: undefined reference to zlib deflation functions #32

Open powpingdone opened 6 hours ago

powpingdone commented 6 hours ago
  LD      .tmp_vmlinux1
/nix/store/wj7hxrvf8jqipkdry7x6ii1ds1ry2hd5-binutils-2.43.1/bin/ld: warning: -z relro ignored
/nix/store/wj7hxrvf8jqipkdry7x6ii1ds1ry2hd5-binutils-2.43.1/bin/ld: Unexpected GOT/PLT entries detected!
/nix/store/wj7hxrvf8jqipkdry7x6ii1ds1ry2hd5-binutils-2.43.1/bin/ld: Unexpected run-time procedure linkages detected!
/nix/store/wj7hxrvf8jqipkdry7x6ii1ds1ry2hd5-binutils-2.43.1/bin/ld: drivers/gpu/drm/drm_panic.o: in function `drm_panic_qr_init':
/build/source/build/../drivers/gpu/drm/drm_panic.c:678:(.init.text+0x9c): undefined reference to `zlib_deflate_workspacesize'
make[2]: *** [../scripts/Makefile.vmlinux:34: vmlinux] Error 1
make[1]: *** [/build/source/Makefile:1166: vmlinux] Error 2
make: *** [../Makefile:224: __sub-make] Error 2

Got this bizzare error. Flake is on https://github.com/NixOS/nixpkgs/commit/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0 .

powpingdone commented 6 hours ago

Also, same error happened when using kernel 6.12-rc3

powpingdone commented 4 hours ago

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers?id=2ad84af4cff9121827d3dd35e293478bdb0b58bb This might be the fix, testing patch.

powpingdone commented 4 hours ago

Patch seems to be correct. Got successful build.