Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49132 - xine-lib-1_rc3-r3 fails to compile
Summary: xine-lib-1_rc3-r3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 49451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-27 00:21 UTC by crusaderky
Modified: 2004-04-30 03:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crusaderky 2004-04-27 00:21:43 UTC
 
Comment 1 crusaderky 2004-04-27 00:28:27 UTC
(d'oh - blank post sorry)

$ emerge -pv xine-lib

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

Calculating dependencies ...done!
[ebuild     U ] media-libs/xine-lib-1_rc3-r3 [1_rc3-r1] +X +aalib +alsa +arts +avi +directfb +dvd +esd +gnome +ipv6 +nls +oggvorbis +sdl +speex -theora  0 kB

$ emerge -v xine-lib
[CUT]
 gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../../include -I../../../../include -I../../../../src -I../../../../src/xine-engine -I../../../../src/xine-engine -I../../../../src/xine-utils -I../../../../src/input -I../../../../src/input -DSIMPLE_IDCT -DHAVE_AV_CONFIG_H -DRUNTIME_CPUDETECT -DUSE_FASTMEMCPY -DCONFIG_RISKY -DCONFIG_DECODERS -DXINE_MPEG_ENCODER -DCONFIG_ZLIB -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -DENABLE_IPV6 -O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse -mno-sse2 -c dsputil_mmx.c -MT dsputil_mmx.lo -MD -MP -MF .deps/dsputil_mmx.TPlo -o .libs/dsputil_mmx.o
dsputil_mmx.c: In function `dsputil_init_mmx':
dsputil_mmx.c:2116: warning: unused variable `dct_algo'
dsputil_mmx.c: In function `h263_h_loop_filter_mmx':
dsputil_mmx.c:614: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
dsputil_mmx.c: At top level:
dsputil_mmx_rnd.h:363: warning: `avg_no_rnd_pixels8_l2_mmx' defined but not used
dsputil_mmx_rnd.h:410: warning: `avg_no_rnd_pixels16_l2_mmx' defined but not used
dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_3dnow' defined but not used
dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_3dnow' defined but not used
dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_mmx2' defined but not used
dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_mmx2' defined but not used
dsputil_mmx.c:1976: warning: `try_8x8basis_mmx' defined but not used
dsputil_mmx.c:2024: warning: `add_8x8basis_mmx' defined but not used
make[5]: *** [dsputil_mmx.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r3/work/xine-lib-1-rc3c/src/libffmpeg/libavcodec/i386'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r3/work/xine-lib-1-rc3c/src/libffmpeg/libavcodec'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r3/work/xine-lib-1-rc3c/src/libffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r3/work/xine-lib-1-rc3c/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r3/work/xine-lib-1-rc3c'
make: *** [all] Error 2

!!! ERROR: media-libs/xine-lib-1_rc3-r3 failed.
!!! Function src_compile, Line 109, Exitcode 2
!!! Parallel make failed



$ emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X X509 aalib alsa apache2 apm arts avi berkdb bonobo cdr chroot crypt cscope cups curl dga directfb doc dv dvb dvd dvdr encode esd faad fbcon flash foomaticdb gd gdbm ggi gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imap imlib innodb ipv6 java jikes joystick jpeg kde kerberos krb4 lcms ldap libg++ libwww linguas_it mad mcal md5sum memlimit mikmod mmx mng motif mozilla moznoirc mozp3p mozsvg mpeg mpi mysql ncurses nls nptl odbc offensive oggvorbis opengl oss pam parse-clocks pdflib perl pic png ppds prelude python qt quicktime readline samba scanner sdl skey slang slp snmp socks5 speex spell sse ssl svga tcltk tcpd tetex tiff truetype usb v4l vim-with-x wmf wxwindows x86 xchattext xml xml2 xmms xv xvid yaz zlib"
Comment 2 Joël 2004-04-27 04:50:42 UTC
Hi

I've had similar problems building this library. It is related to your CFLAGS.

Can you try with -O2 only ?

By the way, I've identified another (specific) flag which should be filtered by the ebuild:

-funroll-all-loops   =>should be replace with..=>   -funroll-loops

probably, some flag combinations generate impossible constraints for GCC.
Comment 3 Ernst Herzberg 2004-04-27 16:00:44 UTC
Same error here with
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-addr"

Comment 4 Ernst Herzberg 2004-04-27 16:35:26 UTC
With 
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
it compiles successful.
Comment 5 crusaderky 2004-04-27 17:47:14 UTC
compiled with CFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"

and it works perfectly. just filter out -fforce-addr.
Comment 6 jason wohlgemuth 2004-04-28 19:22:27 UTC
Modified the ebuild myself and it seems to continue past the point.

Aurora root # diff /usr/portage/media-libs/xine-lib/xine-lib-1_rc3-r3.ebuild xine-lib-1_rc3-r3.ebuild 
77d76
<         filter-flags -fforce-addr
Aurora root # 

Comment 7 Martin Holzer (RETIRED) gentoo-dev 2004-04-30 03:48:32 UTC
now filtering this flag
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2004-04-30 03:49:35 UTC
*** Bug 49451 has been marked as a duplicate of this bug. ***