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/usr/X11R6/include -mcpu=athlon -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wpointer-arith -Wnested-externs -Wcast-align -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer -c cpu_accel.c -MT cpu_accel.lo -MD -MP -MF .deps/cpu_accel.TPlo -fPIC -o .libs/cpu_accel.o cpu_accel.c: In function `arch_accel': cpu_accel.c:100: error: can't find a register in class `BREG' while reloading `asm' cpu_accel.c:106: error: can't find a register in class `BREG' while reloading `asm' cpu_accel.c:117: error: can't find a register in class `BREG' while reloading `asm' cpu_accel.c:121: error: can't find a register in class `BREG' while reloading `asm' make[3]: *** [cpu_accel.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/xine-lib-1_rc3-r1/work/xine-lib-1-rc3a/src/xine-utils' gcc -v: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs Configured with: /var/tmp/portage/gcc-3.3.2-r4/work/gcc-3.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x --disable-multilib Thread model: posix gcc version 3.3.2 20031201 (Gentoo Linux 3.3.2-r4, propolice) ld -V GNU ld version 2.14.90.0.7 20031029 Supported emulations: elf_i386 i386linux elf_i386_glibc21 Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0-mppe-libata1-tivo_ptn) ================================================================= System uname: 2.6.0-mppe-libata1-tivo_ptn i686 AMD Athlon(TM) XP 2400+ Gentoo Base System version 1.4.3.12 ccache version 2.3 [disabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/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/env.d" CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox userpriv" 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="/usr/local/portage-gnome251" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups directfb dv dvd dvdr encode esd evo faad fam flac flash foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib imlib2 jabber jack java javascript jpeg kde ldap libg++ libwww mad maildir mcal mikmod mmx mng motif mozilla mpeg msn mysql nas ncurses nls nptl nvidia offensive ofx oggvorbis opengl oscar oss pam pcap pdflib perl physfs pic png ppds psyco python qt quicktime readline samba sasl scanner sdl slang snmp socks5 sox speex spell sse ssl stroke svga tcltk tcpd tetex tiff transcode truetype usb wmf wxwindows x86 xine xml2 xmms xv xvid yahoo zlib"
Google says it may be that this code does not like -fPIC. Checking...
Shawn, take out the -mcpu portion of your CFLAGS and CXXFLAGS and try this
Nope. Seems that only removing -fPIC makes it go.
I just upgraded to glibc-2.3.3_pre20031222... I wonder if I should re-emerge binutils / gcc...
I'm having the same problem. How would you go about removing -fPIC?
This problem seems to be related to the patch xine-lib-1_rc3-configure-sparc.patch. Commenting out that patch in the ebuild caused the emerge to complete without errors. This is on my athlon-tbird, not a sparc. Maybe the ebuild should check what arch it is on to decide whether to apply the patch. Or maybe the patch needs some work.
Same thing here. On my Pentium 4, commenting out the sparc configure patch did help, although I do not understand why. That code IMHO is not used on an Intel system ...
Got the same error - tried removing the sparc patch as reported, that seems to fix me too. Athlon MP system.
Same problem... Same fix :-D (Athlon-XP)
maybe the patch should only be applied for sparc arch ?
only apply the sparc patch for sparc. Closes #36759.
Thanks for the fix Martin!