Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132416 - media-libs/xine-lib-1.1.2_pre20060328-r5 fails on x86 w/ -fforce-addr
Summary: media-libs/xine-lib-1.1.2_pre20060328-r5 fails on x86 w/ -fforce-addr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Developers for the x86 Architecture
URL:
Whiteboard:
Keywords:
: 132210 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-06 01:03 UTC by Martux
Modified: 2006-06-27 12:20 UTC (History)
4 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 Martux 2006-05-06 01:03:12 UTC
Hello! This Version of xine-lib fails with the following error (could find no solution whether in forums nor here):
...
i686-pc-linux-gnu-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 -I../../../../lib -fvisibility=hidden -I../../../../src/post/deinterlace -I../../../../src/libffmpeg/libavcodec/libpostproc -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args -frename-registers -ffunction-sections -c kdetv_greedyh.c  -fPIC -DPIC -o .libs/libdeinterlaceplugins_la-kdetv_greedyh.o
kdetv_greedyh.c: In function `deinterlace_frame_di_greedyh':
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
greedyh.asm:133: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[5]: *** [libdeinterlaceplugins_la-kdetv_greedyh.lo] Fehler 1
make[5]: Leaving directory `/var/tmp/portage/xine-lib-1.1.2_pre20060328-r5/work/xine-lib-1.1.2cvs/src/post/deinterlace/plugins'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/var/tmp/portage/xine-lib-1.1.2_pre20060328-r5/work/xine-lib-1.1.2cvs/src/post/deinterlace'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/xine-lib-1.1.2_pre20060328-r5/work/xine-lib-1.1.2cvs/src/post'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/xine-lib-1.1.2_pre20060328-r5/work/xine-lib-1.1.2cvs/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/xine-lib-1.1.2_pre20060328-r5/work/xine-lib-1.1.2cvs'
make: *** [all] Fehler 2

!!! ERROR: media-libs/xine-lib-1.1.2_pre20060328-r5 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  xine-lib-1.1.2_pre20060328-r5.ebuild, line 237:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



My emerge --info:

Portage 2.1_pre10-r3 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r6 i686)
=================================================================
System uname: 2.6.16-gentoo-r6 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
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
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
CHOST="i686-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/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://distfiles.gentoo.org  http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
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="x86 X a52 aac alsa apache2 apm asf audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr cli cups dri dvd dvdread eds emboss encode fam ffmpeg foomaticdb fortran gdbm gif gpm gtk gtk2 hal imlib isdnlog java jpeg kde kdeenablefinal kdexdeltas libg++ libwww mad mikmod motif mp3 mpeg ncurses nls noamazon nptl nvidia ogg opengl pam pcre pdflib perl pic png pppd python qt quicktime readline reflection sdl session spell spl ssl symlink tcpd theora tiff truetype truetype-fonts type1-fonts udev usb userlocales vcd video_cards_nvidia vidix vmware vorbis win32codecs xcomposite xine xml xorg xv xvid xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_de userland_GNU video_cards_nv"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
Comment 1 Stephan 'smg' Grein 2006-05-06 03:14:10 UTC
Are you kidding, you ricer?
Stop using that stupid CXXFLAGS and try again..
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-06 04:37:34 UTC
Register starvation goes to x86 arch team.
Comment 3 David Morgan 2006-05-06 05:38:55 UTC
Ok, this is a CFLAGS issue.

I reproduced the bug with 
CFLAGS="-march=pentium-m -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args

but xine-lib compiled with:
-march=pentium3 -O2 -pipe -fomit-frame-pointer -falign-functions=4
-march=pentium3 -O2 -pipe -fomit-frame-pointer -funroll-loops
-march=pentium3 -O2 -pipe -fomit-frame-pointer -maccumulate-outgoing-args

I can't be bothered to spend anymore time trying to track down what's causing it.

The user needs to fix his CFLAGS and this should be resolved as invalid in my opinion...
Comment 4 Stephan 'smg' Grein 2006-05-06 06:12:44 UTC
Full ack David, he should fix his CFLAGS and CXXFLAGS instead of ricing.
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2006-05-06 06:54:18 UTC
Stephan, please keep comments that don't actually *help* the bug, off of the bug.

The problem is most likely due to -funroll-loops or -maccumulate-outgoing-args.  Pick a sane set of global CFLAGS and you shouldn't have a problem.
Comment 6 Martux 2006-05-06 08:32:01 UTC
(In reply to comment #5)
> Stephan, please keep comments that don't actually *help* the bug, off of the
> bug.
> 
> The problem is most likely due to -funroll-loops or -maccumulate-outgoing-args.
>  Pick a sane set of global CFLAGS and you shouldn't have a problem.
> 


Hello! Truly sorry for this mess :( I didn't even knew, i was ricing. Fixed my CFLAGS and now it works! Thank you! 
Comment 7 spiralvoice 2006-05-09 01:46:22 UTC
What about filter_flags fforce-addr for this ebuild?
Comment 8 David Morgan 2006-05-09 03:55:29 UTC
Oh, it fails here with CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr" (didn't check that one before because I didn't think -fforce-addr would be the problem).

So yeah, we could filter it on x86...
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-05-09 04:03:00 UTC
Confirmed here, -fforce-addr breaks compile. Reopening. 
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-09 15:58:30 UTC
So, x86 arch team, this is up to you, feel free to fix it as you find pleasure :P
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-05-10 04:22:44 UTC
*** Bug 132210 has been marked as a duplicate of this bug. ***
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-13 17:53:37 UTC
Adding filter line.
Comment 13 Stefano Balocco 2006-06-04 08:00:48 UTC
Seems that the filter function don't filter (CXX||CPP)FLAGS.
Comment 14 Brian Haythorn 2006-06-27 12:20:34 UTC
(In reply to comment #9)
> Confirmed here, -fforce-addr breaks compile. Reopening. 
> 

omitting the flag -fomit-frame-pointer caused this bug for me.
interestingly the gentoo installer did this...

-b