Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198127 - gcc-3.3.6-r1 failed: "cc1: error: bad value (k8) for -march= switch", died with: "emake failed with bootstrap-lean"
Summary: gcc-3.3.6-r1 failed: "cc1: error: bad value (k8) for -march= switch", died wi...
Status: RESOLVED DUPLICATE of bug 183766
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 04:31 UTC by ifreecarve
Modified: 2007-11-05 07:10 UTC (History)
0 users

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


Attachments
build log (build.log,470.95 KB, text/plain)
2007-11-05 04:35 UTC, ifreecarve
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ifreecarve 2007-11-05 04:31:49 UTC
portage is trying to install gcc-3.3.6-r1:

[ebuild  NS   ] sys-devel/gcc-3.3.6-r1  USE="fortran gtk nls (-altivec) -bootstrap -boundschecking -build -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 0 kB 



i get this error:

cc1: error: bad value (k8) for -march= switch
cc1: error: bad value (k8) for -mcpu= switch
make[2]: *** [gengenrtl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
echo " NULL};" >> tmp-gtyp.h
echo "static const char *lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="cp f"; \
        for l in $gf; do \
        echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/move-if-change tmp-gtyp.h gtyp-gen.h 
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
 * 
 * ERROR: sys-devel/gcc-3.3.6-r1 failed.
 * Call stack:
 *          ebuild.sh, line 1695:  Called dyn_compile
 *          ebuild.sh, line 1033:  Called qa_call 'src_compile'
 *          ebuild.sh, line   44:  Called src_compile
 *          ebuild.sh, line 1377:  Called toolchain_src_compile
 *   toolchain.eclass, line   26:  Called gcc_src_compile
 *   toolchain.eclass, line 1546:  Called gcc_do_make
 *   toolchain.eclass, line 1420:  Called die
 * The specific snippet of code:
 *      emake \
 *              LDFLAGS="${LDFLAGS}" \
 *              STAGE1_CFLAGS="${STAGE1_CFLAGS}" \
 *              LIBPATH="${LIBPATH}" \
 *              BOOT_CFLAGS="${BOOT_CFLAGS}" \
 *              ${GCC_MAKE_TARGET} \
 *              || die "emake failed with ${GCC_MAKE_TARGET}"
 *  The die message:
 *   emake failed with bootstrap-lean
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-devel/gcc-3.3.6-r1/temp/build.log'.
 * 


# emerge --info
Portage 2.1.3.16 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Fri, 02 Nov 2007 00:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -mmmx -msse -msse2 -m3dnow -ftracer -funit-at-a-time -funswitch-loops -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O3 -pipe -mmmx -msse -msse2 -m3dnow -ftracer -funit-at-a-time -funswitch-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac aalib acl acpi alsa apache2 arts bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups curl curlwrappers dbus dga directfb divx4linux dri dts dvd dvdr dvdread emacs emacs-w3 emboss encode esd evo exif fam firefox flac fortran ftp gd gdbm gif glut gpm gstreamer gtk hal iconv imagemagick ipv6 isdnlog jpeg jpeg2k kerberos ldap lm_sensors mad matroska mbrola midi mikmod mmx mmxext mp3 mpeg mudflap mysql mysqli mythtv ncurses nls nptl nptlonly ocaml offensive ogg opengl openmp oss pam pcre pdf pear-db perl php png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session shorten spell spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode voodoo1 voodoo2 vorbis win32codecs x86 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


it says that k8 is a problem... but i got that arch setting from here:
http://gentoo-wiki.com/Safe_Cflags#Athlon_64_.28AMD.29

$ cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 4
model name      : AMD Athlon(tm) 64 Processor 3200+
stepping        : 10
cpu MHz         : 832.071
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow ts fid vid ttp
bogomips        : 1664.72
clflush size    : 64
Comment 1 ifreecarve 2007-11-05 04:35:38 UTC
Created attachment 135223 [details]
build log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-05 07:10:55 UTC
Do not use gcc-3.3

*** This bug has been marked as a duplicate of bug 183766 ***