As portage told me, i'm sending output as attachment ;) Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~x86" 2. emerge sync 3. emerge mjpegtools Actual Results: if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I ../utils -I .. -funroll-all-loops -finline-functions -ffast-math -frerun-cse-after-loop -frerun-loop-opt -fexpensive-optimizations -fmove-all-movables -mcpu=i686 -march=i686 -O3 -march=pentium4 -funroll-loops -fPIC -pipe -mno-sse2 -Wall -Wunused -MT motion.o -MD -MP -MF ".deps/motion.Tpo" \ -c -o motion.o `test -f 'motion.c' || echo './'`motion.c; \ then mv -f ".deps/motion.Tpo" ".deps/motion.Po"; \ else rm -f ".deps/motion.Tpo"; exit 1; \ fi motion.c: In function `calc_SAD_mmx': motion.c:143: internal compiler error: asm clobber conflict with output operand Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /home/portage-tmp/portage/mjpegtools-1.6.2/temp/cc2AyJaH.out file, please attach this to your bugreport make[2]: *** [motion.o] Error 1 make[2]: Leaving directory `/home/portage-tmp/portage/mjpegtools-1.6.2/work/mjpegtools-1.6.2/yuvdenoise' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/portage-tmp/portage/mjpegtools-1.6.2/work/mjpegtools-1.6.2' make: *** [all] Error 2 !!! ERROR: media-video/mjpegtools-1.6.2 failed. !!! Function src_compile, Line 77, Exitcode 2 !!! compile problem Expected Results: Merge mjpegtools. bash-2.05b# emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fPIC -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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fPIC -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/portage-tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow X acpi alsa apm arts avi berkdb cdr crypt curl dga directfb dvd encode fbcon foomaticdb gdbm gif gphoto2 gpm gtk iconv imap imlib java jpeg kde kerberos lcms ldap libg++ libwww linguas_cs linguas_en mad maildir mcal md5sum mikmod motif mozilla mpeg ncurses nls nocardbus nptl oggvorbis opengl pam pda pdflib perl pic png python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tiff truetype usb videos vim-with-X x86 xml xml2 xmms xv zlib"
Created attachment 26977 [details] Output given by portage.
ICE is a gcc error adding gcc-porting@gentoo.org to CC as it is a gcc problem
same problem here... tried with dulled down cflags, same result
Same problem here. I'm using gcc 3.3.3. Removing -fPIC from my CFLAGS solved the problem. Exact CFLAGS used to compile succesfully were as follows: -march=pentium3 -O2 -pipe -fomit-frame-pointer
So just don't do that, then - it's a bad idea anyway. Please see http://www.gentoo.org/proj/en/hardened/pic-internals.xml for reasons. Declaring this WONTFIX.
I have the exact same issue as described here while merging "media-video/mjpegtools-1.6.2-r3" but I do not have -fPIC in my CFLAGS or CXXFLAGS. I do have "hardened pic pie" in my USE flags, I tried removing them and putting "media-video/mjpegtools -pie -pic -hardened" in /etc/portage/package.use but it didn't build any better. This is my emerge info: Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-rc3 i686) ================================================================= System uname: 2.6.10-rc3 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r2 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://mirror.scarlet-internet.nl/pub/gentoo http://gentoo.tiscali.nl/gentoo/ ftp://ftp.tiscali.nl/pub/mirror/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X aalib acl acpi alsa apache2 apm avi berkdb bindist bitmap-fonts bonobo bzlib cdparanoia cdr crypt curl divx4linux dnd dvd dvdr dvdread encode fam flac foomaticdb fortran gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 guile hardened idea imagemagick imlib java jpeg junit kde ldap libwww mad mikmod mmx mmx2 motif mozilla mp3 mpeg msn mysql mysqli ncurses nls nocd nvidia offensive oggvorbis opengl oss pam pdflib perl php pic pie png python qt quicktime readline samba sdl slang smime spell sse sse2 ssl svga tcltk tcpd tiff truetype usb v4l v4l2 xine xml xml2 xmms xscreensaver xv xvid zlib linguas_en linguas_nl"
you have 2 options: 1. choose w/ gcc-config a compiler (specs) without pie (hardenednopie) 2. -fPIE is enforced by the gcc's specs, the ebuild is incorrect all the mmx/sse/nasm related code has to be disabled adding pic to IUSE because the asm code is non-PIC compliant and probably if ! use pic && use x86 has to be used. I do not propose currently option 2. because almost all the libs used by this package are also faulty, have to revised to work correctly (avifile for ex.)