Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405435 - sys-devel/gcc-3.4.6-r2 with gcc-4.5.3-r1 - work/gcc-3.4.6/gcc/gengtype-lex.c:1: error: bad value (core2) for -march= switch
Summary: sys-devel/gcc-3.4.6-r2 with gcc-4.5.3-r1 - work/gcc-3.4.6/gcc/gengtype-lex.c:...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 405675 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-23 13:49 UTC by Samuel Bauer
Modified: 2012-02-26 17:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,948.41 KB, text/plain)
2012-02-23 13:54 UTC, Samuel Bauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bauer 2012-02-23 13:49:56 UTC
Trying to build gcc:3.4 using gcc:4.5 fails

Reproducible: Always

Steps to Reproduce:
1.gcc-config -l x86_64-pc-linux-gnu-4.5.3; . /etc/profile
2.emerge gcc:3.4
Actual Results:  
Fails in emake


# emerge --info =sys-devel/gcc-3.4.6-r2
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2-nvidia x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.1-gentoo-r2-nvidia-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5250_@_1.50GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 22 Feb 2012 14:30:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/ccache:          3.1.6
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.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.3.4, 4.4.5, 4.5.3-r1
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 sunrise roslin desktop-effects funroll-loops gamerlay-stable x-various x-sam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
DISTDIR="/usr/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://91.121.124.139/gentoo-distfiles/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ http://mirror.bih.net.ba/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr fr_FR en en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/excludes"
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/gentoo/portage"
PORTDIR_OVERLAY="/usr/gentoo/overlay/sunrise /usr/gentoo/overlay/roslin /usr/gentoo/overlay/desktop-effects /usr/gentoo/overlay/funroll-loops /usr/gentoo/overlay/gamerlay /usr/gentoo/overlay/various /usr/gentoo/overlay/sam"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr apache2 audiofile audit bash-completion berkdb bidi branding bzip2 cairo caps cdda cddb cdr cli consolekit cracklib crypt cscope css cue cups curl cxx dbus dga dia directfb dri dts dvd dvdr dvdread emboss encode exif faac fam fbcon ffmpeg fftw firefox flac fortran fuse gallium gdbm gdu gif gimp glade gmp gnutls gphoto2 gpm gtk gtk2 hardened iconv icu id3 id3tag imlib introspection ipv6 jack joystick jpeg jpeg2k kerberos ladspa lcms ldap libkms libsamplerate lm_sensors lzo mad midi mikmod mmx mmxext mng modules mozilla mp3 mp4 mpeg mpi mudflap multilib ncurses nls nptl nptlonly ogg openal opencl openexr opengl openmp openvg oss pam pango pcap pch pcre pdf png pnm policykit ppds pppd qt3support readline romio rtc samba sasl sdl session slang smime smp sndfile sockets soundtouch spell sse sse2 sse3 ssl ssse3 startup-notification svg sysfs syslog tcpd tga theora threads tiff truetype twolame udev unicode urandom usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx wavpack wma wmf x264 xattr xcb xcomposite xdb xface xft xml xorg xpm xrandr xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" DRACUT_MODULES="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 joystick keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR en en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia fbdev vesa none v4l" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

# emerge -pqv =sys-devel/gcc-3.4.6-r2
[ebuild  NS   ] sys-devel/gcc-3.4.6-r2 [4.3.4, 4.4.5, 4.5.3-r1] USE="cxx doc fortran gtk (multilib) nls nptl (-altivec) -bootstrap -boundschecking -build -d -gcj (-hardened) -ip28 -ip32r10k (-libffi) -multislot (-n32) (-n64) -nocxx -objc -test -vanilla"
Comment 1 Samuel Bauer 2012-02-23 13:54:53 UTC
Created attachment 302975 [details]
build.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-23 15:15:33 UTC
Please adjust your CFLAGS - 3.4 does not know about -march=core2.
Comment 3 Samuel Bauer 2012-02-24 15:06:29 UTC
Ok, I didn't considered that gcc was bootstrapping, and thought that -march=core2 cflag was all right because I used gcc-4.5.3-r1.

Still have this problem: https://bugs.gentoo.org/show_bug.cgi?id=295480
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-26 17:18:03 UTC
*** Bug 405675 has been marked as a duplicate of this bug. ***