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

Bug 27463

Summary: libvorbis-1.0-r4.ebuild: 3dnow integration wrong
Product: Gentoo Linux Reporter: Tom Regner <tomte>
Component: New packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 1.4   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tom Regner 2003-08-28 01:30:10 UTC
emerging libvorbis-1.0-r4 on a pentium4 system produces a corrupt .so due to 
the 3dnow integration (and possibly the -march filtering of pentium class 
systems). 
 
Emerging it as it is results in crashes with 'Illegal Instructions' if any 
application tries to play an .ogg file (even to /dev/null); which isn't that 
wonderous, as IIRC a pentium don't understands 3dnow instructions :-) 
 
Removing the two lines referring to 3dnow redeemed the problem. 
I suggest to check -march or -mcpu for intel cpus and to not include 3dnow if 
one is detected, or whatever mechanism portage has for such a situation.
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2003-08-28 11:22:45 UTC
From the src_unpack in the ebuild:

if [ `use x86` ] ; then
                use sse && epatch ${FILESDIR}/${PN}-simd.patch
                use 3dnow && append-flags -Dsimd_3dn
        fi

Please either use the "ufed" utility to unset the 3dnow USE-flag or do it manually.
Comment 2 Tom Regner 2003-08-29 01:01:01 UTC
Please either use the "ufed" utility to unset the 3dnow USE-flag or do it 
manually 
 
I don't have the 3dnow flag set; my USE variable: 
 
USE="X gtk kde -gnome -alsa aalib acpi -apache2 avi berkdb crypt cups curl dga 
-doc dvd encode fbcon foomaticdb gd gdbm gif gpm guile imap imlib innodb java 
jpeg junit lcms ldap libg++ libwww maildir mysql ncurses nls pda ppds pdflib 
perl plotutils png postgres python qt quicktime readline samba sasl sdl slp 
spell sse ssl tetex tiff truetype usb wmf X xml xml2 xmms zlib" 
 
What else could cause such behaviour? 
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2003-08-29 13:20:44 UTC
3dnow is set as a default in make.globals, which you should not modify.
So, either add -3dnow to your USE in /etc/make.conf, or "emerge ufed" and unset 3dnow there. (With the latter being the best option, ufed allows management of your USE-flags in a much friendlier way).

There is a bug open about this default, apparently more people didn't like it :)
Comment 4 Jon Portnoy (RETIRED) gentoo-dev 2003-08-29 13:25:38 UTC

*** This bug has been marked as a duplicate of 27555 ***