Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49482 - xine-lib-1_rc4 emerge fails
Summary: xine-lib-1_rc4 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 54345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-30 03:54 UTC by Guillaume Castagnino
Modified: 2005-10-09 05:09 UTC (History)
3 users (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 Guillaume Castagnino 2004-04-30 03:54:55 UTC
emerge fails with this message :
 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 -march=pentium4 -Os -mcpu=pentium4 -fomit-frame-pointer -f
unroll-loops -pipe -fno-stack-protector -mno-sse2 -fno-stack-protector -DHAVE_MMX -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_CO
MPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -march=pentium4 -mcpu=pentiu
m4 -funroll-loops -pipe -fno-stack-protector -mno-sse2 -fno-stack-protector -c lines.c -MT lines.lo -MD -MP -MF .deps/lines.TPlo -o .libs/line
s.o
In file included from lines.c:10:
drawmethods.h:79:9: warning: "/*" within comment
drawmethods.h:90:9: warning: "/*" within comment
drawmethods.h:101:9: warning: "/*" within comment
lines.c:52: warning: no previous prototype for `genline'
lines.c:85: warning: no previous prototype for `getcouleur'
lines.c:121: warning: no previous prototype for `goom_lines_move'
{standard input}: Assembler messages:
{standard input}:895: Error: suffix or operands invalid for `paddusb'
{standard input}:904: Error: suffix or operands invalid for `paddusb'
{standard input}:913: Error: suffix or operands invalid for `paddusb'
{standard input}:924: Error: suffix or operands invalid for `paddusb'
{standard input}:932: Error: suffix or operands invalid for `paddusb'
{standard input}:938: Error: suffix or operands invalid for `paddusb'
{standard input}:944: Error: suffix or operands invalid for `paddusb'
{standard input}:976: Error: suffix or operands invalid for `paddusb'
{standard input}:985: Error: suffix or operands invalid for `paddusb'
{standard input}:994: Error: suffix or operands invalid for `paddusb'
{standard input}:1005: Error: suffix or operands invalid for `paddusb'
{standard input}:1013: Error: suffix or operands invalid for `paddusb'
{standard input}:1019: Error: suffix or operands invalid for `paddusb'
{standard input}:1025: Error: suffix or operands invalid for `paddusb'
{standard input}:1062: Error: suffix or operands invalid for `paddusb'
{standard input}:1070: Error: suffix or operands invalid for `paddusb'
{standard input}:1078: Error: suffix or operands invalid for `paddusb'
{standard input}:1090: Error: suffix or operands invalid for `paddusb'
{standard input}:1093: Error: suffix or operands invalid for `paddusb'
{standard input}:1096: Error: suffix or operands invalid for `paddusb'
{standard input}:1099: Error: suffix or operands invalid for `paddusb'
{standard input}:1134: Error: suffix or operands invalid for `paddusb'
{standard input}:1142: Error: suffix or operands invalid for `paddusb'
{standard input}:1150: Error: suffix or operands invalid for `paddusb'
{standard input}:1162: Error: suffix or operands invalid for `paddusb'
{standard input}:1165: Error: suffix or operands invalid for `paddusb'
{standard input}:1168: Error: suffix or operands invalid for `paddusb'
{standard input}:1171: Error: suffix or operands invalid for `paddusb'
{standard input}:1220: Error: suffix or operands invalid for `paddusb'
{standard input}:1234: Error: suffix or operands invalid for `paddusb'
{standard input}:1248: Error: suffix or operands invalid for `paddusb'
{standard input}:1264: Error: suffix or operands invalid for `paddusb'
{standard input}:1276: Error: suffix or operands invalid for `paddusb'
{standard input}:1288: Error: suffix or operands invalid for `paddusb'
{standard input}:1300: Error: suffix or operands invalid for `paddusb'
{standard input}:1342: Error: suffix or operands invalid for `paddusb'
{standard input}:1356: Error: suffix or operands invalid for `paddusb'
{standard input}:1370: Error: suffix or operands invalid for `paddusb'
{standard input}:1386: Error: suffix or operands invalid for `paddusb'
{standard input}:1397: Error: suffix or operands invalid for `paddusb'
{standard input}:1408: Error: suffix or operands invalid for `paddusb'
{standard input}:1419: Error: suffix or operands invalid for `paddusb'
{standard input}:1467: Error: suffix or operands invalid for `paddusb'
{standard input}:1482: Error: suffix or operands invalid for `paddusb'
{standard input}:1497: Error: suffix or operands invalid for `paddusb'
{standard input}:1514: Error: suffix or operands invalid for `paddusb'
{standard input}:1527: Error: suffix or operands invalid for `paddusb'
{standard input}:1540: Error: suffix or operands invalid for `paddusb'
{standard input}:1553: Error: suffix or operands invalid for `paddusb'
{standard input}:1594: Error: suffix or operands invalid for `paddusb'
{standard input}:1608: Error: suffix or operands invalid for `paddusb'
{standard input}:1622: Error: suffix or operands invalid for `paddusb'
{standard input}:1638: Error: suffix or operands invalid for `paddusb'
{standard input}:1649: Error: suffix or operands invalid for `paddusb'
{standard input}:1660: Error: suffix or operands invalid for `paddusb'
{standard input}:1671: Error: suffix or operands invalid for `paddusb'
make[4]: *** [lines.lo] Erreur 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src/post/goom'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src/post'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4'
make: *** [all] Erreur 2

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

I have tried with MAKEOPTS="-j1" because of !!! Parallel make failed

emerge --info :
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-mm6)
=================================================================
System uname: 2.6.5-mm6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.10
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -fomit-frame-pointer -funroll-loops -pipe"
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/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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -Os -mcpu=pentium4 -fomit-frame-pointer -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.sdv.fr"
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="X aalib acpi acpi4linux alsa apache2 artswrappersuid avi berkdb cdr crypt cups dga directfb distribution dnd dvd encode faad fbcon ffmpeg foomaticdb freetype fs gd gdbm gif gimpprint gphoto2 gpm gtk gtk2 imagemagick imlib imlib2 java jpeg kde libg++ libwww linguas_fr mad matroska md5sum mikmod mmx motif mpeg mysql ncurses nls nptl nvidia oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline scanner sdl slang speex spell sse ssl tcltk tcpd tetex tiff truetype type1 unicode video_cards_nvidia wxwindows x86 xml2 xmms xv xvid zlib"



Reproducible: Always
Steps to Reproduce:
1. simply emerge xine-lib-1_rc4
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-04-30 03:56:29 UTC
drop down your CFLAGS and try again
try to find out the CFLAG which causes this, to filter it out
Comment 2 Guillaume Castagnino 2004-04-30 04:35:14 UTC
It works when removing -funroll-loops
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2004-05-02 13:42:37 UTC
no, it's the old "-fforce-addr" bug. ;-)

remove it, and it works. Every time, a new xine-lib is out, I have to remove -fforce-addr for this ebuild.

so PLEASE filter -fforce-addr

thanks!
Comment 4 Guillaume Castagnino 2004-05-02 14:56:56 UTC
No, it's not : -fforce-addr is filtered in this ebuild, and I do NOT have this flag in my CFLAGS...

It is really -funroll-loops...
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2004-05-02 15:03:08 UTC
ok, then tell me why this doesn't work:

CFLAGS="-march=pentium3 -mfpmath=sse -msse -mmmx -O3 -pipe -fomit-frame-pointer -falign-functions=4 -mpreferred-stack-boundary=4 -frerun-loop-opt -frerun-cse-after-loop -ffast-math -fforce-addr -foptimize-register-move -fschedule-insns2 -fmove-all-movables -freorder-blocks -fexpensive-optimizations -maccumulate-outgoing-args"

and this works:

CFLAGS="-march=pentium3 -msse -mmmx -O3 -pipe -fomit-frame-pointer -falign-functions=4 -mpreferred-stack-boundary=4 -frerun-loop-opt -frerun-cse-after-loop -ffast-math -foptimize-register-move -fschedule-insns2 -fmove-all-movables -freorder-blocks -fexpensive-optimizations -maccumulate-outgoing-args"

the only difference is the missing "-fforce-addr".

believe me, I tested it 2hrs before!
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2004-05-02 15:04:15 UTC
cause of -mfpmath=sse
Comment 7 Stefan Briesenick (RETIRED) gentoo-dev 2004-05-02 15:07:30 UTC
grmpf! I see, that there's another difference: -mfpmath=sse ;-)

I test the ebuild again, and post the error it throws.
Comment 8 Stefan Briesenick (RETIRED) gentoo-dev 2004-05-02 15:09:10 UTC
oh, our posts were crossed ;)
ok, if it is really the "-mfpmath=sse", then filter this one also.
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2004-05-02 15:12:55 UTC
that's not that easy
see bug 31087 for mfpmath=see issue
Comment 10 Stefan Briesenick (RETIRED) gentoo-dev 2004-05-02 15:19:31 UTC
ok, it's a GCC bug and %/&
Comment 11 Stefan Briesenick (RETIRED) gentoo-dev 2004-05-02 15:19:31 UTC
ok, it's a GCC bug and %/&§%$ code inside of xine-lib. But it would be nice, if some 'einfo' would give a hint then. It's at least a known problem!
Comment 12 Guillaume Castagnino 2004-05-02 15:21:11 UTC
It works well with thoses :
CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -fomit-frame-pointer -pipe"
and thoses :
CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -msse2 -mfpmath=sse,387 -fomit-frame-pointer -ffast-math -pipe"

But fails with thoses cflags :
CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -fomit-frame-pointer -funroll-loops -pipe"
and also with thoses (my usual CFLAGS) :
CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -msse2 -mfpmath=sse,387 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"

So my only change to make it works is to remove -funroll-loops...
Comment 13 Piotr Kalinowski 2004-05-04 10:58:18 UTC
It doesn't work for me untill I remove -mfpmath completely from CFLAGS.

pitkali@010 pitkali $ emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer -ffast-math -mpni -msse2 -mmmx -mfpmath=sse,387 -DNDEBUG -DG_DISABLE_ASSERT -fstack-protector"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer -ffast-math -mpni -msse2 -mmmx -mfpmath=sse,387 -DNDEBUG -DG_DISABLE_ASSERT -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="http://src.gentoo.pl http://mirror.datapipe.net/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.inode.at/ http://gentoo.tiscali.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.pl.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa arts avi berkdb cdr crypt cscope cups dvd encode fbcon flac flash foomatic foomaticdb gdbm gif gpm gtk gtk2 guile idl imagemagick imap imlib ipv6 java jpeg kde lcms libg++ libwww mad maildir mbox mikmod mmx motif mozilla mpeg ncurses nls odbc oggvorbis opengl pam pdflib perl png pns python qt quicktime readline scanner sdl slang spell sse ssl tcltk tcpd tiff truetype unicode usb videos wmf wxwindows x86 xml xml2 xmms xv zlib"

Comment 14 Angela Stempfel 2004-05-05 07:05:31 UTC
Hi all

i have exactly the same error:

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: In function `dsputil_init_mmx':
dsputil_mmx.c:2116: warning: unused variable `dct_algo'
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_rc4/work/xine-lib-1-rc4/src/libffmpeg/libavcodec/i386'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src/libffmpeg/libavcodec'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src/libffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1_rc4/work/xine-lib-1-rc4'
make: *** [all] Error 2

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

I already tried a lot of things with my CFLAGS, because there are tips in this forum. But nothing worked for me. My CFLAGS look like that:

CFLAGS="-march=pentium4 -O3 -pipe" 

Comment 15 Guillaume Castagnino 2004-05-15 07:43:18 UTC
Same problem with new 1_rc4-r1 :

MUST filter "-funroll-loops" when using with thoses CFLAGS : CFLAGS="-march=pentium4 -Os -mcpu=pentium4 -msse -msse2 -mmmx -mfpmath=sse,387 -
fomit-frame-pointer -ffast-math -pipe"

Those CFLAGS work. Adding -funroll-loops make it fails
Comment 16 Kay Sauter 2004-05-15 10:38:48 UTC
I have the same problem with:

CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"

AND

CFLAGS="-O2 -march=pentium4 -pipe"
(difference: without -fomit-frame-pointer).
USE="mmx sse gtk2 gnome qt kde dvd alsa cdr cups doc gpm gphoto2 icq imagemagick jpeg maildir mbox mpeg pdflib opengl oss pda png quicktime scanner sdl spell tetex tiff truetype usb X foomaticdb ppds other_var1 other_var2"

Of course, MAKEOPTS="-j1" USE="-mmx" doesn't work either.

One small difference:
!!! ERROR: media-libs/xine-lib-1_rc4 failed.
!!! Function src_compile, Line 117, Exitcode 2
!!! Parallel make failed

Notice "Line 117". I don't know how important this fact is, so i just put it in. (sorry)


Comment 17 Rene Androsch 2004-05-15 12:56:53 UTC
For me it was -mfpmath=sse. Just filter it out and it works.

My CFLAGS: -march=pentium4 -O3 -mmmx -msse -msse2 -funroll-loops -fprefetch-loop-arrays -pipe
Comment 18 SpanKY gentoo-dev 2004-06-23 06:49:57 UTC
*** Bug 54345 has been marked as a duplicate of this bug. ***
Comment 19 SpanKY gentoo-dev 2004-06-23 07:14:11 UTC
updated the ebuild to add -mno-sse3 and filter out sse math in the same places
where we kill sse2
Comment 20 Toralf Förster gentoo-dev 2005-10-09 05:09:49 UTC
A year ago this package builts fine using this diff:

tfoerste@n22 /usr/portage/media-libs/xine-lib $ diff -u xine-lib-1.0.1-r4.ebuild
/tmp/xine-lib-1.0.1-r4.ebuild
--- xine-lib-1.0.1-r4.ebuild    2005-10-08 16:45:53.000000000 +0200
+++ /tmp/xine-lib-1.0.1-r4.ebuild       2005-10-09 14:07:07.000000000 +0200
@@ -99,10 +99,10 @@
        is-flag -O? || append-flags -O1 #31243

        # fix build errors with sse2 #49482
-       if use x86 && [ $(gcc-major-version) -ge 3 ]; then
-               append-flags -mno-sse2 $(test_flag -mno-sse3)
-               filter-mfpmath sse
-       fi
+       #if use x86 && [ $(gcc-major-version) -ge 3 ]; then
+       #       append-flags -mno-sse2 $(test_flag -mno-sse3)
+       #       filter-mfpmath sse
+       #fi

        local myconf