ffmpeg-full-8.1.2: failed checking for nvcc
0.kind: bug
### Nixpkgs version
- Unstable (26.11)
### Describe the bug
NixOS rebuild results in; `ERROR: failed checking for nvcc.`
### Steps to reproduce
Attempt to install as system package with `withUnfree = true` set as an `override`
```nix
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
((ffmpeg-full.override {
withUnfree = true;
}).overrideAttrs (_: {
doCheck = false;
}))
];
}
```
### Expected behaviour
`ffmpeg` to build
### Screenshots
_No response_
### Relevant log output
```console
Sourcing setup-cuda-hook
source: sourcing removeStubsFromRunpathHook.bash (hostOffset=0) (targetOffset=1)
source: added removeStubsFromRunpathHookRegistration to prePhases
Sourcing fix-elf-files.sh
Running phase: removeStubsFromRunpathHookRegistration
@nix { "action": "setPhase", "phase": "removeStubsFromRunpathHookRegistration" }
removeStubsFromRunpathHookRegistration: added removeStubsFromRunpath to postFixupHooks
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/lrsm8w8023kpna6kpw4kr4ixgkm850i9-ffmpeg
source root is ffmpeg
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/8ysv026pzkq2rab89wfvz4sf91ddqdv3-nvccflags-cpp14.patch
patching file configure
Hunk #1 succeeded at 7106 (offset 364 lines).
applying patch /nix/store/6v7njhg0nxy4lhs892fmg94rmygvdk0h-add-av_stream_get_first_dts-for-chromium.patch
patching file libavformat/avformat.h
Hunk #1 succeeded at 1178 with fuzz 2 (offset 50 lines).
patching file libavformat/mux_utils.c
Hunk #1 succeeded at 29 with fuzz 2 (offset -8 lines).
patching script interpreter paths in .
./tests/copycooker.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tests/fate/source-check.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tests/fate-run.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tests/fate.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./compat/windows/makedef: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./compat/windows/mswindres: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./compat/windows/mslink: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./compat/solaris/make_sunver.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./configure: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./doc/texi2pod.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./doc/doxy-wrapper.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./doc/texidep.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./configure.orig: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/bisect-create: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/target_dec_fate.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/gen-rc: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/source2c: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/murge: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/merge-all-source-plugins: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/dvd2concat: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./tools/missing_codec_desc: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/general_assembly.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./tools/check_arm_indent.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/patcheck: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/unwrap-diff: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./tools/make_chlayout_test: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./tools/compare-cvelists.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/bash"
./tools/indent_arm_assembly.pl: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./tools/plotframes: interpreter directive changed from "#!/usr/bin/env perl" to "/nix/store/4hbz5lyqjg08fk6rk67dfbky4y3nwhhg-perl-5.42.0/bin/perl"
./tools/clean-diff: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./ffbuild/libversion.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./ffbuild/pkgconfig_generate.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
./ffbuild/version.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/c9mv5v53f7vy3wd00ah0f77k509mzmn7-bash-5.3p15/bin/sh"
substituteStream() in derivation ffmpeg-full-8.1.2: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'libavfilter/vf_frei0r.c')
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Executing setupCUDAToolkitCompilers
patching script interpreter paths in ./configure
configure flags: --disable-static --prefix=/nix/store/zpb8wjyzcadxm7v782npyycpvqywwpss-ffmpeg-full-8.1.2 --target_os=linux --arch=x86_64 --pkg-config=pkg-config --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shar>
ERROR: failed checking for nvcc.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
```
### Additional context
`git diff flake.lock` (snippet) I believe to be were things worked vs are now broken for this host;
```diff
@@ -383,11 +383,11 @@
},
"nixpkgs_3": {
"locked": {
- "lastModified": 1783224372,
- "narHash": "sha256-8i/87eeoqiGE4yOTjwSA3Eh/ziJRQEmd/unYU+K27sk=",
+ "lastModified": 1785454630,
+ "narHash": "sha256-LQy14TZp77TwbQf40gg1V3jo8FwJG0jGDkAH+zRHqg8=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "d407951447dcd00442e97087bf374aad70c04cea",
+ "rev": "1559d3daa3ecc813a650b79375ea61b6741b8746",
"type": "github"
},
"original": {
```
The following `/etc/nixos/system-packages/pinned/ffmpeg-full.nix` example (which _should_ install version `8.1.1` instead of `8.1.2`) is how I'm currently working around this issue, though is not ideal as it likely downloads more than is really needed and I'm not certain it fully inherits/adopts other `configs` that are inferred by [`pkgs/development/libraries/ffmpeg/generic.nix`](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/libraries/ffmpeg/generic.nix);
```nix
{ ... }:
let
pkgs-old =
import
(builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/d407951447dcd00442e97087bf374aad70c04cea.tar.gz")
{ };
in
{
environment.systemPackages = with pkgs-old; [
(
(ffmpeg-full.override {
withUnfree = true;
}).overrideAttrs
(_: {
doCheck = false;
})
)
];
}
```
Log of `ffmpeg` output when installed via above workaround;
```
ffmpeg version 8.1.1 Copyright (c) 2000-2026 the FFmpeg developers
built with gcc 15.2.0 (GCC)
configuration: --disable-static --prefix=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-8.1.1 --target_os=linux --arch=x86_64 --pkg-config=pkg-config --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shared --enable-pic --disable-thumb --disable-small --enable-runtime-cpudetect --enable-gray --enable-swscale-alpha --enable-hardcoded-tables --enable-safe-bitstream-reader --enable-pthreads --disable-w32threads --disable-os2threads --enable-network --enable-pixelutils --datadir=/nix/store/2jd54d5vr5n1pmybv6fgwiv9a8kn25ms-ffmpeg-full-8.1.1-data/share/ffmpeg --enable-ffmpeg --enable-ffplay --enable-ffprobe --bindir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-8.1.1-bin/bin --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avutil --enable-swresample --enable-swscale --libdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-8.1.1-lib/lib --incdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-8.1.1-dev/include --enable-doc --enable-htmlpages --enable-manpages --mandir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-8.1.1-man/share/man --enable-podpages --enable-txtpages --docdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-8.1.1-doc/share/doc/ffmpeg --enable-alsa --enable-amf --enable-libaom --enable-libaribb24 --enable-libaribcaption --enable-libass --enable-avisynth --enable-libbluray --enable-libbs2b --enable-bzlib --enable-libcaca --enable-libcdio --enable-libcelt --enable-chromaprint --enable-libcodec2 --enable-cuda --enable-cuda-llvm --disable-cuda-nvcc --enable-cuvid --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libdrm --enable-libdvdnav --enable-libdvdread --enable-libfdk-aac --enable-ffnvcodec --enable-libflite --enable-fontconfig --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libfribidi --enable-libgme --enable-gmp --enable-gnutls --enable-libgsm --enable-libharfbuzz --enable-iconv --enable-libilbc --enable-libjack --enable-libjxl --enable-libkvazaar --enable-ladspa --enable-liblc3 --enable-liblcevc-dec --enable-lcms2 --enable-lzma --disable-metal --disable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libmysofa --disable-libnpp --enable-nvdec --enable-nvenc --enable-openal --enable-liboapv --enable-opencl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-libqrencode --enable-libquirc --enable-librav1e --enable-librist --disable-librtmp --enable-librubberband --enable-libsmbclient --enable-sdl2 --enable-libshaderc --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-librsvg --enable-libsvtav1 --disable-libtensorflow --enable-libtheora --enable-libtwolame --enable-libuavs3d --enable-libv4l2 --enable-v4l2-m2m --enable-vaapi --enable-vdpau --enable-libvpl --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-vulkan --enable-libvvenc --enable-libwebp --enable-whisper --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxavs2 --enable-libxcb --enable-libxcb-shape --enable-libxcb-shm --enable-libxcb-xfixes --enable-libxevd --enable-libxeve --enable-xlib --enable-libxml2 --enable-libxvid --enable-libzimg --enable-zlib --enable-libzmq --enable-libzvbi --disable-debug --enable-optimizations --disable-extra-warnings --disable-stripping
libavutil 60. 26.101 / 60. 26.101
libavcodec 62. 28.101 / 62. 28.101
libavformat 62. 12.101 / 62. 12.101
libavdevice 62. 3.101 / 62. 3.101
libavfilter 11. 14.101 / 11. 14.101
libswscale 9. 5.101 / 9. 5.101
libswresample 6. 3.101 / 6. 3.101
Universal media converter
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
```
### System metadata
- system: `"x86_64-linux"`
- host os: `Linux 7.1.3, NixOS, 26.11 (Zokor), 26.11.20260705.d407951`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.34.7`
- nixpkgs: `/nix/store/ifpab9hxqmk2biwy594da8ipxzsp3y4s-source`
### Notify maintainers
[`pkgs/development/libraries/ffmpeg/generic.nix`](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/libraries/ffmpeg/generic.nix#L1087) says @Atemu, @jopejoe1, and/or @emilazy may be interested in tracking this issue, so howdy y'all ;-]
---
**Note for maintainers:** Please tag this issue in your pull request description. (i.e. `Resolves #ISSUE`.)
### I assert that this issue is relevant for Nixpkgs
- [x] I assert that this is a bug and not a support request.
- [x] I assert that this is not a [duplicate of an existing issue](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+label%3A%220.kind%3A+bug%22+-label%3A%226.topic%3A+darwin%22+-label%3A%226.topic%3A+nixos%22).
- [x] I assert that I have read the [NixOS Code of Conduct](https://github.com/NixOS/.github/blob/master/CODE_OF_CONDUCT.md) and agree to abide by it.
- [x] I assert that I have read the [automation/AI policy](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy) and that this issue report complies with it.
### Is this issue important to you?
Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc
3 条评论