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

Bug 91352

Summary: mplayer ebuild will always warn about cpu flags when using mmxext to enable mmx2
Product: Gentoo Linux Reporter: Joe Bloggs <bluealeph>
Component: New packagesAssignee: Gentoo Media-video project <media-video>
Status: VERIFIED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Joe Bloggs 2005-05-03 13:42:48 UTC
The mplayer ebuilds now require the setting of the "mmxext" USE flag to enable MMX2 during the build.  The ecpu_check() function in the ebuild warns about cross-compiling when it can't find all the specified CPU_FLAGS in /proc/cpuinfo.

The problem with this approach is Intel cpu's will never report "mmxext" or "mmx2".  A quick check of /usr/src/linux-2.6.10-gentoo-r6/arch/i386/kernel/cpu/proc.c, shows that "mmxext" is an AMD only flag, whilst there is no flag at all for "mmx2".

Reproducible: Always
Steps to Reproduce:
On an machine with an intel cpu:
1. USE="mmx mmxext" emerge -v mplayer
2. 
Actual Results:  
...
 * You have mmxext support enabled but your processor doesn't
 * Seem to support it!  You might be cross compiling or do not have /proc filesystem
 * enabled.  If either is the case, set CROSSCOMPILE to 1 to disable this warning.

...



Expected Results:  
If the ebuild is going to insist on using "mmxext" as the flag to enable mmx2
support, then it should not warn about it not being supported.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-03 14:53:50 UTC

*** This bug has been marked as a duplicate of 86318 ***
Comment 2 Luca Barbato gentoo-dev 2005-05-09 14:17:21 UTC
Closing