Bug#1030536: wine: FTBFS because of a Makefile bug (hlsl.tab.h: No such file or directory)
Package: src:wine
Version: 8.0~repack-1
Severity: important
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in bookworm, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary-arch
dh binary-arch
dh_update_autotools_config -a
dh_autoreconf -a
find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a -type f -exec md5sum {} + -o -type l -printf "symlink %p
" > debian/autoreconf.before
grep -q ^XDT_ configure.ac
autoreconf -f -i
find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a -type f -exec md5sum {} + -o -type l -printf "symlink %p
" > debian/autoreconf.after
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
[...]
x86_64-w64-mingw32-gcc -c -o libs/vkd3d/x86_64-windows/libs/vkd3d/state.o libs/vkd3d/libs/vkd3d/state.c -Ilibs/vkd3d -Iinclude -Iinclude/msvcrt -Ilibs/vkd3d/include -Ilibs/vkd3d/include/private -Ilibs/vkd3d/libs/vkd3d -Ilibs/vkd3d/libs/vkd3d-shader -D_UCRT -DWINE_NO_NAMELESS_EXTENSION -DCONST_VTABLE -DLIBVKD3D_SOURCE -DLIBVKD3D_SHADER_SOURCE -DLIBVKD3D_UTILS_SOURCE -D__WINE_PE_BUILD -fno-strict-aliasing -Wno-packed-not-aligned -mcx16 -gdwarf-4 -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wno-array-bounds -Wno-unused-function -Wno-format
x86_64-w64-mingw32-gcc -c -o libs/vkd3d/x86_64-windows/libs/vkd3d/utils.o libs/vkd3d/libs/vkd3d/utils.c -Ilibs/vkd3d -Iinclude -Iinclude/msvcrt -Ilibs/vkd3d/include -Ilibs/vkd3d/include/private -Ilibs/vkd3d/libs/vkd3d -Ilibs/vkd3d/libs/vkd3d-shader -D_UCRT -DWINE_NO_NAMELESS_EXTENSION -DCONST_VTABLE -DLIBVKD3D_SOURCE -DLIBVKD3D_SHADER_SOURCE -DLIBVKD3D_UTILS_SOURCE -D__WINE_PE_BUILD -fno-strict-aliasing -Wno-packed-not-aligned -mcx16 -gdwarf-4 -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wno-array-bounds -Wno-unused-function -Wno-format
x86_64-w64-mingw32-gcc -c -o libs/vkd3d/x86_64-windows/libs/vkd3d/vkd3d_main.o libs/vkd3d/libs/vkd3d/vkd3d_main.c -Ilibs/vkd3d -Iinclude -Iinclude/msvcrt -Ilibs/vkd3d/include -Ilibs/vkd3d/include/private -Ilibs/vkd3d/libs/vkd3d -Ilibs/vkd3d/libs/vkd3d-shader -D_UCRT -DWINE_NO_NAMELESS_EXTENSION -DCONST_VTABLE -DLIBVKD3D_SOURCE -DLIBVKD3D_SHADER_SOURCE -DLIBVKD3D_UTILS_SOURCE -D__WINE_PE_BUILD -fno-strict-aliasing -Wno-packed-not-aligned -mcx16 -gdwarf-4 -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wno-array-bounds -Wno-unused-function -Wno-format
flex -olibs/vkd3d/libs/vkd3d-shader/hlsl.yy.c libs/vkd3d/libs/vkd3d-shader/hlsl.l
x86_64-w64-mingw32-gcc -c -o libs/vkd3d/x86_64-windows/libs/vkd3d-shader/hlsl.yy.o libs/vkd3d/libs/vkd3d-shader/hlsl.yy.c -Ilibs/vkd3d -Iinclude -Iinclude/msvcrt -Ilibs/vkd3d/include -Ilibs/vkd3d/include/private -Ilibs/vkd3d/libs/vkd3d -Ilibs/vkd3d/libs/vkd3d-shader -D_UCRT -DWINE_NO_NAMELESS_EXTENSION -DCONST_VTABLE -DLIBVKD3D_SOURCE -DLIBVKD3D_SHADER_SOURCE -DLIBVKD3D_UTILS_SOURCE -D__WINE_PE_BUILD -fno-strict-aliasing -Wno-packed-not-aligned -mcx16 -gdwarf-4 -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wno-array-bounds -Wno-unused-function -Wno-format
libs/vkd3d/libs/vkd3d-shader/hlsl.l:25:10: fatal error: hlsl.tab.h: No such file or directory
25 | #include "hlsl.tab.h"
| ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:31895: libs/vkd3d/x86_64-windows/libs/vkd3d-shader/hlsl.yy.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j1 returned exit code 2
make[1]: *** [debian/rules:159: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:107: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and I believe it's also the most relevant part.
Simple question:
Why is make trying to use hlsl.tab.h before generating it?
Note: I discovered this by building on a system with a single CPU.
To reproduce, please try setting GRUB_CMDLINE_LINUX="nr_cpus=1"
in /etc/default/grub first. If that does not work, my general offer
for ssh access below still applies in either case.
---------------------------------------------------------------------
About the archive rebuild: The build was made using virtual machines
from Hetzner, with enough memory, enough disk, and either one or two
CPUs, using a reduced chroot with only build-essential packages (plus
debhelper).
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
Reply to: