Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283333 - app-emulation/wine should always build with -mfpmath=387 on x86
Summary: app-emulation/wine should always build with -mfpmath=387 on x86
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 14:14 UTC by Bartosz Brachaczek
Modified: 2009-09-01 20:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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