I've looked on bug 49502, and it doesn't fit exactly the problem I'm getting. Also, I've emerge pango 1.2.5-r1 and it didn't "help" when trying to emerge 1.4.0. last lines of compiling: /bin/sh ../libtool --mode=link gcc -O3 -march=i686 -funroll-loops -pipe -fomit-frame-pointer -Wall -o pangoft2topgm pangoft2topgm.o argcontext.o ../pango/libpango-1.0.la ../pango/libpangoft2-1.0.la -lfontconfig -lfreetype -lz mkdir .libs gcc -O3 -march=i686 -funroll-loops -pipe -fomit-frame-pointer -Wall -o .libs/pangoft2topgm pangoft2topgm.o argcontext.o ../pango/.libs/libpango-1.0.so ../pango/.libs/libpangoft2-1.0.so /var/tmp/portage/pango-1.4.0/work/pango-1.4.0/pango/.libs/libpango-1.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz pangoft2topgm.o: file not recognized: File format not recognized collect2: ld returned 1 exit status make[2]: *** [pangoft2topgm] Error 1 make[2]: Leaving directory `/var/tmp/portage/pango-1.4.0/work/pango-1.4.0/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/pango-1.4.0/work/pango-1.4.0' make: *** [all] Error 2 !!! ERROR: x11-libs/pango-1.4.0 failed. !!! Function gnome2_src_compile, Line 39, Exitcode 2 !!! compile failure
emerge info (this is a p4 but compiles with -march=i686) Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25) ================================================================= System uname: 2.4.25 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.9 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -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.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 /usr/X11R6/bin/startx /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" MAKEOPTS="" PKGDIR="/home/httpd/html/gentoo/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx X alsa apm ardour-ksi avi bonobo cdr crypt cups curl doc encode faad2 foomaticdb gd ggi gif gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib jack jack-tmpfs java jpeg kde lcms libg++ libwww mad maildir memlimit mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mpi ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang ssl tcltk tiff truetype voodoo3 wmf x86 xml2 xmms xv zlib"
always start by lowering your cflags. Second, check what this file is it complains about.
It seems that -O3 combined with -fomit-frame-pointer causes this problem. Either toning down to -O2 or compiling without -fomit-frame-pointer emerges cleanly. The file it complains about is unrecognized (by file), but it should be an ELF file.
foser, would you suggest to close this bug? filter flags? report upstream to gcc?
if we had more reports on the same arch/gcc/etc. setup we could maybe report it, but like this it's too much a one man thing to put effort in (upstream) i think.
mmm. I also encountered this on one machine, which is a pentium4. I'm using the same flags on a pentium-II and got no such problem. I'll close this bug - no one seem to have this problem, and I got mine resolved after I got rid of a flag or two...
i have this have this problem as well. i tryed removing some flags but that doesn't work... anyone have any ideas?
Might it is the ccache problem. i face this problem when compiling the new version of fontforge. *But i resolved this by unmerge the ccache* AlterEgo reported this: http://forums.gentoo.org/viewtopic.php?p=103181#103181 hope this help