Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 283333

Summary: app-emulation/wine should always build with -mfpmath=387 on x86
Product: Gentoo Linux Reporter: Bartosz Brachaczek <b.brachaczek>
Component: Current packagesAssignee: Wine Maintainers <wine>
Status: RESOLVED WONTFIX    
Severity: normal CC: galtgendo
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bartosz Brachaczek 2009-08-31 14:14:48 UTC
On my machine (using Gentoo i686) wine crashes every time when trying to run for example DX-Ball 1.09 (free download http://www.magicwandsoft.com/games/dxball/ ) if it's compiled with both -mfpmath=sse (or sse,387) and -msse2 or higher cflags enabled. I mean:
CFLAGS="-O2 -mfpmath=sse -msse"              WORKS
CFLAGS="-O2 -msse -msse2 -msse3"             WORKS
CFLAGS="-O2 -mfpmath=sse -msse -msse2"       DOESN'T WORK
CFLAGS="-O2 -mfpmath=sse,387 -msse -msse2"   DOESN'T WORK
CFLAGS="-O2 -mfpmath=sse -msse -msse3"       DOESN'T WORK

So for x86 wine ebuild should append flag -mfpmath=387.

Furthermore, gcc on x86-64 defaults fpmath to sse, so someone could check if DX-Ball runs on x86-64. Then, if it crashes also on x86-64, I think that it's a bug in Wine and should be reported upstream.

Reproducible: Always

Steps to Reproduce:
1. CFLAGS="-O2 -mfpmath=sse -msse -msse2" CXXFLAGS="${CFLAGS}" emerge -1 wine
2. install DX-Ball 1.09
3. try to run it

Actual Results:  
When compiled with -mfpmath=sse and -msse2, Wine crashes with some apps, notably DX-Ball.
Comment 1 SpanKY gentoo-dev 2009-09-01 20:21:18 UTC
we dont protect people from themselves wrt -mfpmath