Nixos-rebuild switch --upgrade failed on linuxPackages_5_10

Trying to update via nixos-rebuild switch --upgrade. I have boot.kernelPackages = pkgs.linuxPackages_5_10; set in my config.

The last few lines of output

  LD [M]  drivers/gnss/gnss-ubx.o
  CC [M]  drivers/fpga/dfl-fme-main.o
  LD [M]  drivers/gnss/gnss-sirf.o
  CC [M]  drivers/fpga/dfl-fme-pr.o
  CC [M]  drivers/fpga/dfl-fme-error.o
  CC [M]  drivers/fpga/dfl-fme-perf.o
  LD [M]  drivers/most/most_core.o
  CC [M]  drivers/fpga/dfl-fme-mgr.o
  CC [M]  drivers/fpga/dfl-fme-br.o
  CC [M]  drivers/fpga/dfl-fme-region.o
  CC [M]  drivers/fpga/dfl-afu-main.o
  CC [M]  drivers/fpga/dfl-afu-region.o
  CC [M]  drivers/fpga/dfl-afu-dma-region.o
  LD [M]  drivers/infiniband/sw/siw/siw.o
  CC [M]  drivers/fpga/dfl-afu-error.o
  CC [M]  drivers/fpga/dfl-pci.o
  LD [M]  drivers/fpga/dfl-fme.o
  LD [M]  drivers/fpga/dfl-afu.o
make: *** [../Makefile:192: __sub-make] Error 2
error: builder for '/nix/store/b028mkppzsflbbbvxlqmyfc91v7dvr6x-linux-5.10.192.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/3yd3gj4mm9477ipranwxpaxx0ra24s28-nixos-system-hhhh-23.11pre520855.3e52e76b70d5.drv' failed to build

System info: nix-shell -p nix-info --run "nix-info -m"

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.187, NixOS, 23.11 (Tapir), 23.11pre507671.ef99fa5c5ed`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(imsohexy): `"home-manager, nixos"`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Hydra seems to build the kernel just fine at least on master branch. The log snippet you posted lacks actual error. Can you look up a bit above to see what was the cause of the build failure?

Ah, it’s already fixed by Linux kernel updates 2023-08-30 by Ma27 · Pull Request #252605 · NixOS/nixpkgs · GitHub . If I revert it locally I get the failure as:

  CC [M]  drivers/scsi/aic7xxx/aic79xx_pci.o
../sound/soc/intel/boards/sof_sdw.c:208:41: error: 'RT711_JD2_100K' undeclared here (not in a function)
  208 |                 .driver_data = (void *)(RT711_JD2_100K),
      |                                         ^~~~~~~~~~~~~~

The fix is on it’s way to nixps-unstable: Nixpkgs PR #252605 ("Linux kernel updates 2023-08-30") progress

1 Like

That seems to be it! I guess it was just bad timing to hit an update. Thanks!

1 Like