Hello, after nix flake update
and nixos-rebuild switch --flake .#nixconfigs
, I got an error below
and I tried nix build -v ... jack1-0.125.0.drv
, I got this
did anyone meet this, if you need more info i’ll add it, Thanks
Hello, after nix flake update
and nixos-rebuild switch --flake .#nixconfigs
, I got an error below
and I tried nix build -v ... jack1-0.125.0.drv
, I got this
did anyone meet this, if you need more info i’ll add it, Thanks
We recently switched the default compiler to GCC 14, which turns some warnings into errors by default. Someone will need to add the following line to the jack1
package.
env.NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
The package is currently unmaintained so might be fastest for you to do that.
Thanks, I solved it, but there are still similar warnings and errors while updating recently, maybe I should wait a bit longer, thanks a lot
Yeah, this GCC bump seemed to be a bit worse than usual – I had to fix five different packages to unbreak my system.
You might be waiting for a while for less used packages. If you can open a PR or at least report an issue, it should greatly reduce the wait time.
@jtojnar Thanks for the hint with the compiler ENV. How can I set this env for my nixos build in my configuration.nix? Do I need an overlay or something like that to set environment variables that are active during build time?
This helped me. I can now update NixOS.
In configuration.nix:
nixpkgs.overlays = [
(final: prev: {
jack1 = prev.jack1.overrideAttrs (_: {
NIX_CFLAGS_COMPILE = [
"-Wno-int-conversion"
"-Wno-incompatible-pointer-types"
];
});
})
];
Why use jack1? The jack2 full client is out and stable on nixpkgs