<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>94377</bug_id>
          
          <creation_ts>2005-05-29 04:34 0000</creation_ts>
          <short_desc>libsdl doesn&apos;t build</short_desc>
          <delta_ts>2005-06-10 06:50:32 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>nunoplopes@sapo.pt</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>bickerdyke@gmx.net</cc>

      

      
          <long_desc isprivate="0">
            <who>nunoplopes@sapo.pt</who>
            <bug_when>2005-05-29 04:34:55 0000</bug_when>
            <thetext>libsdl doesn&apos;t build.

Reproducible: Always
Steps to Reproduce:
I&apos;ve tried to emerge mplayer, and it required libsdl.
When making it didn&apos;t output any error, because it redirects the errors to
/dev/null, althought I&apos;ve copy-paste the last command to check what the error was.
Actual Results:  
linux video # pwd
/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src/video

linux video #  i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\&quot;\&quot;
-DPACKAGE_TARNAME=\&quot;\&quot;-DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot;
-DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;SDL\&quot; -DVERSION=\&quot;1.2.8\&quot; -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1
-DHAVE_LIBASOUND=1 -I. -I. -O2 -mcpu=i686 -fomit-frame-pointer -mmmx -msse
-msse2 -pipe -mfpmath=sse -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT
-DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../src/hermes -DOSS_SUPPORT
-DALSA_SUPPORT -DALSA_DYNAMIC=libasound.so.2 -DUSE_DLVSYM -DARTSC_SUPPORT
-DARTSC_DYNAMIC=libartsc.so.0 -I/usr/kde/3.3/include/artsc -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DENABLE_X11 -DXTHREADS
-I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV
-DENABLE_SVGALIB -DHAVE_OPENGL -DUSE_INPUT_EVENTS -D_REENTRANT
-DSDL_USE_PTHREADS -DHAVE_SIGACTION -I../../include -I../../include/SDL
-I../../src -I../../src/main/linux -I../../src/audio -I../../src/video
-I../../src/video/XFree86/extensions -I../../src/events -I../../src/joystick
-I../../src/cdrom -I../../src/thread -I../../src/timer -I../../src/endian
-I../../src/file -I../../src/thread -c SDL_yuv_mmx.c -o SDL_yuv_mmx.o
SDL_yuv_mmx.c: In function `ColorRGBDitherYV12MMX1X&apos;:
SDL_yuv_mmx.c:113: error: can&apos;t find a register in class `GENERAL_REGS&apos; while
reloading `asm&apos;
SDL_yuv_mmx.c: At top level:
SDL_yuv_mmx.c:59: warning: `MMX_Ugrn555&apos; defined but not used
SDL_yuv_mmx.c:60: warning: `MMX_Vgrn555&apos; defined but not used
SDL_yuv_mmx.c:64: warning: `MMX_red555&apos; defined but not used
SDL_yuv_mmx.c:66: warning: `MMX_grn555&apos; defined but not used
SDL_yuv_mmx.c:68: warning: `MMX_blu5x5&apos; defined but not used</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2005-05-29 04:42:45 0000</bug_when>
            <thetext>Please attach your emerge info. 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nunoplopes@sapo.pt</who>
            <bug_when>2005-05-29 05:11:47 0000</bug_when>
            <thetext>Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11.10 i686)
=================================================================
System uname: 2.6.11.10 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 16:57:57)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -mcpu=i686 -fomit-frame-pointer -mmmx -msse -msse2 -pipe -mfpmath=sse&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -fomit-frame-pointer -mmmx -msse -msse2 -pipe -mfpmath=sse&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://darkstar.ist.utl.pt/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode fam
foomaticdb fortran gdbm gif gpm imlib ipv6 jpeg kde libg++ libwww mad mikmod mmx
motif mp3 mpeg ncurses nls nvidia ogg oggvorbis opengl oss pam pdflib perl png
python qtquicktime readline samba sdl spell sse sse2 ssl svga tcltk tcpd tiff
truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-05-29 05:14:17 0000</bug_when>
            <thetext>and if you use just CFLAGS=&quot;-O2&quot; ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nunoplopes@sapo.pt</who>
            <bug_when>2005-05-29 05:47:29 0000</bug_when>
            <thetext>yes, it works :(
Or gcc has a bug or its happening something strange..

linux ~ # gcc --version
gcc (GCC) 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1,
ssp-3.3.5.20050130-1,pie-8.7.7.1)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bickerdyke@gmx.net</who>
            <bug_when>2005-06-09 13:16:24 0000</bug_when>
            <thetext>I can confirm that. Emerge stopped with the same error, -O2 worked. 
 
my emerge info: 
 
Gentoo Base System version 1.6.12 
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.50GHz 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 19 2005, 20:45:16)] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS=&quot;x86&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-O2 -march=pentium3 -msse2 -pipe -fomit-frame-pointer&quot; 
CHOST=&quot;i686-pc-linux-gnu&quot; 
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot; 
CXXFLAGS=&quot;-O2 -march=pentium3 -msse2 -pipe -fomit-frame-pointer&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict 
userpriv usersandbox&quot; 
GENTOO_MIRRORS=&quot;ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo&quot; 
LINGUAS=&quot;de en&quot; 
MAKEOPTS=&quot;-j2&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot; 
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot; 
USE=&quot;x86 X aalib acpi acpi4linux alsa apm arts avi bitmap-fonts bluetooth 
bonobo bootsplash cdb cddb cdparanoia cdr cdrom crypt cups curl directfb 
divx4linux dvd dvdr dvdread emboss encode escreen esd ethereal exif fam fbcon 
flac fmod foomaticdb foreign-package fortran ftp gdbm gif gimpprint glgd gnome 
gphoto2 gpm gtk gtk2 gtkhtml guile hbci icq ieee1394 imagemagick imlib ipv6 
java javascript jpeg kde libg++ libwww live lzw lzw-tiff mad mdb memlimit 
mikmod moneyplex motif mp3 mpeg mpeg4 mplayer ncurses nethack network nls ogg 
oggvorbis ooo-kde opengl oss pam pcmcia pda pdflib perl png ppds python qt 
quotes radeon readline rtc samba sdl slang smartcard smime sockets spell sse 
ssl svg svga tcpd tetex tiff transcode truetype truetype-fonts type1-fonts usb 
v4l vorbis wifi xine xml xml2 xmms xosd xv zlib video_cards_radeon linguas_de 
linguas_en userland_GNU kernel_linux elibc_glibc&quot; 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS 
 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2005-06-09 13:54:34 0000</bug_when>
            <thetext>What if you just remove -msse2?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nunoplopes@sapo.pt</who>
            <bug_when>2005-06-10 04:03:33 0000</bug_when>
            <thetext>Yep, without -msse2 it compiles just fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2005-06-10 06:50:32 0000</bug_when>
            <thetext>Filtered -msse2 in CVS... emerge sync in an hour and try again...</thetext>
          </long_desc>
      
    </bug>

</bugzilla>