Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49676 - xfree build with sse although USE defines "-sse"
Summary: xfree build with sse although USE defines "-sse"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-02 00:40 UTC by Harald Kubota
Modified: 2004-05-03 11:18 UTC (History)
0 users

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 Harald Kubota 2004-05-02 00:40:05 UTC
When emerging xfree with the following USE defined in /etc/make.conf:
USE="mmx -sse -sse2 -3dnow X509 alsa ipv6 -gjc \
        -apm acpi kde -gnome X cjk canna gtk qt nls -python -perl acl -tcpd"

xfree gets compiled like this:
gcc -c -ansi -pedantic -Wno-return-type -w  -I../../../../../extras/Mesa/src   -I../../../../../extras/Mesa/src/X86             -I../../../../../extras/Mesa/src/math           -I../../../../../extras/Mesa/src/swrast_setup           -I../../../../../extras/Mesa/src/tnl            -I../../../../../extras/Mesa/include   -I../../../include -I../../../../../exports/include/X11 -I../../../dri -I../../../glx -I../../dri -I../../../include             -I../../../../../exports/include/GL -I../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../programs/Xserver/GL/dri  -I../../../../.. -I../../../../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                          -D_POSIX_SOURCE
-D_XOPEN_SOURCE                                 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE                             -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS  -D_REENTRANT -DXUSE_MTSAFE_API    -DMALLOC_0_RETURNS_NULL -DGLXEXT -DXF86DRI
-DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -DUSE_X86_ASM -DUSE_MMX_ASM  -DUSE_SSE_ASM       -O2 -O2 -O2 -O2 -march=pentium-mmx -pipe   ss_triangle.c -o unshared/ss_triangle.o

Watch the "-DUSE_SSE_ASM"

The CPU I am building this has SSE support (Celeron Tualatin), but I'm building a binary package for a destination which does not support SSE.


Reproducible: Always
Steps to Reproduce:
1. Use the above mentioned USE
2. emerge xfree
3. Watch the gcc options for compiling xfree

Actual Results:  
Some (not all) drivers/libs of XFree86 use this flag. Those will run illigal
code if SSE is not supported.

Expected Results:  
-DUSE_MMX_ASM is ok, but -DUSE_SSE_ASM should not be defined in this case.
Comment 1 Harald Kubota 2004-05-02 02:51:30 UTC
Forgot to tell which versions of xfree I emerged: 4.3.0-r5
USE_SSE_ASM seems to be used mostly in the MESA tree and some drivers (like r200).
Comment 2 Andrew Bevitt 2004-05-03 04:38:28 UTC
Um yeah this is quite simple by the looks of it... 

Same as the MesaUseMMX entries in the ebuild except in this case MesaUseSSE...
This feature is in all the maintained builds >=xfree-4.3.0-r6 
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-05-03 11:18:14 UTC
Please use xfree-4.3.0-r6 or xorg-x11-6.7.0, both of which contain this.