FS#47450 - [llvm] Alignment issue with wine and mesa nine
Attached to Project:
Arch Linux
Opened by Christoph Haag (haagch) - Saturday, 19 December 2015, 23:36 GMT
Last edited by Laurent Carlier (lordheavy) - Sunday, 06 March 2016, 10:47 GMT
Opened by Christoph Haag (haagch) - Saturday, 19 December 2015, 23:36 GMT
Last edited by Laurent Carlier (lordheavy) - Sunday, 06 March 2016, 10:47 GMT
|
Details
Description: See this bug report
https://bugs.freedesktop.org/show_bug.cgi?id=93425
Tl;dr: when compiling llvm, gcc produces movaps instructions that access unaligned memory when used in combination with the nine state tracker. One workaround is to add -mstackrealign to CFLAGS and CXXFLAGS, like wine did in https://bugs.archlinux.org/task/27560 Additional info: * package version(s) 3.7.0 (I haven't actually tested the llvm version from the repositories, but https://github.com/iXit/Mesa-3D/issues/163#issuecomment-164061836 says, it happens with it too) |
This task depends upon
Closed by Laurent Carlier (lordheavy)
Sunday, 06 March 2016, 10:47 GMT
Reason for closing: Upstream
Additional comments about closing: Fixed with mesa 11.2 in Nine
Sunday, 06 March 2016, 10:47 GMT
Reason for closing: Upstream
Additional comments about closing: Fixed with mesa 11.2 in Nine
Adding -mstackrealign to LLVM or any other system library outside of wine and friends feels very wrong.
[1] http://source.winehq.org/git/wine.git/commitdiff/4adfb787f4e8c36a37ce1d53a7e6df16d03ecd8a
If it's only a small change in wine, perhaps archlinux or the nine project could include a patch.
Is it still an issue here?
https://bbs.archlinux.org/viewtopic.php?pid=1587818#p1587818
For me the llvm packages from mesa-git work with nine.
Note that there may be other alignment issues with nine, for example when mesa is compiled with SSE (-march=native): https://github.com/iXit/Mesa-3D/issues/111