Error builder failed with exit code 2

Hello there! I’m trying to just do a channel update and then rebuild with sudo nixos-rebuild switch but:

make[1]: *** [CMakeFiles/Makefile2:1052: CMakeFiles/pdalcpp.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
error: Cannot build '/nix/store/psxg4qf52s9k29bln3m4zv2dkf73akz1-pdal-2.9.3.drv'.
       Reason: builder failed with exit code 2.
       Output paths:
         /nix/store/4xbfdlhybddvra4qvsr3d5pcnbyij5r9-pdal-2.9.3
error: Cannot build '/nix/store/i2mnzsw5pn6vz36vick4kinqmgki1mcz-vtk-9.5.2.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/dz5apsybxawai8yizfv5lcd4kgpqkyk2-vtk-9.5.2
error: Cannot build '/nix/store/5sbgfyqkfzy72zr5v9rc63bdd36ssj77-f3d-3.5.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/a1wbzmrqhwfyqbz1051a5jj7qjrvaln9-f3d-3.5.0
         /nix/store/w488wr0kz1kia3brg10lzd3y31h6kmgj-f3d-3.5.0-man
error: Cannot build '/nix/store/wwl3gvl0wa9njvzwxgmwcrj5rmalsbhq-system-path.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/jf1qj384nx8lp04xmi2638lp5l96nimr-system-path
error: Cannot build '/nix/store/6281gmqv1rb18czlif09vrip0lbbv77v-nixos-system-nixos-26.11pre1034379.18b9261cb329.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/9vnqzkxyc4jyh9wxl52hv0y9wbrm3css-nixos-system-nixos-26.11pre1034379.18b9261cb329
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 100.

I am (if it wasn’t obvious) not the most NixOS versed, but I am too good for myself to use AI for something like this, so I’d really appreciate some help!

Thanks in advance!!

I’m assuming you are on nixos-unstable, where pdal is currently failing to build.

Either:

  • wait for Nixpkgs Tracker to show the PR updating the pdal version to land in nixos-unstable. Honestly, I’d probably recommend this one.
  • if it’s critical to you that you be able to update your system to a new nixpkgs for some reason
    • patch/overlay your pkgs to incorporate the version change and build pdal locally
    • OR remove pdal and downstream friends from your config, then write a shell.nix/other devshell that pins nixpkgs to a version of nixpkgs where pdal and friends do successfully build and use that for this software in the meantime
    • OR mix multiple versionsof nixpkgs, supplying pdal+friends from a “known good” nixpkgs for that package. If you search this forum for how to mix stable and unstable channels that should basically cover the idea

Yes, i am on nixos-unstable. With the option of waiting it out, are we talking about a week or more time? if it will be just a matter of a day or a few, waiting would also be my favourite pick.

Given that it’s already hit nixos-unstable-small. I would guess a few days to a week, but it’s kinda up to hydra which means a bit of a combination of capacity and luck for the exact timeline