Closed peterldowns closed 6 months ago
Technically not a build failure of ffmpeg but we should get libdevil out of the closure if it's broken.
The offending package should be a rather easy workaround via -Wno-register
but I currently do not have access to a mac.
Apologies for mislabeling the report, and thank you for (a) correcting it, (b) the quick response.
The offending package should be a rather easy workaround via
-Wno-register
but I currently do not have access to a mac.
If you give me a command to run, I can help by running it and telling you if it works!
Setting env.NIX_CFLAGS_COMPILE="-Wno-register";
in the mkDerivation call of the package should do it.
@Atemu sorry, I'm not that experienced with Nix, can you share a snippet of code doing it? Do I need to do it for ffmpeg-full, or just for libdevil? Do I do this in my flake that says to install ffmpeg-full somehow?
If it's easier to just fix it yourself without me, feel free to ignore. Thanks again for the quick response by merging #309423 🙏
OK, seems to work with this overlay on pkgs
:
environment.systemPackages = with pkgs.extend(self: super: {
libdevil = super.libdevil.overrideAttrs (oldAttrs: {
NIX_CFLAGS_COMPILE = "-Wno-register";
});
}); [
# ...
ffmpeg-full
# ...
];
Steps To Reproduce
On MacOS Sonoma 14.4.1 on an M1 Macbook Pro, with nixpkgs pinned at
ee4a6e0f566fe5ec79968c57a9c2c3c25f2cf41d
, buildingffmpeg-full
fails when compilinglibdevil-1.7.8
:Build log
Full log available at this gist, but here's an excerpt of the failures from the
nix build
command:Additional context
I pin nixpkgs in the flake user registry, and reference it in my darwin configuration. Previously I had it pinned to
807c549feabce7eddbf259dbdcec9e0600a0660d
, and on this same computer, building against that commit still worksI didn't do a full bisect, but I also can verify that the following pinned commit also works:
nix run github:NixOS/nixpkgs/68cb245ca1addf7804a46ec244bf0cee484832de#ffmpeg-full -- -version
Notify maintainers
Maintainers from ffmpeg/generic.nix:
Recent committers not already included:
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.