kevin@caboose palm $ emerge info Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.2.5-r2,2.3.2-r9, 2.4.25) ================================================================= System uname: 2.4.25 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.12 distcc 1.2.3 i686-pc-linux-gnu (protocol 1) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -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.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.sunsite.dk/gentoo/ ftp://sunsite.dk/mirrors/gentoo/ http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://distro.ibiblio.org/gentoo " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="X acpi acpi4linux alsa apache2 apm arts artswrappersuid avi berkdb bluetooth bonobo cdr crypt cups doc dvd encode esd foomaticdb gdbm gif gnome gphoto2 gpm gps gtk gtk2 gtkhtml imlib innodb irda irmc java joystick jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xinerama xml xml2 xmms xosd xv zlib" root@caboose razor # emerge prc-tools ... ... lots of output ... make[5]: Entering directory `/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/gcc295/gcc' rm -f tmplibgcc2.a for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \ do \ echo ${name}; \ /var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/gcc295/gcc/xgcc -B/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/gcc295/gcc/ -B/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/minitooldir/bin/ -I/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/minitooldir/include -O2 -DCROSS_COMPILE -DIN_GCC -march=i586 -O2 -I./include -Dinhibit_libc -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../../../prc-tools-2.3/gcc295/gcc -I../../../../prc-tools-2.3/gcc295/gcc/config -I../../../../prc-tools-2.3/gcc295/gcc/../include -c -DL${name} \ ../../../../prc-tools-2.3/gcc295/gcc/libgcc2.c -o ${name}.o; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ /var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/binutils/binutils/ar rc tmplibgcc2.a ${name}.o; \ rm -f ${name}.o; \ done _muldi3 cc1: Invalid option `arch=athlon' make[5]: *** [libgcc2.a] Error 1 make[5]: Leaving directory `/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/gcc295/gcc' make[4]: *** [stmp-multilib-sub] Error 2 make[4]: Leaving directory `/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/gcc295/gcc' make[3]: *** [stmp-multilib] Error 1 make[3]: Leaving directory `/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/gcc295/gcc' make[2]: *** [all-gcc] Error 2 make[2]: Leaving directory `/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos/gcc295' make[1]: *** [real-gcc] Error 2 make[1]: Leaving directory `/var/tmp/portage/prc-tools-2.3/work/build/m68k-palmos' make: *** [m68k-palmos] Error 2 !!! ERROR: dev-lang/prc-tools-2.3 failed. !!! Function src_compile, Line 88, Exitcode 2 !!! (no error message) I noticed that PRC tools is still using GCC 2.95 so I tried emerge'ing again but with '-march=i586' in my CFLAGS, I got the same error but with i586 instead of athlon. I would try a few more things in CFLAGS but it takes quite a while (15-20 minutes) to get to the stage where it fails. [Is there any way of continuing an emerge without starting right back at the beginning?]
try gcc-config
I tried gcc-config, setting it to GCC 2.95 and the CFLAGS to have -march=i586 instead of -march=athlon and got the same thing. Removing the -march completely seems to be working, although it's not finished building yet...
OK, it worked with no -march in CFLAGS. Very weird.
your CFLAGS are gcc-3.x related while for some reason prc-tools comes with gcc2.x which it tries to build ...
was a bug in the eclass ... fixed in cvs