FS#58833 - [wine] [wine-staging] No longer launchs windows Office 97 programs
Attached to Project:
Community Packages
Opened by Keith (keithg) - Friday, 01 June 2018, 21:41 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 02 December 2018, 23:40 GMT
Opened by Keith (keithg) - Friday, 01 June 2018, 21:41 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 02 December 2018, 23:40 GMT
|
Details
Description:WIne 3.9 will no longer launch windows Office 97
programs.
Additional info: * package version(s) Apparently, it is since gcc was updated that the build fails to launch some programs. * config and/or log files etc. https://bugs.winehq.org/show_bug.cgi?id=45199 https://bugs.winehq.org/show_bug.cgi?id=45270 (my report with attached logs) according to winehq, it is since Wine 3.7 compiled by GCC 7.3.1 that it last worked. Steps to reproduce: Upgrade Arch Winecfg Launch an office 97 or other office program |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Sunday, 02 December 2018, 23:40 GMT
Reason for closing: Fixed
Additional comments about closing: should be fixed in current wine versions
Sunday, 02 December 2018, 23:40 GMT
Reason for closing: Fixed
Additional comments about closing: should be fixed in current wine versions
https://bugs.winehq.org/show_bug.cgi?id=45276
See also here:
https://bugs.winehq.org/show_bug.cgi?id=45199#c22
This seems to fix the problem for me (resuling in only 5mb more installed wine):
diff --git a/repos/multilib-x86_64/PKGBUILD b/repos/multilib-x86_64/PKGBUILD
index 558ce97..31175f7 100644
--- a/repos/multilib-x86_64/PKGBUILD
+++ b/repos/multilib-x86_64/PKGBUILD
@@ -101,6 +101,9 @@ prepare() {
export CFLAGS="${CFLAGS/-fno-plt/}"
export LDFLAGS="${LDFLAGS/,-z,now/}"
+ export CFLAGS="${CFLAGS/-O2/-O1}"
+ export CXXFLAGS="${CXXFLAGS/-O2/-O1}"
+
patch -d $pkgname -Np1 < harmony-fix.diff
sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i $pkgname/configure*
https://bugs.winehq.org/show_bug.cgi?id=45199
There is a core dump collected by systemd for "services.exe". I have not confirmed what is happening on the wine level since I only today found out that wine has it's own debugging procedure.
I just want to report that I've tried all three of these reported workarounds and none of them have worked. Wine takes me about 30m to build so testing random suggestions is a bit slow.
In one build (I don't remember which one) applications still crashed but I didn't get the services.exe core dump.
export CFLAGS="${CFLAGS/-O2/-O1}"
export CXXFLAGS="${CXXFLAGS/-O2/-O1}"
export CFLAGS="${CFLAGS/-fno-PIC}"
export CXXFLAGS="${CXXFLAGS/-fno-PIC}"
export CC="/usr/bin/gcc-7"
If someone who understands the issue better has a better workaround suggestion it would be greatly appreciated.
https://wiki.archlinux.org/index.php/Arch_Linux_Archive
And I didn't used any of your e.v.'s:
export CFLAGS="${CFLAGS/-O2/-O1}"
export CXXFLAGS="${CXXFLAGS/-O2/-O1}"
export CFLAGS="${CFLAGS/-fno-PIC}"
export CXXFLAGS="${CXXFLAGS/-fno-PIC}"
export CC="/usr/bin/gcc-7"
Regards
It do nothing if you just install gcc 7.3 and gcc-libs 7.3 without re-build the Wine package.
Regards.
Seems to be working now. Thanks.
Regards.
export CFLAGS+=" -fno-PIC"
export CXXFLAGS+=" -fno-PIC"
>Looking at https://bugs.winehq.org/show_bug.cgi?id=37540 , have you tried with:
>export CFLAGS+=" -fno-PIC"
>export CXXFLAGS+=" -fno-PIC"
No, I haven't, but this is absolutely related to this bug:
https://bugs.winehq.org/show_bug.cgi?id=45199
For a workaround, it's enough to build Wine using GCC 7.3, but I do not understand why Wine maintainers of Arch Linux does not do it, because that's why many applications/games fail to start/crash in Wine after compiling wine with gcc 8.1.0 and -O2 (GOT/PIC register load code now emitted at function entry, missing hotpatch signatures). Nothing prevents them from collecting Wine using GCC 7.3 for this until Wine upstream fixes this bug. This bug was opened 02 June 2018, but all new releases of Wine and Wine Staging are still compiled using GCC 8. Why is this happening?
unset CPPFLAGS
unset LDFLAGS
export CFLAGS="-march=x86-64 -mtune=generic -O1 -pipe"
export CXXFLAGS="-march=x86-64 -mtune=generic -O1 -pipe"
(Place these lines after the "export LDFLAGS=..." line in the PKGBUILD, obviously.)
I tested in wine-staging-pba 3.15-2 - https://aur.archlinux.org/packages/wine-staging-pba/
I expect that the changes can be narrowed down further ;)
>GCC 7 is not needed. This fixes the crash at startup, in MS Office 2010:
unset CPPFLAGS
unset LDFLAGS
export CFLAGS="-march=x86-64 -mtune=generic -O1 -pipe"
export CXXFLAGS="-march=x86-64 -mtune=generic -O1 -pipe"
>(Place these lines after the "export LDFLAGS=..." line in the PKGBUILD, obviously.)
Thank you very much! I confirm that I've just checked your method and it really works for me!
Now it remains only to convince the Arch Linux Wine package maintainers to add this workaround to their PKGBUILDs.
https://bugs.winehq.org/show_bug.cgi?id=45199#c44
With 3.19 having been pulled in here minutes ago, we should do the same.