Bug 28439 - libvorbis fails to compile with CFLAGS=-msse2
Bug#: 28439 Product:  Gentoo Linux Version: 1.4 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: sound@gentoo.org Reported By: rmalheiro@6mil.pt
Component: Applications
URL: 
Summary: libvorbis fails to compile with CFLAGS=-msse2
Keywords:  
Status Whiteboard: 
Opened: 2003-09-11 07:05 0000
Description:   Opened: 2003-09-11 07:05 0000
When I try to emerge libvorbis with CFLAGS=-msse2 it fails to compile. If I
remove "-msse2" 
from CFLAGS it compiles successfuly.  

Reproducible: Always
Steps to Reproduce:
1. CFLAGS="-O2 -march=pentium4 -funroll-loops -mmmx -msse -msse2 -pipe" in 
/etc/make.conf 
2. emerge libvorbis 

Actual Results:  
************* 
* final part of emerge libvorbis: 
************* 
gcc -DPACKAGE=\"libvorbis\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_SQRTF=1 -DHAVE_LOGF=1 
-DHAVE_EXPF=1 -DHAVE_ACOSF=1 -DHAVE_ATANF=1 -DHAVE_FREXPF=1 
-DHAVE_RINTF=1 -DHAVE_FLOORF=1 -I. -I. -I../include -I/usr/include -O20
-ffast-math 
-D_REENTRANT -fsigned-char -O2 -funroll-loops -mmmx -msse -msse2 -pipe 
-DUSE_MEMORY_H -c block.c  -fPIC -DPIC -o .libs/block.lo 
{standard input}:2697: Error: suffix or operands invalid for `movd' 
{standard input}:4688: Error: suffix or operands invalid for `movd' 
make[2]: *** [smallft.lo] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
gcc -DPACKAGE=\"libvorbis\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 
-DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_SQRTF=1 -DHAVE_LOGF=1 
-DHAVE_EXPF=1 -DHAVE_ACOSF=1 -DHAVE_ATANF=1 -DHAVE_FREXPF=1 
-DHAVE_RINTF=1 -DHAVE_FLOORF=1 -I. -I. -I../include -I/usr/include -O20
-ffast-math 
-D_REENTRANT -fsigned-char -O2 -funroll-loops -mmmx -msse -msse2 -pipe 
-DUSE_MEMORY_H -c block.c -o block.o >/dev/null 2>&1 
mv -f .libs/block.lo block.lo 
make[2]: Leaving directory
`/var/tmp/portage/libvorbis-1.0-r4/work/libvorbis-1.0/lib' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory
`/var/tmp/portage/libvorbis-1.0-r4/work/libvorbis-1.0/lib' 
make: *** [all-recursive] Error 1 

!!! ERROR: media-libs/libvorbis-1.0-r4 failed. 
!!! Function src_compile, Line 50, Exitcode 2 
!!! (no error message) 


Expected Results:  
Successful emerge of libvorbis package. 

vincent / # emerge info 
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1,
2.4.21-rc1-acpi.test) 
================================================================= 
System uname: 2.4.21-rc1-acpi.test i686 Intel(R) Pentium(R) 4 CPU 2.53GHz 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -funroll-loops -mmmx -msse -msse2 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -funroll-loops -mmmx -msse -msse2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS="http://gauguin:8001" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif imlib java jpeg kde
libg++ 
libwww mad mikmod mmx motif mpeg ncurses nls pdflib png quicktime sdl spell
truetype xml2 
xmms xv zlib gdbm berkdb slang readline svga gpm tcpd pam ssl perl python
oggvorbis qt 
opengl aalib alsa -gnome gtk ldap radeon samba sse X xinerama"

------- Comment #1 From J. Ellis 2003-09-20 03:37:35 0000 -------
Now filtering sse2. Thanks.