the emerge output is: i686-pc-linux-gnu-gcc -fPIC -c `cat i686/c_flags` video/reconstruct.c -o i686/video/reconstruct.lo video/output.c:274: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:274: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:367: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:367: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:231: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:231: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:231: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:231: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:324: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:324: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:324: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:324: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:274: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:274: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:274: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:274: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:367: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:367: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:367: error: can't find a register in class `GENERAL_REGS' while reloading `asm' video/output.c:367: error: can't find a register in class `GENERAL_REGS' while reloading `asm' make: *** [i686/video/output.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: media-libs/libmpeg3-1.5.2-r3 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile libmpeg3-1.5.2-r3.ebuild, line 68: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. emerge info is Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.12.4 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -pipe -march=pentium4 -fomit-frame-pointer -fforce-addr -mfpmath=sse -mmmx -msse2 -funroll-loops" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /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/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O3 -pipe -march=pentium4 -fomit-frame-pointer -fforce-addr -mfpmath=sse -mmmx -msse2 -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distclean distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3ds X aac acpi acpi4linux alsa ansi apache2 apm arts artswrappersuid asm auctex automount avi bcmath bitmap-fonts blas bzip2 bzlib c3p0 cdparanoia cdrom chroot cli clisp cln cmucl cpdflib cpulimit crypt cups devfs26 dhcp divx4linux dlloader dri dvd dvdr dvdread eds emacs emacs-w3 emboss encode erandom esd exif f2c fb fbcon fbdev fftw fontconfig foomaticdb fortran fortran95 freetype ftp gb gdbm gif gimpprint glgd gmail gnome gnuplot gphoto2 gpm graphviz gs gsl gstreamer gtk gtk2 gtkhtml html http icc icc-pgo icq idea imap imlib ipv6 isdnlog javacomm javadoc javascript jpeg jpeg2k kde koffice-plugin latex leim libg++ libwww logitech-mouse lzo lzw lzw-tiff mad math md5sum mikmod mime mjpeg mmx mmx2 mmxext mng motif mozilla mp3 mp4 mp4live mpeg mpeg2 mplayer ncurses nfs nls nptl numeric nvidia nviz oav ocaml octave office ogg opengl oscar oss pam pcre pdf pdflib perl png povray pppd python qt3 qt4 quicktime readline real recode reflection reiserfs screenshot sdl session sockets socks5 speedo spell spl sse sse2 ssl svgz sysfs szip t1lib tcpd tetex tga theora tiff toolbar truetype truetype-fonts type1 type1-fonts udev unicode unzip usb vorbis wildlsearch win32codecs wma wmf xemacs xface xforms xml xmms xorg xpm xscreensaver xv zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Please try compiling with: CFLAGS="-O2 -pipe" CXXFLAGS="${CFLAGS}" before reporting a bug.
you were right. Without Cflags it worked. Maybe someone can add in the ebuild script a message that one must compile without advanced cflags closed
du..
*** This bug has been marked as a duplicate of 141323 ***