Nixos-rebuild error: dmraid. Anyone else?

Hi everyone.
Today, I decided to update my system but got this error concerning dmraid, which makes os-prober fail, which makes grub fail, whick makes my update fail.

Note that I am on the unstable channel. Should I just fix dmevent_tool.c myself?

error: builder for '/nix/store/6gq1rkbzsdbdrdqp2i3w0ylx0x98znah-dmraid-1.0.0.rc16.drv' failed with exit code 2;
last 10 log lines:
       dmevent_tool.c: In function '_process_opt':
       dmevent_tool.c:151:25: error: 'return' with no value, in function returning non-void [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-return-mismatch-Wreturn-mismatch8;;]
         151 |                         return;
             |                         ^~~~~~
       dmevent_tool.c:126:8: note: declared here
         126 | static _process_opt(int opt, const char *cmd)
             |        ^~~~~~~~~~~~
       make[1]: *** [Makefile:78: dmevent_tool] Error 1
       make[1]: Leaving directory '/build/dmraid/1.0.0.rc16/tools'
       make: *** [make.tmpl:115: tools] Error 2
1 Like

I have also the same problem on my config, also using unstable. However the most recent commit was made to prevent this from happening with the file inclusion here (dmraid: patch dmevent_tool.c to compile on modern gcc versions · NixOS/nixpkgs@f298cd7 · GitHub) so are the patches not applied or something ?

It takes a couple of days for a PR to make it into unstable once it’s merged. Be patient. Tracker: Nixpkgs PR #368470 ("dmraid: patch dmevent_tool.c to compile on modern gcc versions (#367926)") progress

2 Likes

Thanks for the heads up! I thought the problem was on my side, this is why I didn’t think to check upstream.