Skip to content

Conversation

@8bitbuddhist
Copy link
Contributor

@8bitbuddhist 8bitbuddhist commented Nov 29, 2025

Description of changes

Adds a patch for older kernel versions so they can build using Rust 1.91, which is used in NixOS 25.11. This fixes a build error and #1685.

Update: Due to a cryptic build error, Rust is disabled for the 6.12 (longterm) kernel. It can be re-enabled for the next LTS kernel (6.18).

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

Copy link
Contributor

@Majiir Majiir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Writing this from my Surface 3 Pro running kernel 6.15.9 using this nixos-hardware patch.

@8bitbuddhist 8bitbuddhist marked this pull request as ready for review November 29, 2025 23:21
@bvgcat
Copy link

bvgcat commented Nov 30, 2025

Can also confirm on the Surface Go running kernel 6.15.9

@TwoUnderscorez
Copy link

I've set my input like so,
nixos-hardware.url = "github:NixOS/nixos-hardware?ref=pull/1690/head";
And when I try to build for my Surface Pro 7+ I'm getting this error

output from `nix log`
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/n79b1xcnfra1mliaj5wim1rbgl5anpb7-linux-6.12.19.tar.xz
source root is linux-6.12.19
setting SOURCE_DATE_EPOCH to timestamp 1741867340 of file "linux-6.12.19/virt/lib/irqbypass.c"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0001-secureboot.patch
patching file arch/x86/boot/header.S
patching file Documentation/admin-guide/kernel-parameters.txt
patching file kernel/power/hibernate.c
Hunk #3 succeeded at 1432 (offset 5 lines).
Hunk #4 succeeded at 1496 (offset 5 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0002-surface3-oemb.patch
patching file drivers/platform/surface/surface3-wmi.c
patching file sound/soc/codecs/rt5645.c
patching file sound/soc/intel/common/soc-acpi-intel-cht-match.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0003-mwifiex.patch
patching file drivers/net/wireless/marvell/mwifiex/pcie.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.h
patching file drivers/net/wireless/marvell/mwifiex/pcie.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.h
patching file drivers/bluetooth/btusb.c
Hunk #3 succeeded at 3864 (offset 25 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0004-ath10k.patch
patching file drivers/net/wireless/ath/ath10k/core.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0005-ipts.patch
patching file drivers/misc/mei/hw-me-regs.h
patching file drivers/misc/mei/pci-me.c
patching file drivers/iommu/intel/iommu.c
Hunk #5 succeeded at 4668 (offset 4 lines).
Hunk #6 succeeded at 4715 (offset 4 lines).
patching file drivers/hid/Kconfig
patching file drivers/hid/Makefile
patching file drivers/hid/ipts/Kconfig
patching file drivers/hid/ipts/Makefile
patching file drivers/hid/ipts/cmd.c
patching file drivers/hid/ipts/cmd.h
patching file drivers/hid/ipts/context.h
patching file drivers/hid/ipts/control.c
patching file drivers/hid/ipts/control.h
patching file drivers/hid/ipts/desc.h
patching file drivers/hid/ipts/eds1.c
patching file drivers/hid/ipts/eds1.h
patching file drivers/hid/ipts/eds2.c
patching file drivers/hid/ipts/eds2.h
patching file drivers/hid/ipts/hid.c
patching file drivers/hid/ipts/hid.h
patching file drivers/hid/ipts/main.c
patching file drivers/hid/ipts/mei.c
patching file drivers/hid/ipts/mei.h
patching file drivers/hid/ipts/receiver.c
patching file drivers/hid/ipts/receiver.h
patching file drivers/hid/ipts/resources.c
patching file drivers/hid/ipts/resources.h
patching file drivers/hid/ipts/spec-data.h
patching file drivers/hid/ipts/spec-device.h
patching file drivers/hid/ipts/spec-hid.h
patching file drivers/hid/ipts/thread.c
patching file drivers/hid/ipts/thread.h
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0006-ithc.patch
patching file drivers/iommu/intel/irq_remapping.c
patching file drivers/hid/Kconfig
patching file drivers/hid/Makefile
patching file drivers/hid/ithc/Kbuild
patching file drivers/hid/ithc/Kconfig
patching file drivers/hid/ithc/ithc-debug.c
patching file drivers/hid/ithc/ithc-debug.h
patching file drivers/hid/ithc/ithc-dma.c
patching file drivers/hid/ithc/ithc-dma.h
patching file drivers/hid/ithc/ithc-hid.c
patching file drivers/hid/ithc/ithc-hid.h
patching file drivers/hid/ithc/ithc-legacy.c
patching file drivers/hid/ithc/ithc-legacy.h
patching file drivers/hid/ithc/ithc-main.c
patching file drivers/hid/ithc/ithc-quickspi.c
patching file drivers/hid/ithc/ithc-quickspi.h
patching file drivers/hid/ithc/ithc-regs.c
patching file drivers/hid/ithc/ithc-regs.h
patching file drivers/hid/ithc/ithc.h
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0007-surface-sam-over-hid.patch
patching file drivers/i2c/i2c-core-acpi.c
Hunk #1 succeeded at 661 (offset 22 lines).
Hunk #2 succeeded at 783 (offset 22 lines).
patching file drivers/platform/surface/Kconfig
patching file drivers/platform/surface/Makefile
patching file drivers/platform/surface/surfacebook1_dgpu_switch.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0008-surface-button.patch
patching file drivers/input/misc/soc_button_array.c
patching file drivers/platform/surface/surfacepro3_button.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0009-surface-typecover.patch
patching file drivers/usb/core/quirks.c
patching file drivers/hid/hid-multitouch.c
Hunk #7 succeeded at 1773 (offset 2 lines).
Hunk #8 succeeded at 1859 (offset 2 lines).
Hunk #9 succeeded at 1900 (offset 2 lines).
Hunk #10 succeeded at 1912 (offset 2 lines).
Hunk #11 succeeded at 1965 (offset 2 lines).
Hunk #12 succeeded at 2389 (offset -1 lines).
patching file drivers/hid/hid-multitouch.c
Hunk #9 succeeded at 1686 (offset -1 lines).
Hunk #10 succeeded at 1770 (offset -1 lines).
Hunk #11 succeeded at 1862 (offset 2 lines).
Hunk #12 succeeded at 1870 (offset 2 lines).
Hunk #13 succeeded at 2009 (offset 2 lines).
Hunk #14 succeeded at 2035 (offset 2 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0010-surface-shutdown.patch
patching file drivers/pci/pci-driver.c
patching file drivers/pci/quirks.c
Hunk #1 succeeded at 6314 (offset 13 lines).
patching file include/linux/pci.h
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0011-surface-gpe.patch
patching file drivers/platform/surface/surface_gpe.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0012-cameras.patch
patching file drivers/acpi/scan.c
patching file drivers/iommu/intel/iommu.c
Hunk #5 succeeded at 4683 (offset 4 lines).
Hunk #6 succeeded at 4742 (offset 4 lines).
patching file drivers/platform/x86/intel/int3472/tps68470.c
patching file drivers/platform/x86/intel/int3472/discrete.c
patching file drivers/media/i2c/ov7251.c
patching file drivers/media/v4l2-core/v4l2-async.c
patching file drivers/media/v4l2-core/v4l2-fwnode.c
patching file drivers/platform/x86/intel/int3472/tps68470.c
Hunk #2 succeeded at 203 (offset 3 lines).
patching file include/linux/mfd/tps68470.h
patching file drivers/leds/Kconfig
patching file drivers/leds/Makefile
patching file drivers/leds/leds-tps68470.c
patching file drivers/media/i2c/dw9719.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0013-amd-gpio.patch
patching file arch/x86/kernel/acpi/boot.c
Hunk #2 succeeded at 1173 (offset 40 lines).
Hunk #3 succeeded at 1239 (offset 40 lines).
patching file arch/x86/kernel/acpi/boot.c
Hunk #1 succeeded at 1175 (offset 40 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0014-rtc.patch
patching file drivers/acpi/acpi_tad.c
applying patch /nix/store/g0mplrf0iwkw099j45dcz4pxnd3fk65k-rust_1-91_fix.patch
patching file scripts/generate_rust_target.rs
Hunk #1 succeeded at 223 (offset -2 lines).
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 247 with fuzz 1 (offset -2 lines).
applying patch /nix/store/23728y7zgh1jb55kpwxv5qnjbq0ykca6-randstruct-provide-seed-5.19.patch
patching file scripts/gen-randstruct-seed.sh
patching script interpreter paths in scripts/ld-version.sh
scripts/ld-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
substituteStream() in derivation linux-6.12.19: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'scripts/gen-randstruct-seed.sh')
patching script interpreter paths in scripts
scripts/objdiff: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/mkcompile_h: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gfp-translate: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/checkstack.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/patch-kernel: interpreter directive changed from "#! /bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/split-man.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/checkincludes.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/config: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/check_extable.sh: interpreter directive changed from "#! /bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/profile2linkerlist.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/check-variable-fonts.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/cc-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/pahole-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/file-size.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/stackdelta: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/make_fit.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/checkversion.pl: interpreter directive changed from "#! /usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/find-unused-docs.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/kconfig/gconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/nconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/merge_config.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/mconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/streamline_config.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/kconfig/qconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/coccicheck: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/extract-module-sig.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/checkdeclares.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/mkuboot.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/objdump-func: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/show_delta: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python"
scripts/syscalltbl.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/parse-maintainers.pl: interpreter directive changed from "#!/usr/bin/perl -w" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl -w"
scripts/dev-needs.sh: interpreter directive changed from "#! /bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/cleanpatch: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/tracing/ftrace-bisect.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/tracing/draw_functrace.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python"
scripts/diffconfig: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/recordmcount.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/min-tool-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/syscallhdr.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/cc-can-link.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kernel-doc: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/bootgraph.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/generate_rust_analyzer.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/bloat-o-meter: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/tools-support-relr.sh: interpreter directive changed from "#!/bin/sh -eu" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh -eu"
scripts/export_report.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/verify_builtin_ranges.awk: interpreter directive changed from "#!/usr/bin/gawk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/gawk -f"
scripts/modules-check.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/bpf_doc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/extract-sys-certs.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/jobserver-exec: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/extract-vmlinux: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/checktransupdate.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/relocs_check.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rust_is_available.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/ver_linux: interpreter directive changed from "#!/usr/bin/awk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/awk -f"
scripts/sphinx-pre-install: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/remove-stale-files: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/extract-ikconfig: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/misc-check: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/documentation-file-ref-check: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/extract_xc3028.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/spdxcheck.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/build-version: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rustc-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gen-randstruct-seed.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/headers_install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/checkpatch.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/link-vmlinux.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/faddr2line: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/generate_builtin_ranges.awk: interpreter directive changed from "#!/usr/bin/gawk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/gawk -f"
scripts/clang-tools/gen_compile_commands.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/clang-tools/run-clang-tools.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/syscallnr.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/checkkconfigsymbols.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/generate_initcall_order.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/check-uapi.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/decodecode: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/mksysmap: interpreter directive changed from "#!/bin/sed -f" to "/nix/store/drc7kang929jaza6cy9zdx10s4gw1z5p-gnused-4.9/bin/sed -f"
scripts/tags.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/checksyscalls.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/macro_checker.py: interpreter directive changed from "#!/usr/bin/python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/decode_stacktrace.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/stackusage: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/leaking_addresses.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/markup_oops.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/atomic/gen-atomics.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/gen-atomic-long.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/atomic-tbl.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/gen-atomic-fallback.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/gen-atomic-instrumented.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/get_abi.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/cleanfile: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/dtc/of_unittest_expect: interpreter directive changed from "#!/usr/bin/perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/dtc/dt_to_config: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/dtc/dtx_diff: interpreter directive changed from "#! /bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/dtc/dt-extract-compatibles: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/dtc/update-dtc-source.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/depmod.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/check-sysctl-docs: interpreter directive changed from "#!/usr/bin/gawk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/gawk -f"
scripts/package/install-extmod-build: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/buildtar: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/gen-diff-patch: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/mkdebian: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/builddeb: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/debian/rules: interpreter directive changed from "#!/usr/bin/make -f" to "/nix/store/3fmzbq9y4m9nk235il7scmvwn8j9zy3p-gnumake-4.4.1/bin/make -f"
scripts/package/mkspec: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/makelst: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gcc-x86_64-has-stack-protector.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gcc-x86_32-has-stack-protector.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/dummy-tools/gcc: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/dummy-tools/ld: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/dummy-tools/pahole: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/check-git: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/xz_wrap.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/Lindent: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/headerdep.pl: interpreter directive changed from "#! /usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/xen-hypercalls.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rustc-llvm-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rust_is_available_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/get_maintainer.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/get_dvb_firmware: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/prune-kernel: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/selinux/install_policy.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/setlocalversion: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/get_feat.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/as-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/riscv/boot/install.sh
arch/riscv/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/s390/boot/install.sh
arch/s390/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/powerpc/boot/install.sh
arch/powerpc/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/x86/boot/install.sh
arch/x86/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/arm/boot/install.sh
arch/arm/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/nios2/boot/install.sh
arch/nios2/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/sparc/boot/install.sh
arch/sparc/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/parisc/install.sh
arch/parisc/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/m68k/install.sh
arch/m68k/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/arm64/boot/install.sh
arch/arm64/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
manual-config configurePhase buildRoot=/build/linux-6.12.19/build pwd=/build/linux-6.12.19
'/build/linux-6.12.19/build/.config' -> '/nix/store/0h1r1bkdvbwbznij7vqgqhbrvhjz9fjx-linux-config-6.12.19'
make[1]: Entering directory '/build/linux-6.12.19/build'
  GEN     Makefile
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
#
# No change to .config
#
make[1]: Leaving directory '/build/linux-6.12.19/build'
make[1]: Entering directory '/build/linux-6.12.19/build'
  GEN     arch/x86/include/generated/asm/orc_hash.h
  GEN     Makefile
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTRUSTC scripts/generate_rust_target
  UPD     scripts/target.json
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/errno.h
  WRAP    arch/x86/include/generated/uapi/asm/fcntl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctls.h
  WRAP    arch/x86/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/x86/include/generated/uapi/asm/param.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/uapi/asm/resource.h
  WRAP    arch/x86/include/generated/uapi/asm/socket.h
  WRAP    arch/x86/include/generated/uapi/asm/sockios.h
  WRAP    arch/x86/include/generated/uapi/asm/termbits.h
  WRAP    arch/x86/include/generated/uapi/asm/termios.h
  WRAP    arch/x86/include/generated/uapi/asm/types.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mmzone.h
  WRAP    arch/x86/include/generated/asm/irq_regs.h
  WRAP    arch/x86/include/generated/asm/kmap_size.h
  WRAP    arch/x86/include/generated/asm/local64.h
  WRAP    arch/x86/include/generated/asm/mmiowb.h
  WRAP    arch/x86/include/generated/asm/module.lds.h
  WRAP    arch/x86/include/generated/asm/rwonce.h
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  UPD     include/generated/compile.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/symsearch.o
  HOSTLD  scripts/mod/modpost
  UPD     include/generated/timeconst.h
  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  UPD     include/generated/asm-offsets.h
  CALL    ../scripts/checksyscalls.sh
  CHKSHA1 ../include/linux/atomic/atomic-arch-fallback.h
  CHKSHA1 ../include/linux/atomic/atomic-instrumented.h
  CHKSHA1 ../include/linux/atomic/atomic-long.h
  DESCEND objtool
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/exec-cmd.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/help.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/pager.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/parse-options.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/run-command.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/sigchain.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/subcmd-config.o
  LD      /build/linux-6.12.19/build/tools/objtool/libsubcmd/libsubcmd-in.o
  AR      /build/linux-6.12.19/build/tools/objtool/libsubcmd/libsubcmd.a
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/exec-cmd.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/help.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/pager.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/parse-options.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/run-command.h
  INSTALL libsubcmd_headers
  MKDIR   /build/linux-6.12.19/build/tools/objtool/arch/x86/
  CC      /build/linux-6.12.19/build/tools/objtool/arch/x86/special.o
  MKDIR   /build/linux-6.12.19/build/tools/objtool/arch/x86/lib/
  GEN     /build/linux-6.12.19/build/tools/objtool/arch/x86/lib/inat-tables.c
  CC      /build/linux-6.12.19/build/tools/objtool/arch/x86/decode.o
  CC      /build/linux-6.12.19/build/tools/objtool/arch/x86/orc.o
  LD      /build/linux-6.12.19/build/tools/objtool/arch/x86/objtool-in.o
  CC      /build/linux-6.12.19/build/tools/objtool/weak.o
  CC      /build/linux-6.12.19/build/tools/objtool/check.o
  CC      /build/linux-6.12.19/build/tools/objtool/special.o
  CC      /build/linux-6.12.19/build/tools/objtool/builtin-check.o
  CC      /build/linux-6.12.19/build/tools/objtool/elf.o
  CC      /build/linux-6.12.19/build/tools/objtool/objtool.o
  CC      /build/linux-6.12.19/build/tools/objtool/orc_gen.o
  CC      /build/linux-6.12.19/build/tools/objtool/orc_dump.o
  CC      /build/linux-6.12.19/build/tools/objtool/libstring.o
  CC      /build/linux-6.12.19/build/tools/objtool/libctype.o
  CC      /build/linux-6.12.19/build/tools/objtool/str_error_r.o
  CC      /build/linux-6.12.19/build/tools/objtool/librbtree.o
  LD      /build/linux-6.12.19/build/tools/objtool/objtool-in.o
  LINK    /build/linux-6.12.19/build/tools/objtool/objtool
  DESCEND bpf/resolve_btfids
  MKDIR     /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/
  GEN     /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/nlattr.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_errno.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/str_error.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/netlink.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf_prog_linfo.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_probes.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/hashmap.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_dump.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/ringbuf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/strset.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/linker.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/gen_loader.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/relo_core.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/usdt.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/zip.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/elf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/features.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_iter.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_relocate.o
  LD      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
  LINK    /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/libbpf.a
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/btf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_common.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_legacy.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_helpers.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_tracing.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_endian.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_core_read.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/skel_internal.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_version.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/usdt.bpf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_helper_defs.h
  INSTALL libbpf_headers
  MKDIR     /build/linux-6.12.19/build/tools/bpf/resolve_btfids//libsubcmd
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/exec-cmd.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/help.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/pager.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/parse-options.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/run-command.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/sigchain.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/subcmd-config.o
  LD      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/libsubcmd-in.o
  AR      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/libsubcmd.a
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/exec-cmd.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/help.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/pager.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/parse-options.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/run-command.h
  INSTALL libsubcmd_headers
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/main.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/rbtree.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/zalloc.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/string.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/ctype.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/str_error_r.o
  HOSTLD  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/resolve_btfids-in.o
  LINK     resolve_btfids
  RUSTC L rust/core.o
�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:363:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m363�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:375:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m375�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:432:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m432�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:445:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m445�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/iter.rs:1384:12�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1384�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(rest) = self.v.get(n..)�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/iter.rs:1385:16�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1385�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m            && let Some(nth) = rest.get(..size)�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/str/iter.rs:59:20�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m59�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                && let Some(chunk) = chunks.next()�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror[E0700]�[0m�[0m�[1m: hidden type for `impl fmt::Display` captures lifetime that does not appear in bounds�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/ffi/c_str.rs:651:9�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m650�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    pub fn display(&self) -> impl fmt::Display {�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;12m-----�[0m�[0m     �[0m�[0m�[1m�[38;5;12m-----------------�[0m�[0m �[0m�[0m�[1m�[38;5;12mopaque type defined here�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;12mhidden type `&ByteStr` captures the anonymous lifetime defined here�[0m
�[0m�[1m�[38;5;12m651�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        crate::bstr::ByteStr::from_bytes(self.to_bytes())�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;14mhelp�[0m�[0m: add a `use<...>` bound to explicitly capture `'_`�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m650�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m    pub fn display(&self) -> impl fmt::Display�[0m�[0m�[38;5;10m + use<'_>�[0m�[0m {�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                                                �[0m�[0m�[38;5;10m+++++++++�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: aborting due to 8 previous errors�[0m

�[0m�[1mFor more information about this error, try `rustc --explain E0700`.�[0m
make[3]: *** [../rust/Makefile:413: rust/core.o] Error 1
make[2]: *** [/build/linux-6.12.19/Makefile:1222: prepare] Error 2
make[1]: *** [/build/linux-6.12.19/Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/build/linux-6.12.19/build'
make: *** [Makefile:224: __sub-make] Error 2

If I set hardware.microsoft-surface.kernelVersion = "stable"; then the build works but I've seen a few errors to the effect of Error running rustfmt, no such file or directory, not fatal, continuing and patchelf: wrong type of elf scroll by.

Didn't get a chance to boot yet, let me know if I'm doing something wrong as I'm fairly new to nix.

@matthiasdotsh
Copy link
Contributor

I've set my input like so,
nixos-hardware.url = "github:NixOS/nixos-hardware?ref=pull/1690/head";

Please try
nixos-hardware.url = "github:8bitbuddhist/nixos-hardware?ref=surface-rust-target-spec-fix";

@TwoUnderscorez
Copy link

@matthiasdotsh

Please try nixos-hardware.url = "github:8bitbuddhist/nixos-hardware?ref=surface-rust-target-spec-fix";

I think I'm getting same error but here is the output just in case:

output from `nix log`
structuredAttrs is enabled
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/n79b1xcnfra1mliaj5wim1rbgl5anpb7-linux-6.12.19.tar.xz
source root is linux-6.12.19
setting SOURCE_DATE_EPOCH to timestamp 1741867340 of file "linux-6.12.19/virt/lib/irqbypass.c"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0001-secureboot.patch
patching file arch/x86/boot/header.S
patching file Documentation/admin-guide/kernel-parameters.txt
patching file kernel/power/hibernate.c
Hunk #3 succeeded at 1432 (offset 5 lines).
Hunk #4 succeeded at 1496 (offset 5 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0002-surface3-oemb.patch
patching file drivers/platform/surface/surface3-wmi.c
patching file sound/soc/codecs/rt5645.c
patching file sound/soc/intel/common/soc-acpi-intel-cht-match.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0003-mwifiex.patch
patching file drivers/net/wireless/marvell/mwifiex/pcie.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.h
patching file drivers/net/wireless/marvell/mwifiex/pcie.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.c
patching file drivers/net/wireless/marvell/mwifiex/pcie_quirks.h
patching file drivers/bluetooth/btusb.c
Hunk #3 succeeded at 3864 (offset 25 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0004-ath10k.patch
patching file drivers/net/wireless/ath/ath10k/core.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0005-ipts.patch
patching file drivers/misc/mei/hw-me-regs.h
patching file drivers/misc/mei/pci-me.c
patching file drivers/iommu/intel/iommu.c
Hunk #5 succeeded at 4668 (offset 4 lines).
Hunk #6 succeeded at 4715 (offset 4 lines).
patching file drivers/hid/Kconfig
patching file drivers/hid/Makefile
patching file drivers/hid/ipts/Kconfig
patching file drivers/hid/ipts/Makefile
patching file drivers/hid/ipts/cmd.c
patching file drivers/hid/ipts/cmd.h
patching file drivers/hid/ipts/context.h
patching file drivers/hid/ipts/control.c
patching file drivers/hid/ipts/control.h
patching file drivers/hid/ipts/desc.h
patching file drivers/hid/ipts/eds1.c
patching file drivers/hid/ipts/eds1.h
patching file drivers/hid/ipts/eds2.c
patching file drivers/hid/ipts/eds2.h
patching file drivers/hid/ipts/hid.c
patching file drivers/hid/ipts/hid.h
patching file drivers/hid/ipts/main.c
patching file drivers/hid/ipts/mei.c
patching file drivers/hid/ipts/mei.h
patching file drivers/hid/ipts/receiver.c
patching file drivers/hid/ipts/receiver.h
patching file drivers/hid/ipts/resources.c
patching file drivers/hid/ipts/resources.h
patching file drivers/hid/ipts/spec-data.h
patching file drivers/hid/ipts/spec-device.h
patching file drivers/hid/ipts/spec-hid.h
patching file drivers/hid/ipts/thread.c
patching file drivers/hid/ipts/thread.h
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0006-ithc.patch
patching file drivers/iommu/intel/irq_remapping.c
patching file drivers/hid/Kconfig
patching file drivers/hid/Makefile
patching file drivers/hid/ithc/Kbuild
patching file drivers/hid/ithc/Kconfig
patching file drivers/hid/ithc/ithc-debug.c
patching file drivers/hid/ithc/ithc-debug.h
patching file drivers/hid/ithc/ithc-dma.c
patching file drivers/hid/ithc/ithc-dma.h
patching file drivers/hid/ithc/ithc-hid.c
patching file drivers/hid/ithc/ithc-hid.h
patching file drivers/hid/ithc/ithc-legacy.c
patching file drivers/hid/ithc/ithc-legacy.h
patching file drivers/hid/ithc/ithc-main.c
patching file drivers/hid/ithc/ithc-quickspi.c
patching file drivers/hid/ithc/ithc-quickspi.h
patching file drivers/hid/ithc/ithc-regs.c
patching file drivers/hid/ithc/ithc-regs.h
patching file drivers/hid/ithc/ithc.h
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0007-surface-sam-over-hid.patch
patching file drivers/i2c/i2c-core-acpi.c
Hunk #1 succeeded at 661 (offset 22 lines).
Hunk #2 succeeded at 783 (offset 22 lines).
patching file drivers/platform/surface/Kconfig
patching file drivers/platform/surface/Makefile
patching file drivers/platform/surface/surfacebook1_dgpu_switch.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0008-surface-button.patch
patching file drivers/input/misc/soc_button_array.c
patching file drivers/platform/surface/surfacepro3_button.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0009-surface-typecover.patch
patching file drivers/usb/core/quirks.c
patching file drivers/hid/hid-multitouch.c
Hunk #7 succeeded at 1773 (offset 2 lines).
Hunk #8 succeeded at 1859 (offset 2 lines).
Hunk #9 succeeded at 1900 (offset 2 lines).
Hunk #10 succeeded at 1912 (offset 2 lines).
Hunk #11 succeeded at 1965 (offset 2 lines).
Hunk #12 succeeded at 2389 (offset -1 lines).
patching file drivers/hid/hid-multitouch.c
Hunk #9 succeeded at 1686 (offset -1 lines).
Hunk #10 succeeded at 1770 (offset -1 lines).
Hunk #11 succeeded at 1862 (offset 2 lines).
Hunk #12 succeeded at 1870 (offset 2 lines).
Hunk #13 succeeded at 2009 (offset 2 lines).
Hunk #14 succeeded at 2035 (offset 2 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0010-surface-shutdown.patch
patching file drivers/pci/pci-driver.c
patching file drivers/pci/quirks.c
Hunk #1 succeeded at 6314 (offset 13 lines).
patching file include/linux/pci.h
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0011-surface-gpe.patch
patching file drivers/platform/surface/surface_gpe.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0012-cameras.patch
patching file drivers/acpi/scan.c
patching file drivers/iommu/intel/iommu.c
Hunk #5 succeeded at 4683 (offset 4 lines).
Hunk #6 succeeded at 4742 (offset 4 lines).
patching file drivers/platform/x86/intel/int3472/tps68470.c
patching file drivers/platform/x86/intel/int3472/discrete.c
patching file drivers/media/i2c/ov7251.c
patching file drivers/media/v4l2-core/v4l2-async.c
patching file drivers/media/v4l2-core/v4l2-fwnode.c
patching file drivers/platform/x86/intel/int3472/tps68470.c
Hunk #2 succeeded at 203 (offset 3 lines).
patching file include/linux/mfd/tps68470.h
patching file drivers/leds/Kconfig
patching file drivers/leds/Makefile
patching file drivers/leds/leds-tps68470.c
patching file drivers/media/i2c/dw9719.c
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0013-amd-gpio.patch
patching file arch/x86/kernel/acpi/boot.c
Hunk #2 succeeded at 1173 (offset 40 lines).
Hunk #3 succeeded at 1239 (offset 40 lines).
patching file arch/x86/kernel/acpi/boot.c
Hunk #1 succeeded at 1175 (offset 40 lines).
applying patch /nix/store/nwrvc7rrvhag0y15qg0jwk47mg3sk95h-source/patches/6.12/0014-rtc.patch
patching file drivers/acpi/acpi_tad.c
applying patch /nix/store/g0mplrf0iwkw099j45dcz4pxnd3fk65k-rust_1-91_fix.patch
patching file scripts/generate_rust_target.rs
Hunk #1 succeeded at 223 (offset -2 lines).
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 247 with fuzz 1 (offset -2 lines).
applying patch /nix/store/23728y7zgh1jb55kpwxv5qnjbq0ykca6-randstruct-provide-seed-5.19.patch
patching file scripts/gen-randstruct-seed.sh
patching script interpreter paths in scripts/ld-version.sh
scripts/ld-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
substituteStream() in derivation linux-6.12.19: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'scripts/gen-randstruct-seed.sh')
patching script interpreter paths in scripts
scripts/objdiff: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/mkcompile_h: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gfp-translate: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/checkstack.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/patch-kernel: interpreter directive changed from "#! /bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/split-man.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/checkincludes.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/config: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/check_extable.sh: interpreter directive changed from "#! /bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/profile2linkerlist.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/check-variable-fonts.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/cc-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/pahole-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/file-size.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/stackdelta: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/make_fit.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/checkversion.pl: interpreter directive changed from "#! /usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/find-unused-docs.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/kconfig/gconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/nconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/merge_config.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/mconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kconfig/streamline_config.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/kconfig/qconf-cfg.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/coccicheck: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/extract-module-sig.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/checkdeclares.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/mkuboot.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/objdump-func: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/show_delta: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python"
scripts/syscalltbl.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/parse-maintainers.pl: interpreter directive changed from "#!/usr/bin/perl -w" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl -w"
scripts/dev-needs.sh: interpreter directive changed from "#! /bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/cleanpatch: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/tracing/ftrace-bisect.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/tracing/draw_functrace.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python"
scripts/diffconfig: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/recordmcount.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/min-tool-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/syscallhdr.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/cc-can-link.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/kernel-doc: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/bootgraph.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/generate_rust_analyzer.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/bloat-o-meter: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/tools-support-relr.sh: interpreter directive changed from "#!/bin/sh -eu" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh -eu"
scripts/export_report.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/verify_builtin_ranges.awk: interpreter directive changed from "#!/usr/bin/gawk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/gawk -f"
scripts/modules-check.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/bpf_doc.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/extract-sys-certs.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/jobserver-exec: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/extract-vmlinux: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/checktransupdate.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/relocs_check.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rust_is_available.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/ver_linux: interpreter directive changed from "#!/usr/bin/awk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/awk -f"
scripts/sphinx-pre-install: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/remove-stale-files: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/extract-ikconfig: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/misc-check: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/documentation-file-ref-check: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/extract_xc3028.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/spdxcheck.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/build-version: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rustc-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gen-randstruct-seed.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/headers_install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/checkpatch.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/link-vmlinux.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/faddr2line: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/generate_builtin_ranges.awk: interpreter directive changed from "#!/usr/bin/gawk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/gawk -f"
scripts/clang-tools/gen_compile_commands.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/clang-tools/run-clang-tools.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/syscallnr.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/checkkconfigsymbols.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/generate_initcall_order.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/check-uapi.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/decodecode: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/mksysmap: interpreter directive changed from "#!/bin/sed -f" to "/nix/store/drc7kang929jaza6cy9zdx10s4gw1z5p-gnused-4.9/bin/sed -f"
scripts/tags.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/checksyscalls.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/macro_checker.py: interpreter directive changed from "#!/usr/bin/python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/decode_stacktrace.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/stackusage: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/leaking_addresses.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/markup_oops.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/atomic/gen-atomics.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/gen-atomic-long.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/atomic-tbl.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/gen-atomic-fallback.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/atomic/gen-atomic-instrumented.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/get_abi.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/cleanfile: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/dtc/of_unittest_expect: interpreter directive changed from "#!/usr/bin/perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/dtc/dt_to_config: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/dtc/dtx_diff: interpreter directive changed from "#! /bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/dtc/dt-extract-compatibles: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/dtc/update-dtc-source.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/depmod.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/check-sysctl-docs: interpreter directive changed from "#!/usr/bin/gawk -f" to "/nix/store/y2wdhdcrffp9hnkzk06d178hq3g98jay-gawk-5.3.2/bin/gawk -f"
scripts/package/install-extmod-build: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/buildtar: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/gen-diff-patch: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/mkdebian: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/builddeb: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/package/debian/rules: interpreter directive changed from "#!/usr/bin/make -f" to "/nix/store/3fmzbq9y4m9nk235il7scmvwn8j9zy3p-gnumake-4.4.1/bin/make -f"
scripts/package/mkspec: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/makelst: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gcc-x86_64-has-stack-protector.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/gcc-x86_32-has-stack-protector.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/dummy-tools/gcc: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/dummy-tools/ld: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/dummy-tools/pahole: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/check-git: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/xz_wrap.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/Lindent: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/headerdep.pl: interpreter directive changed from "#! /usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/xen-hypercalls.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rustc-llvm-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/rust_is_available_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/dhczsvg6acfg2sr94y1qnqzg5ycw1j8y-python3-minimal-3.13.9/bin/python3"
scripts/get_maintainer.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/get_dvb_firmware: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/prune-kernel: interpreter directive changed from "#!/bin/bash" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash"
scripts/selinux/install_policy.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/setlocalversion: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/get_feat.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/h2jsb5i4yfblr2f3ac2c7zpmlmj7zjym-perl-5.40.0/bin/perl"
scripts/as-version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
scripts/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/riscv/boot/install.sh
arch/riscv/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/s390/boot/install.sh
arch/s390/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/powerpc/boot/install.sh
arch/powerpc/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/x86/boot/install.sh
arch/x86/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/arm/boot/install.sh
arch/arm/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/nios2/boot/install.sh
arch/nios2/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/sparc/boot/install.sh
arch/sparc/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/parisc/install.sh
arch/parisc/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/m68k/install.sh
arch/m68k/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
patching script interpreter paths in arch/arm64/boot/install.sh
arch/arm64/boot/install.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/sh"
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
manual-config configurePhase buildRoot=/build/linux-6.12.19/build pwd=/build/linux-6.12.19
'/build/linux-6.12.19/build/.config' -> '/nix/store/0h1r1bkdvbwbznij7vqgqhbrvhjz9fjx-linux-config-6.12.19'
make[1]: Entering directory '/build/linux-6.12.19/build'
  GEN     Makefile
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
#
# No change to .config
#
make[1]: Leaving directory '/build/linux-6.12.19/build'
make[1]: Entering directory '/build/linux-6.12.19/build'
  GEN     arch/x86/include/generated/asm/orc_hash.h
  GEN     Makefile
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTRUSTC scripts/generate_rust_target
  UPD     scripts/target.json
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/errno.h
  WRAP    arch/x86/include/generated/uapi/asm/fcntl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctls.h
  WRAP    arch/x86/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/x86/include/generated/uapi/asm/param.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/uapi/asm/resource.h
  WRAP    arch/x86/include/generated/uapi/asm/socket.h
  WRAP    arch/x86/include/generated/uapi/asm/sockios.h
  WRAP    arch/x86/include/generated/uapi/asm/termbits.h
  WRAP    arch/x86/include/generated/uapi/asm/termios.h
  WRAP    arch/x86/include/generated/uapi/asm/types.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mmzone.h
  WRAP    arch/x86/include/generated/asm/irq_regs.h
  WRAP    arch/x86/include/generated/asm/kmap_size.h
  WRAP    arch/x86/include/generated/asm/local64.h
  WRAP    arch/x86/include/generated/asm/mmiowb.h
  WRAP    arch/x86/include/generated/asm/module.lds.h
  WRAP    arch/x86/include/generated/asm/rwonce.h
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  UPD     include/generated/compile.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTCC  scripts/mod/symsearch.o
  HOSTLD  scripts/mod/modpost
  UPD     include/generated/timeconst.h
  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  UPD     include/generated/asm-offsets.h
  CALL    ../scripts/checksyscalls.sh
  CHKSHA1 ../include/linux/atomic/atomic-arch-fallback.h
  CHKSHA1 ../include/linux/atomic/atomic-instrumented.h
  CHKSHA1 ../include/linux/atomic/atomic-long.h
  DESCEND objtool
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/exec-cmd.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/help.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/pager.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/parse-options.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/run-command.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/sigchain.o
  CC      /build/linux-6.12.19/build/tools/objtool/libsubcmd/subcmd-config.o
  LD      /build/linux-6.12.19/build/tools/objtool/libsubcmd/libsubcmd-in.o
  AR      /build/linux-6.12.19/build/tools/objtool/libsubcmd/libsubcmd.a
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/exec-cmd.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/help.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/pager.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/parse-options.h
  INSTALL /build/linux-6.12.19/build/tools/objtool/libsubcmd/include/subcmd/run-command.h
  INSTALL libsubcmd_headers
  MKDIR   /build/linux-6.12.19/build/tools/objtool/arch/x86/
  CC      /build/linux-6.12.19/build/tools/objtool/arch/x86/special.o
  MKDIR   /build/linux-6.12.19/build/tools/objtool/arch/x86/lib/
  GEN     /build/linux-6.12.19/build/tools/objtool/arch/x86/lib/inat-tables.c
  CC      /build/linux-6.12.19/build/tools/objtool/arch/x86/decode.o
  CC      /build/linux-6.12.19/build/tools/objtool/arch/x86/orc.o
  LD      /build/linux-6.12.19/build/tools/objtool/arch/x86/objtool-in.o
  CC      /build/linux-6.12.19/build/tools/objtool/weak.o
  CC      /build/linux-6.12.19/build/tools/objtool/check.o
  CC      /build/linux-6.12.19/build/tools/objtool/special.o
  CC      /build/linux-6.12.19/build/tools/objtool/builtin-check.o
  CC      /build/linux-6.12.19/build/tools/objtool/elf.o
  CC      /build/linux-6.12.19/build/tools/objtool/objtool.o
  CC      /build/linux-6.12.19/build/tools/objtool/orc_gen.o
  CC      /build/linux-6.12.19/build/tools/objtool/orc_dump.o
  CC      /build/linux-6.12.19/build/tools/objtool/libstring.o
  CC      /build/linux-6.12.19/build/tools/objtool/libctype.o
  CC      /build/linux-6.12.19/build/tools/objtool/str_error_r.o
  CC      /build/linux-6.12.19/build/tools/objtool/librbtree.o
  LD      /build/linux-6.12.19/build/tools/objtool/objtool-in.o
  LINK    /build/linux-6.12.19/build/tools/objtool/objtool
  DESCEND bpf/resolve_btfids
  MKDIR     /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/
  GEN     /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/nlattr.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_errno.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/str_error.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/netlink.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf_prog_linfo.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_probes.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/hashmap.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_dump.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/ringbuf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/strset.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/linker.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/gen_loader.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/relo_core.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/usdt.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/zip.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/elf.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/features.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_iter.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_relocate.o
  LD      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
  LINK    /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf/libbpf.a
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/btf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_common.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_legacy.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_helpers.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_tracing.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_endian.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_core_read.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/skel_internal.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/libbpf_version.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/usdt.bpf.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libbpf//include/bpf/bpf_helper_defs.h
  INSTALL libbpf_headers
  MKDIR     /build/linux-6.12.19/build/tools/bpf/resolve_btfids//libsubcmd
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/exec-cmd.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/help.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/pager.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/parse-options.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/run-command.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/sigchain.o
  CC      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/subcmd-config.o
  LD      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/libsubcmd-in.o
  AR      /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd/libsubcmd.a
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/exec-cmd.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/help.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/pager.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/parse-options.h
  INSTALL /build/linux-6.12.19/build/tools/bpf/resolve_btfids/libsubcmd//include/subcmd/run-command.h
  INSTALL libsubcmd_headers
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/main.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/rbtree.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/zalloc.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/string.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/ctype.o
  HOSTCC  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/str_error_r.o
  HOSTLD  /build/linux-6.12.19/build/tools/bpf/resolve_btfids/resolve_btfids-in.o
  LINK     resolve_btfids
  RUSTC L rust/core.o
�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:363:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m363�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:375:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m375�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:432:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m432�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/index.rs:445:12�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m445�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(new_len) = usize::checked_sub(self.end, self.start)�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/iter.rs:1384:12�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1384�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        if let Some(rest) = self.v.get(n..)�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m            �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/slice/iter.rs:1385:16�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1385�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m            && let Some(nth) = rest.get(..size)�[0m
�[0m     �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: let chains are only allowed in Rust 2024 or later�[0m
�[0m  �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/str/iter.rs:59:20�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m59�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m                && let Some(chunk) = chunks.next()�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m

�[0m�[1m�[38;5;9merror[E0700]�[0m�[0m�[1m: hidden type for `impl fmt::Display` captures lifetime that does not appear in bounds�[0m
�[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/core/src/ffi/c_str.rs:651:9�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m650�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    pub fn display(&self) -> impl fmt::Display {�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;12m-----�[0m�[0m     �[0m�[0m�[1m�[38;5;12m-----------------�[0m�[0m �[0m�[0m�[1m�[38;5;12mopaque type defined here�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                    �[0m�[0m�[1m�[38;5;12mhidden type `&ByteStr` captures the anonymous lifetime defined here�[0m
�[0m�[1m�[38;5;12m651�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m        crate::bstr::ByteStr::from_bytes(self.to_bytes())�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m         �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;14mhelp�[0m�[0m: add a `use<...>` bound to explicitly capture `'_`�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m650�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m    pub fn display(&self) -> impl fmt::Display�[0m�[0m�[38;5;10m + use<'_>�[0m�[0m {�[0m
�[0m    �[0m�[0m�[1m�[38;5;12m|�[0m�[0m                                                �[0m�[0m�[38;5;10m+++++++++�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: aborting due to 8 previous errors�[0m

�[0m�[1mFor more information about this error, try `rustc --explain E0700`.�[0m
make[3]: *** [../rust/Makefile:413: rust/core.o] Error 1
make[2]: *** [/build/linux-6.12.19/Makefile:1222: prepare] Error 2
make[1]: *** [/build/linux-6.12.19/Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/build/linux-6.12.19/build'
make: *** [Makefile:224: __sub-make] Error 2

@oemaix
Copy link

oemaix commented Dec 8, 2025

same problem with surface 5 and kernel 6.12

@8bitbuddhist 8bitbuddhist marked this pull request as draft December 9, 2025 22:43
@8bitbuddhist
Copy link
Contributor Author

8bitbuddhist commented Dec 9, 2025

Edit: I got it to build by just disabling Rust altogether. Probably not the most elegant solution, but it does build 😅

Hey all, thanks for the reports. To be honest, I have no idea how to address this for 6.12, but I'll do what I can to get it building before I mark this as ready. If anyone has any suggestions, please let me know!

@8bitbuddhist 8bitbuddhist force-pushed the surface-rust-target-spec-fix branch from 2ae8fda to f7de836 Compare December 9, 2025 23:29
@8bitbuddhist 8bitbuddhist force-pushed the surface-rust-target-spec-fix branch from f7de836 to e580e56 Compare December 10, 2025 04:22
@8bitbuddhist 8bitbuddhist marked this pull request as ready for review December 10, 2025 12:55
@TwoUnderscorez
Copy link

If I set hardware.microsoft-surface.kernelVersion = "stable"; then the build works...

I am now able to compile both longterm and stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants