Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127136 - xorg-server-1.0.1-r4 compile error with -mno-sse
Summary: xorg-server-1.0.1-r4 compile error with -mno-sse
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 19:18 UTC by gent_bz
Modified: 2006-03-22 01:06 UTC (History)
0 users

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


Attachments
Fix for fbmmx.c to correctly handle include of xmmintrin.h (xorg-server_fbmmx_SSE_fix.diff,306 bytes, patch)
2006-03-21 19:19 UTC, gent_bz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gent_bz 2006-03-21 19:18:50 UTC
Compiling xorg-server for a Duron (Morgan) box, my CFLAGS include -march=athlon -mno-sse because this processor does not support SSE instructions.  (this is a shortcoming in gcc's -march option, but that's a problem for another day and not strictly related to this bug).

The file xorg-server-1.0.1/fb/fbmmx.c contains flawed logic when it comes to #including SSE intrinsic definitions from xmmintrin.h, and this causes a compile time error when using -mno-sse.  The use of _mm_shuffle_pi16 and _MM_SHUFFLE from xmmintrin.h are correctly contained in #ifdef USE_SSE, but the #include is not.

The patch fixes this behaviour to allow compilation to proceed beyond fbmmx.c - I have not yet tested any further.

I suspect that this should be pushed upstream.
Comment 1 gent_bz 2006-03-21 19:19:52 UTC
Created attachment 82830 [details, diff]
Fix for fbmmx.c to correctly handle include of xmmintrin.h
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-03-21 23:52:53 UTC
Indeed. Please file it upstream at bugs.freedesktop.org in the xorg product and post the URL here, so we can track it.

Thanks!