* gcc-core-3.4.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: dev-lang/gpc-20070904 * REPO: gentoo * USE: amd64 elibc_glibc kernel_linux multilib nls userland_GNU >>> Unpacking source... >>> Unpacking gpc-20070904.tar.bz2 to /var/tmp/portage/dev-lang/gpc-20070904/work >>> Unpacking gcc-core-3.4.5.tar.bz2 to /var/tmp/portage/dev-lang/gpc-20070904/work >>> Source unpacked in /var/tmp/portage/dev-lang/gpc-20070904/work >>> Compiling source in /var/tmp/portage/dev-lang/gpc-20070904/work/gcc-3.4.5 ... * Configuring GCC for GPC build... creating cache ./config.cache checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking build system type... x86_64-pc-linux-gnu checking for a BSD compatible install... /usr/bin/install -c *** *** Detected GCC version 3.4.5. *** This version of GPC requires a patch to GCC to build with *** GCC version 3.4.5. *** This patch will now be applied. *** Press ENTER to continue, Ctrl-C to abort. *** cc1: error: missing argument to "-march=" *** The command 'x86_64-pc-linux-gnu-gcc -o conftest -march= -O2 -Wl,-O1 conftest.c' failed. *** You must set the environment variable CC to a working compiler. * ERROR: dev-lang/gpc-20070904 failed: * configure failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2933: Called die * The specific snippet of code: * "${S}"/configure --prefix=${PREFIX} --libdir="${LIBPATH}" --libexecdir="${LIBEXECPATH}" --datadir=${DATAPATH} --mandir=${DATAPATH}/man --infodir=${DATAPATH}/info --program-prefix="" --enable-shared --host=${CHOST} --target=${CTARGET} --enable-languages="c,pascal" --enable-threads=posix --enable-long-long --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-local-prefix=${PREFIX}/local ${myconf} || die "configure failed"; * * If you need support, post the output of 'emerge --info =dev-lang/gpc-20070904', * the complete build log and the output of 'emerge -pqv =dev-lang/gpc-20070904'. * The complete build log is located at '/var/tmp/portage/dev-lang/gpc-20070904/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gpc-20070904/temp/environment'. * S: '/var/tmp/portage/dev-lang/gpc-20070904/work/gcc-3.4.5' >>> Failed to emerge dev-lang/gpc-20070904, Log file: >>> '/var/tmp/portage/dev-lang/gpc-20070904/temp/build.log' * Messages for package dev-lang/gpc-20070904: * ERROR: dev-lang/gpc-20070904 failed: * configure failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 2933: Called die * The specific snippet of code: * "${S}"/configure --prefix=${PREFIX} --libdir="${LIBPATH}" --libexecdir="${LIBEXECPATH}" --datadir=${DATAPATH} --mandir=${DATAPATH}/man --infodir=${DATAPATH}/info --program-prefix="" --enable-shared --host=${CHOST} --target=${CTARGET} --enable-languages="c,pascal" --enable-threads=posix --enable-long-long --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-local-prefix=${PREFIX}/local ${myconf} || die "configure failed"; * * If you need support, post the output of 'emerge --info =dev-lang/gpc-20070904', * the complete build log and the output of 'emerge -pqv =dev-lang/gpc-20070904'. * The complete build log is located at '/var/tmp/portage/dev-lang/gpc-20070904/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/gpc-20070904/temp/environment'. * S: '/var/tmp/portage/dev-lang/gpc-20070904/work/gcc-3.4.5' Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.32-gentoo-r1-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_5050e-with-gentoo-1.12.13 Timestamp of tree: Wed, 03 Feb 2010 20:00:05 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r2 dev-lang/python: 2.5.4-r3, 2.6.4 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.1.2, 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.intergenia.de/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="16bit 3dnow 3dnowext X a52 aac aalib acl acpi aiglx alsa amd64 amr asf authfile berkdb browserplugin bzip2 bzlib cdb cdio cdparanoia cdr cli cracklib crypt css cups curl cxx directfb divx4linux dri dts dv dvd dvdr dvdread dvdrw encode ethereal extrafilters fb fbcon ffmpeg flac fortran gdbm gif gpm gtk gtk2 iconv icq imagemagick imlib ipv6 java jikes jpeg lame lzo mad mjpeg mmx mmxext modules motif mp3 mtrr mudflap multilib musepack ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis on-the-fly-crypt opengl openmp pam pcre perl png ppds pppd print python qt3support quicktime readline reflection samba session sftp snmp sockets socks5 spl sse sse2 sse3 ssl sysfs tcpd theora threads tiff truetype unicode usb userlocales vcd vorbis wavpack x264 xine xorg xprint xvid xvmc 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 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY BTW: dev-lang/gpc-20051104 compiles fine
From the ebuild: replace-cpu-flags "native" "" That's clearly wrong, but I'm not sure what would be right.
The right thing is to simply drop that line, the flag won't be used where it's not supported anyway. Fixed, thanks.
Maybe it didn't work with previous versions of gcc if compiled with "native"; I didn't have time to investigate this, thanks for the fix. :)