Open d-dedrat opened 2 months ago
cc @stigtsp
I'm also having this same issue, and I'm also happy to help debug/test.
Still an issue after? https://github.com/NixOS/nixos-hardware/pull/1059/files
The message no longer seems related to BTF errors, but the build still doesn't finish.
[...snip...]
CC [M] drivers/net/usb/qmi_wwan.o
CC [M] drivers/net/usb/cdc_mbim.o
CC [M] drivers/net/usb/ch9200.o
CC [M] drivers/net/usb/aqc111.o
CC [M] drivers/net/usb/r8153_ecm.o
LD [M] drivers/net/usb/asix.o
LD [M] drivers/infiniband/hw/hfi1/hfi1.o
make[2]: *** [../scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/build/linux-6.9.3/Makefile:1919: .] Error 2
make: *** [../Makefile:240: __sub-make] Error 2
error: builder for '/nix/store/dl2h0r7srbdq26mv71l6dll43zylzava-linux-6.9.3.drv' failed with exit code 2;
last 25 log lines:
> CC [M] drivers/infiniband/hw/hfi1/verbs.o
> CC [M] drivers/net/usb/usbnet.o
> CC [M] drivers/infiniband/hw/hfi1/verbs_txreq.o
> CC [M] drivers/net/usb/int51x1.o
> CC [M] drivers/infiniband/hw/hfi1/vnic_main.o
> CC [M] drivers/infiniband/hw/hfi1/vnic_sdma.o
> CC [M] drivers/infiniband/hw/hfi1/debugfs.o
> CC [M] drivers/net/usb/cdc-phonet.o
> CC [M] drivers/net/usb/kalmia.o
> CC [M] drivers/net/usb/ipheth.o
> CC [M] drivers/net/usb/sierra_net.o
> CC [M] drivers/net/usb/cx82310_eth.o
> CC [M] drivers/net/usb/cdc_ncm.o
> CC [M] drivers/net/usb/huawei_cdc_ncm.o
> CC [M] drivers/net/usb/lg-vl600.o
> CC [M] drivers/net/usb/qmi_wwan.o
> CC [M] drivers/net/usb/cdc_mbim.o
> CC [M] drivers/net/usb/ch9200.o
> CC [M] drivers/net/usb/aqc111.o
> CC [M] drivers/net/usb/r8153_ecm.o
> LD [M] drivers/net/usb/asix.o
> LD [M] drivers/infiniband/hw/hfi1/hfi1.o
> make[2]: *** [../scripts/Makefile.build:485: drivers] Error 2
> make[1]: *** [/build/linux-6.9.3/Makefile:1919: .] Error 2
> make: *** [../Makefile:240: __sub-make] Error 2
For full logs, run 'nix-store -l /nix/store/dl2h0r7srbdq26mv71l6dll43zylzava-linux-6.9.3.drv'.
error: 1 dependencies of derivation '/nix/store/4bjrn083aw20zm48ibapiwn4bzya5xcy-linux-6.9.3-modules.drv' failed to build
The error seems to be slightly different every time now, but always with a reference to ../scripts/Makefile.build:485
(but not always drivers
). I'm watching the build more closely this time to see if it might have something to do with running out of memory. I've also added the following to my config to see if it helps at all, based on advice from https://wiki.nixos.org/wiki/Linux_kernel#Build_fails:
boot.kernelPatches = [{
name = "debug-info-config";
patch = null;
extraConfig = ''
DEBUG_INFO_BTF n
'';
}];
The build succeeded, so I assume the issue was indeed OOM-related. I'll try building again without the DEBUG_INFO_BTF
patch and see if it'll still finish if I give it enough headroom.
That worked too, so it looks like this might be resolved.
I have a fresh of install of nixos on my surface and tried to add the surface-pro-intel build to my system through the guidelines.
However I encountered this error:
I have seen another issue talking about the BTF, but the situation they were in seemed a little different.
I can provide additional information if need be.