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

Bug 95873

Summary: libsdl fails to compile. Possible MMX failure
Product: Gentoo Linux Reporter: David Lee <lastlee.com>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Lee 2005-06-12 08:45:46 UTC
When I run `emerge libsdl` with any use flags with the exception of "novideo",
the emerge fails to compile with the following errors:

--------------------------------
 i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"SDL\" -DVERSION=\"1.2.8\" -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 -march=pentium4 -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT
-DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../src/hermes -DALSA_SUPPORT
-DALSA_DYNAMIC=libasound.so.2 -DUSE_DLVSYM -DENABLE_X11 -DXTHREADS -I./include
-I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV -DENABLE_DIRECTFB
-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  -fPIC -DPIC -o
.libs/SDL_yuv_mmx.o
SDL_yuv_mmx.c:59: warning: `MMX_Ugrn555' defined but not used
SDL_yuv_mmx.c:60: warning: `MMX_Vgrn555' defined but not used
SDL_yuv_mmx.c:64: warning: `MMX_red555' defined but not used
SDL_yuv_mmx.c:66: warning: `MMX_grn555' defined but not used
SDL_yuv_mmx.c:68: warning: `MMX_blu5x5' defined but not used
 i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"SDL\" -DVERSION=\"1.2.8\" -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 -march=pentium4 -pipe -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT
-DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../src/hermes -DALSA_SUPPORT
-DALSA_DYNAMIC=libasound.so.2 -DUSE_DLVSYM -DENABLE_X11 -DXTHREADS -I./include
-I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_XV -DENABLE_DIRECTFB
-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 >/dev/null
2>&1
make[3]: *** [SDL_yuv_mmx.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src/video'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src/video'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libsdl-1.2.8-r1/work/SDL-1.2.8/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libsdl-1.2.8-r1 failed.
!!! Function src_compile, Line 147, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------------

Also, this warning happens after the patches are applied:

Generating build information using aclocal, automake and autoconf
This may take a while ...
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal


Reproducible: Always
Steps to Reproduce:
1. emerge libsdl
2.
3.

Actual Results:  
fail to emerge, outputting errors and such

Expected Results:  
emerge cleanly

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-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 10 2005, 11:29:25)]
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="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apm avi berkdb bitmap-fonts crypt directfb emacs
emboss encode esd ffmpeg foomaticdb fortran gdbm ggi gif gpm gtk gtk2 imlib java
jpeg libg++ libwww mad mikmod motif mp3 mpeg nas ncurses nls nvidia ogg
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl
spell sse sse2 ssl svga tcpd tiff truetype truetype-fonts type1-fonts vorbis
xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
--------------------------------

Note that some of the USE flags aren't what I intended to use for emerging libsdl.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-12 11:30:06 UTC

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