Bug#1120579: FTBFS: ERROR: spirv_compiler not found
Package: ffmpeg
Version: 7:7.1.2-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
Hi,
Congratulations! Your package ffmpeg in unstable and experimental (8.0-1) fails to build from source:
debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/reproducible-path/ffmpeg-7.1.2'
debian/rules configure_standard
mkdir -p debian/standard
cd debian/standard && ../../configure --prefix=/usr --extra-version="1" --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-libmfx --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libcaca --enable-libdvdnav --enable-libdvdread --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared || (cat ffbuild/config.log && exit 1)
ERROR: spirv_compiler not found
[...]
check_lib spirv_compiler glslang/Include/glslang_c_interface.h glslang_initialize_process -lglslang -lMachineIndependent -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
check_func_headers glslang/Include/glslang_c_interface.h glslang_initialize_process -lglslang -lMachineIndependent -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
test_ld cc -lglslang -lMachineIndependent -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
test_cc
BEGIN /tmp/ffconf.D8l7jOIN/test.c
1 #include <glslang/Include/glslang_c_interface.h>
2 #include <stdint.h>
3 long check_glslang_initialize_process(void) { return (long) glslang_initialize_process; }
4 int main(void) { int ret = 0;
5 ret |= ((intptr_t)check_glslang_initialize_process) & 0xFFFF;
6 return ret; }
END /tmp/ffconf.D8l7jOIN/test.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -D_ISOC11_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ffmpeg-7.1.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-overflow -fstack-protector-all -fPIE -std=c17 -fomit-frame-pointer -fPIC -pthread -I/usr/include/p11-kit-1 -I/usr/include/lilv-0 -I/usr/include/serd-0 -I/usr/include/sord-0 -I/usr/include/zix-0 -I/usr/include/sratom-0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/bs2b -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c -o /tmp/ffconf.D8l7jOIN/test.o /tmp/ffconf.D8l7jOIN/test.c
gcc -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-z,noexecstack -fPIE -pie -o /tmp/ffconf.D8l7jOIN/test /tmp/ffconf.D8l7jOIN/test.o -lglslang -lMachineIndependent -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
/usr/bin/ld: cannot find -lSPVRemapper: No such file or directory
collect2: error: ld returned 1 exit status
require spirv_compiler glslang/Include/glslang_c_interface.h glslang_initialize_process -lglslang -lMachineIndependent -lOSDependent -lHLSL -lOGLCompiler -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
check_lib spirv_compiler glslang/Include/glslang_c_interface.h glslang_initialize_process -lglslang -lMachineIndependent -lOSDependent -lHLSL -lOGLCompiler -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
check_func_headers glslang/Include/glslang_c_interface.h glslang_initialize_process -lglslang -lMachineIndependent -lOSDependent -lHLSL -lOGLCompiler -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
test_ld cc -lglslang -lMachineIndependent -lOSDependent -lHLSL -lOGLCompiler -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
test_cc
BEGIN /tmp/ffconf.D8l7jOIN/test.c
1 #include <glslang/Include/glslang_c_interface.h>
2 #include <stdint.h>
3 long check_glslang_initialize_process(void) { return (long) glslang_initialize_process; }
4 int main(void) { int ret = 0;
5 ret |= ((intptr_t)check_glslang_initialize_process) & 0xFFFF;
6 return ret; }
END /tmp/ffconf.D8l7jOIN/test.c
gcc -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -D_ISOC11_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ffmpeg-7.1.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-strict-overflow -fstack-protector-all -fPIE -std=c17 -fomit-frame-pointer -fPIC -pthread -I/usr/include/p11-kit-1 -I/usr/include/lilv-0 -I/usr/include/serd-0 -I/usr/include/sord-0 -I/usr/include/zix-0 -I/usr/include/sratom-0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/bs2b -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -c -o /tmp/ffconf.D8l7jOIN/test.o /tmp/ffconf.D8l7jOIN/test.c
gcc -Wl,-z,relro -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,-z,noexecstack -fPIE -pie -o /tmp/ffconf.D8l7jOIN/test /tmp/ffconf.D8l7jOIN/test.o -lglslang -lMachineIndependent -lOSDependent -lHLSL -lOGLCompiler -lGenericCodeGen -lSPVRemapper -lSPIRV -lSPIRV-Tools-opt -lSPIRV-Tools -lpthread -lstdc++ -lm
/usr/bin/ld: cannot find -lHLSL: No such file or directory
/usr/bin/ld: cannot find -lOGLCompiler: No such file or directory
/usr/bin/ld: cannot find -lSPVRemapper: No such file or directory
collect2: error: ld returned 1 exit status
ERROR: spirv_compiler not found
make[1]: *** [debian/rules:274: configure_standard] Error 1
make[1]: Leaving directory '/build/reproducible-path/ffmpeg-7.1.2'
make: *** [debian/rules:267: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
-- System Information:
Debian Release: 13.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.48+deb13-amd64 (SMP w/128 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ffmpeg depends on:
ii libavcodec61 7:7.1.2-0+deb13u1
ii libavdevice61 7:7.1.2-0+deb13u1
ii libavfilter10 7:7.1.2-0+deb13u1
ii libavformat61 7:7.1.2-0+deb13u1
ii libavutil59 7:7.1.2-0+deb13u1
ii libc6 2.41-12
ii libplacebo349 7.349.0-3
ii libpostproc58 7:7.1.2-0+deb13u1
ii libsdl2-2.0-0 2.32.4+dfsg-1
ii libswresample5 7:7.1.2-0+deb13u1
ii libswscale8 7:7.1.2-0+deb13u1
ffmpeg recommends no packages.
Versions of packages ffmpeg suggests:
pn ffmpeg-doc <none>
-- no debconf information
Reply to: