https://bugs.winehq.org/show_bug.cgi?id=56776
Bug ID: 56776 Summary: Build failure with GCC 14 (mingw64-toolchain 12.0.0/GCC 14.1.0) due to [-Wincompatible-pointer-types] Product: Wine-staging Version: 9.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: timo.gurr@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 76576 --> https://bugs.winehq.org/attachment.cgi?id=76576 01_0001-include-Check-element-type-in-CONTAINING_RECORD-and-.patch.error.log
While vanilla wine 9.10 builds fine, having the staging 9.10 patches applied the build fails due to -Wincompatible-pointer-types with GCC 14 (mingw64-toolchain 12.0.0 / GCC 14.1.0).
This was also reported for Gentoo at the end of 2023 at https://bugs.gentoo.org/919758 and a workaround being applied with https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8c7ecb8fbbdbcbef6b9804...
We're experiencing the same issues on Exherbo Linux now and I couldn't find any previous report about the issue.
I could narrow it down to two offending patches, after removing those the build succeeded:
rm ../wine-staging-9.10/patches/Compiler_Warnings/0001-include-Check-element-type-in-CONTAINING_RECORD-and-.patch rm ../wine-staging-9.10/patches/shell32-IconCache/0001-shell32-iconcache-Generate-icons-from-available-icons-.patch
/var/tmp/paludis/build/app-emulation-wine-9.10/work/wine-9.10/configure --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --prefix=/usr/x86_64-pc-linux-gnu --bindir=/usr/x86_64-pc-linux-gnu/bin --sbindir=/usr/x86_64-pc-linux-gnu/bin --libdir=/usr/x86_64-pc-linux-gnu/lib --datadir=/usr/share --datarootdir=/usr/share --docdir=/usr/share/doc/wine-9.10 --infodir=/usr/share/info --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var/lib --disable-build-id --disable-tests --disable-werror --with-dbus --with-fontconfig --with-freetype --with-gettext --with-gnutls --with-inotify --with-pthread --with-udev --with-x --with-xcomposite --with-xcursor --with-xfixes --with-xinerama --with-xinput --with-xinput2 --with-xrandr --with-xrender --with-xshape --with-xshm --with-xxf86vm --without-coreaudio --without-gettextpo --without-opencl --without-pcsclite --without-v4l2 --enable-win64 --without-odbc --without-alsa --without-unwind --without-gphoto --with-cups --with-gstreamer --without-capi --with-gssapi --with-krb5 --with-opengl --without-osmesa --without-oss --without-pcap --with-pulse --without-netapi --without-sane --without-sdl --with-usb --with-vulkan --with-wayland --with-mingw --enable-archs=x86_64,i386
Attached are the two logs / snippets with the actual build errors as requested by bugzilla.