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

Bug 124782

Summary: media-video/mplayer-1.0.20060302 compile failure on amd64. Segfault on cpudetect.
Product: Gentoo Linux Reporter: Chad A. Simmons <chad.simmons>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chad A. Simmons 2006-03-03 05:45:27 UTC
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -I.      -I/usr/include/freetype2  -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include   -I./libavutil -I./libavcodec   -o cpudetect.o cpudetect.c
make: *** [cpudetect.o] Segmentation fault
make: *** Deleting file `cpudetect.o'

!!! ERROR: media-video/mplayer-1.0.20060302 failed.
!!! Function src_compile, Line 478, Exitcode 2
!!! Failed to build MPlayer!
!!! If you need support, post the topmost build error, NOT this status message.

chadgentoo ~ # emerge info
Portage 2.0.54 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.6-r1, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -msse3 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-Bdirect"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acl acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 ccache cdr crypt css cups curl daap dts dvd dvdr dvdread eds emboss encode esd ethereal exif expat extensions fam ffmpeg flac foomaticdb fortran gd gdbm gif glut glx gmail gmailtimestamps gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal hpn idn imagemagick imlib ipv6 java joystick jpeg kde kdenablefinal lcms lm_sensors lzo lzw lzw-tiff mad mjpeg mng motif mozilla mp3 mpeg mplayer ncurses nls nsplugin nvidia offensive ogg opengl oss pam pcre pdflib perl pic png python qt quicktime readline real recode rtc samba scanner sdl session slang spell ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis xcomposite xine xml xml2 xmms xpm xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, MAKEOPTS
Comment 1 Chad A. Simmons 2006-03-03 10:15:56 UTC
Manual compilation of file using identical commands from the workdir appears to work. I'm not sure how to futher troubleshoot.

chadgentoo mplayer-1.0.20060302 # cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -I.      -I/usr/include/freetype2 -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include   -I./libavutil -I./libavcodec   -o cpudetect.o cpudetect.c
chadgentoo mplayer-1.0.20060302 # file cpudetect.o
cpudetect.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped
Comment 2 Chad A. Simmons 2006-03-03 10:50:12 UTC
Also not sure why the cpudetect portion is being compiled. My use flags show cpudetection as not set
chadgentoo mplayer-1.0.20060302 # emerge --pretend -v mplayer

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-video/mplayer-1.0.20060302 [1.0.20060217] (-3dfx) (-3dnow) (-3dnowext) +X +aac +aalib +alsa (-altivec) -arts -bidi -bindist -bl -cdparanoia -cpudetection -custom-cflags -debug -dga -directfb -doc +dts -dv -dvb +dvd +dvdread -edl +encode +esd -fbcon -ggi +gif +gtk -i8x0 +ipv6 -jack +joystick +jpeg -libcaca -lirc -live -livecd +lzo +mad -matroska -matrox (-mmx) (-mmxext) -musepack -nas +nls +nvidia -openal +opengl +oss +png +real +rtc +samba +sdl (-sse) (-sse2) (-svga) -tga -theora +truetype -v4l -v4l2 +vorbis (-win32codecs) -x264 -xanim -xinerama +xmms +xv +xvid +xvmc 0 kB
Comment 3 Chad A. Simmons 2006-03-03 10:51:40 UTC
Not sure what happened. I could not get the emerge to complete without the error even after blowing away the work directory. Now after compiling the file by hand I cannot get it to fail even after removing the workdir.
Comment 4 Luca Barbato gentoo-dev 2006-03-03 10:52:39 UTC
looks like a compiler issue, try updating your compiler and maybe remove -msse3 from the cflags...