# emerge =sys-devel/gcc-3.3* Compile errors: make CC=" stage1/xgcc -Bstage1/ -B/usr/x86_64-pc-linux-gnu/bin/" \ STAGE_PREFIX=stage1/ \ ADAC="\$(CC)" AR_FOR_TARGET="ar" RANLIB_FOR_TARGET="ranlib" CFLAGS="-m64 -march=k8 -O2 -pipe" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/lib LANGUAGES="c gcov c++ f77 java objc" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" make[2]: Entering directory `/var/tmp/portage/gcc-3.3.5.20050130/work/build/gcc' echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h stage1/xgcc -Bstage1/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -m64 -march=k8 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include \ /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/gengtype-lex.c -o gengtype-lex.o echo "static const char *srcdir = " >> tmp-gtyp.h echo "\"/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc\"" >> tmp-gtyp.h echo timestamp > clean_s1 echo ";" >> tmp-gtyp.h echo "static const char *lang_files[] = {" >> tmp-gtyp.h cc1: error: bad value (k8) for -march= switch cc1: error: bad value (k8) for -mcpu= switch stage1/xgcc -Bstage1/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -m64 -march=k8 -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/. -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/config -I/var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/../include \ /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/gengtype-yacc.c -o gengtype-yacc.o make[2]: *** [gengtype-lex.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [stuff snipped] for f in $ll; do \ echo "\"$f\", "; done >> tmp-gtyp.h cc1: error: bad value (k8) for -march= switch cc1: error: bad value (k8) for -mcpu= switch make[2]: *** Waiting for unfinished jobs.... echo "NULL};" >> tmp-gtyp.h make[2]: *** Waiting for unfinished jobs.... make[2]: *** [gengtype-yacc.o] Error 1 echo "static const char *langs_for_lang_files[] = {" >> tmp-gtyp.h ff="cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp f f f f f f java java java java java java java java java java java objc objc objc objc objc objc objc objc objc c c c c c c c c "; \ for f in $ff; do \ echo "\"$f\", " ; done >> tmp-gtyp.h echo "NULL};" >> tmp-gtyp.h echo "static const char *all_files[] = {" >> tmp-gtyp.h [more stuff snipped] for f in $gf; do \ echo "\"$f\", "; done >> tmp-gtyp.h echo " NULL};" >> tmp-gtyp.h echo "static const char *lang_dir_names[] = { \"c\", " >> tmp-gtyp.h gf="cp f java objc"; \ for l in $gf; do \ echo "\"$l\", "; done >> tmp-gtyp.h echo "NULL};" >> tmp-gtyp.h /bin/sh /var/tmp/portage/gcc-3.3.5.20050130/work/gcc-3.3.5/gcc/move-if-change tmp-gtyp.h gtyp-gen.h make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130/work/build/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5.20050130/work/build/gcc' make: *** [bootstrap-lean] Error 2 # emerge info Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.9-gentoo-r14 x86_64) ================================================================= System uname: 2.6.9-gentoo-r14 x86_64 AMD Opteron(tm) Processor 250 Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4,dev-lang/python-2.4-r2 [2.4 (#1, Feb 8 2005, 10:10:35)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.4, 2.4-r2 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.9.5, 1.6.3, 1.8.5-r3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r5 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.6.10 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/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/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks manifest sandbox sign" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa apache2 berkdb bitmap-fonts crypt cups curl doc dvd esd fam flac font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick imlib ipv6 jp2 jpeg kde libwww lzw lzw-tiff mad motif mp3 mysql ncurses nls oggvorbis opengl oss pam pda perl png python qt readline ruby ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales xml2 xmms xpm xprint xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
dont use gcc-3.3 on amd64 i'll finish marking the rest -amd64 when i get a chance *** This bug has been marked as a duplicate of 49204 ***
Actually, I don't think this bug is a dup, since the problem seems to be rather different. In this case the failure isn't a linking error, it's a complaint by gcc that "march=k8" is not allowed. It comes up as soon as gcc begins its stage-2 build, since until then it uses its own defaults instead of whatever is in CFLAGS. Looks like yanking "-march=k8" from my CFLAGS in /etc/make.conf seems to have solved the problem. At least, it's into stage-3 building.
true, fixed in cvs