https://bugs.winehq.org/show_bug.cgi?id=48824
rmuncrief@humanavance.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rmuncrief@humanavance.com
--- Comment #11 from rmuncrief@humanavance.com --- I know this bug is marked as resolved, but I've had this problem with Wine Staging 5.4 and 5.5 as well, and couldn't figure out how the heck to fix it until I came across this bug report.
But for me the patch referenced in Comment 9 didn't change anything. I had to manually hack the configure file to set CFLAGS="-O2"
I'm compiling on the latest Arch and here's my gcc version:
$ gcc --version $ gcc (Arch Linux 9.3.0-1) 9.3.0
Manual Compile Procedure ------------------------
WINE_PREF="wine-staging" WINE_CVER="5.5" WINE_PREF_CVER="$WINE_PREF-$WINE_CVER" PKG_DIR=~/working/wine/$WINE_PREF_CVER PKG_PATCH_DIR=~/working/wine/"$WINE_PREF-$WINE_CVER-patches" PATCH_DIR=~/working/wine/package_data/Generic
cd ~/working/wine mkdir $PKG_DIR mkdir $PKG_PATCH_DIR
cd ~/working/wine/git/wine git pull git checkout tags/wine-$WINE_CVER GIT_WORK_TREE=$PKG_DIR git checkout -f
cd ~/working/wine/git/wine-staging git pull git checkout tags/v$WINE_CVER GIT_WORK_TREE=$PKG_PATCH_DIR git checkout -f
cd $PKG_PATCH_DIR/patches ./patchinstall.sh DESTDIR="$PKG_DIR" --all cd $PKG_DIR
(!!! This where I now have to manually hack the $PKG_DIR/configure file to set CFLAGS="-O2" for 5.4/5.5 !!!)
export CFLAGS="${CFLAGS/-fno-plt/}" export LDFLAGS="${LDFLAGS/,-z,now/}" sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i $PKG_DIR/configure*
cd ~/working/wine mkdir $WINE_PREF_CVER-build64 cd $WINE_PREF_CVER-build64
"$PKG_DIR"/configure --prefix=/opt/$WINE_PREF_CVER --libdir=/opt/$WINE_PREF_CVER/lib --with-x --with-gstreamer --enable-win64 --with-xattr --with-vkd3d make -j$(nproc)
cd ~/working/wine export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" mkdir $WINE_PREF_CVER-build32 cd $WINE_PREF_CVER-build32
"$PKG_DIR"/configure --prefix=/opt/$WINE_PREF_CVER --with-x --with-gstreamer --with-xattr --with-vkd3d --libdir=/opt/$WINE_PREF_CVER/lib32 --with-wine64=../$WINE_PREF_CVER-build64 make -j$(nproc)
End Manual Compile Procedure ----------------------------
This is the same compile procedure I've used for years, so it seems something is still wrong the with XACT configure/compile procedure.