Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#35557 - [wine] hangs because of optimisation

Attached to Project: Community Packages
Opened by Thomas Schneider (BlackLotus) - Thursday, 30 May 2013, 16:32 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 15 June 2013, 07:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Florian Pritz (bluewind)
Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Hopefully it is ok to report the bug here. This is in theory a wine upstream bug, but it is not a bug in wine it's a gcc bug and I don't know if there is a bug report for this specific bug in gcc or not and the gcc guys would most likely mark it as a won't fix.
In any way for instance Tomb Raider (2013) doesn't start up on many systems because of an gcc optimisation.
See http://bugs.winehq.org/show_bug.cgi?id=33125 for details.



Additional info:
This could be solved through a small patch to wine (won't recommend that because of the arch way) or through compiling wine without optimisations (won't recommend that either because it's stupid) or we could modify the PKGBUILD to use clang which doesn't break everything.
It's not a wine bug and it does occur because of the way arch compiles the package so it should be ok to fix it this way.
One reason why this shouldn't be done is that clang can't compile wine with 64bit support.

If we should not compile specific packages only with clang we can still compile wine with gcc but compile dlls/kernel32/sync.c seperatly without optimisations (which solves only this specific issue).

I know that this is maybe a bit much because of a few broken functions, but like I said this will be probably never fixed in wine because the wine code is (for this bug specific fault) not responsible and flawless.

Steps to reproduce:
Try to start Tomb Raider in wine from the arch repos
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 15 June 2013, 07:25 GMT
Reason for closing:  No response
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 04 June 2013, 05:35 GMT
From the bug report it does not become clear. Which exact gcc optimization option causes this behavior?
Comment by Alexander F. Rødseth (xyproto) - Sunday, 09 June 2013, 18:17 GMT
How's the performance of Wine with Clang instead of GCC? If it's better and also fixes a problem, it might perhaps be worth considering?

Thomas Schneider, do you know if there is a way to reproduce the bug without buying or pirating commercial software?
Comment by Jelle van der Waa (jelly) - Sunday, 09 June 2013, 18:38 GMT
Here is the current support for clang http://wiki.winehq.org/Clang . I've compiled wine for i686 [1], but it won't compile for multilib since it requires gcc >= 4.4 to build wine as 64-bit

[1] http://pkgbuild.com/~jelle/
Comment by Thomas Schneider (BlackLotus) - Sunday, 09 June 2013, 18:46 GMT
@Svenstaro
Sorry I don't know which exact optimisation breaks I only know which function gets broken.
@xyproto/trontonic
The performance is quite the same I can do a benchmark if you'd like.
Sadly I only know of Tomb Raider being affected through this bug.And even if you got the game I'm not sure if you can reproduce the bug.
For me it only happens on my gaming pc,my laptop doesn't seem to be affected of this.
Comment by Jelle van der Waa (jelly) - Sunday, 09 June 2013, 19:19 GMT
Ok I got bored and compiled wine 64 bit with gcc and the rest with clang now for multilib so try this package http://pkgbuild.com/~jelle/wine-1.6rc1-2-x86_64.pkg.tar.xz :)

Loading...