sys-devel/gcc-3.4.6-r2 can not be compiled with a modern version of gcc in this case sys-devel/gcc-4.5.3-r2 when a modern -march/-mtune cflag/cxxflag such as core2 . The ebuild should see this and replace it with a generic -march/-mtune cflag/cxxflag . It is useful to have this version of gcc for compatibility with legacy binaries. Reproducible: Always Steps to Reproduce: 1. emerge -av gcc:3.4 with a -march=core2 cflag/cxxflag 2. 3. Actual Results: /var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/errors.c:1: error: bad value (core2) for -march= switch /var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/errors.c:1: error: bad value (core2) for -mtune= switch /var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/gengtype-lex.c:1: error: bad value (core2) for -march= switch /var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/gengtype-lex.c:1: error: bad value (core2) for -mtune= switch make[2]: *** [gengtype-lex.o] Error 1 Expected Results: Proper emerge Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2 x86_64) ================================================================= System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.3 Timestamp of tree: Fri, 24 Feb 2012 18:45:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.1.4-r3, 3.2.2 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 3.4.6-r2, 4.5.3-r2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo science ikelos ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* Intel-SDP" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.osuosl.org/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/ikelos" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="R X a52 aac acl acpi aim airplay alsa amd64 apbs aspell balbes berkdb bluetooth boost branding bzip2 cairo cdda cdr cg cli color colors consolekit corefonts coverart cpudetection cracklib crypt css cuda cvs cxx dbus declarative dhcpcd dht double-precision dri dts dvd dvdr ebook eclipse embedded emboss encode excel exif faac fam fat fbsplash ffmpeg fftw firefox flac fontconfig fortran ftp fuse gd gdbm gdu gif gimp git gnuplot gnutella gpg gpm graphicsmagick gromacs gtk gui gzip hpcups hpijs http httpd icc iconv ifc imagemagick ipod ipv6 java jpeg jpeg2k kde kipi konqueror lame lastfm lastfmradio lcms ldap libkms libmpeg2 libnotify lzma mad matroska md5 md5sum mdadm mediaplayer memcache mjpeg mkl mmx mng modules mono motif mp3 mp4 mpeg mplayer mudflap multilib music musicbrainz ncurses net nfs nfsv4 nls nptl nptlonly nsplugin ntfs ntfsprogs ntp ntpd numpy nvidia ocaml octave ogg okular opencl opengl openmp openssl pam pango pcre pdf perl pgo phonon php plasma player plugins png policykit ppds pppd python qt3support qt4 rar raw readline samba science sdl semantic-desktop session sftp shaders smbclient smp solver sound speech speex spell sqlite sse sse2 sse3 ssh ssl ssse3 startup-notification stereo subversion sudo svg sysfs tcpd thumbnail thumbnails tiff timidity tk tools truetype tsmuxer udev unicode unzip upnp usb utils utp vcd vdpau video videos vim vim-syntax vlc vmd vnc vorbis vpx web webkit win32 x264 xcb xcomposite xinerama xml xorg xosd xscreensaver xulrunner xv xvfb xvid yahoo youtube zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of bug 405435 ***