>>> emerge (1 of 25) sys-apps/gawk-3.1.3-r2 to / >>> md5 src_uri ;-) gawk-3.1.3.tar.gz >>> Unpacking source... >>> Unpacking gawk-3.1.3.tar.gz to /var/tmp/portage/gawk-3.1.3-r2/work * Applying 64bitnumfile.patch ... [ ok ] >>> Source unpacked. * econf: updating /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/config.guess with /usr/share/gnuconfig/config.guess * econf: updating /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --bindir=/bin --enable-nls configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking for egrep... grep -E checking for bison... bison -y checking whether ln -s works... yes checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables See `config.log' for more details. !!! ERROR: sys-apps/gawk-3.1.3-r2 failed. !!! Function econf, Line 447, Exitcode 77 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: emerge --update --deep --newuse world Actual Results: emerge stops Expected Results: emerge gawk-3.1.3-r2 succesfully emerge info: Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz Gentoo Base System version 1.6.4 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 11 2004, 17:26:55)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.4.22 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -pipe -O2 -mcpu=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -pipe -O2 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr http://gentoo.tiscali.nl/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 apm bash-completion berkdb bitmap-fonts crypt cups encode f77 foomaticdb fortran gdbm gif gpm hardened imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python readline sdl slang spell ssl svga tcpd truetype unicode x86 xml2 xmms xv zlib"
post the config.log file from the build dir and re-open please
Below is the output from /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/config.log: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU Awk configure 3.1.3, which was generated by GNU Autoconf 2.57. Invocation command line was $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --bindir=/bin --enable-nls ## --------- ## ## Platform. ## ## --------- ## hostname = miranda uname -m = i686 uname -r = 2.6.9-gentoo-r1 uname -s = Linux uname -v = #4 SMP Mon Nov 29 21:59:55 CET 2004 /usr/bin/uname -p = Intel(R) Pentium(R) 4 CPU 2.53GHz /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /sbin PATH: /usr/sbin PATH: /usr/lib/portage/bin PATH: /bin PATH: /usr/bin PATH: /opt/bin PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.4 ## ----------- ## ## Core tests. ## ## ----------- ## configure:1356: checking for a BSD-compatible install configure:1410: result: ./install-sh -c configure:1421: checking whether build environment is sane configure:1464: result: yes configure:1497: checking for gawk configure:1513: found /bin/gawk configure:1523: result: gawk configure:1533: checking whether make sets $(MAKE) configure:1553: result: yes configure:1632: checking for i686-pc-linux-gnu-strip configure:1661: result: no configure:1670: checking for strip configure:1686: found /usr/bin/strip configure:1697: result: strip configure:1772: checking for egrep configure:1782: result: grep -E configure:1791: checking for bison configure:1807: found /usr/bin/bison configure:1817: result: bison -y configure:1828: checking whether ln -s works configure:1832: result: yes configure:1847: checking for i686-pc-linux-gnu-gcc configure:1873: result: gcc configure:2155: checking for C compiler version configure:2158: gcc --version </dev/null >&5 /usr/bin/gcc-config: line 500: /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2: No such file or directory * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 doesnt exist gcc-config error: Could not run/locate "gcc" configure:2161: $? = 1 configure:2163: gcc -v </dev/null >&5 /usr/bin/gcc-config: line 500: /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2: No such file or directory * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 doesnt exist gcc-config error: Could not run/locate "gcc" configure:2166: $? = 1 configure:2168: gcc -V </dev/null >&5 /usr/bin/gcc-config: line 500: /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2: No such file or directory * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 doesnt exist gcc-config error: Could not run/locate "gcc" configure:2171: $? = 1 configure:2195: checking for C compiler default output configure:2198: gcc -march=pentium4 -pipe -O2 -mcpu=i686 -fomit-frame-pointer conftest.c >&5 /usr/bin/gcc-config: line 500: /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2: No such file or directory * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 /etc/env.d/gcc/i686-pc-linux-gnu-3.4.2 doesnt exist gcc-config error: Could not run/locate "gcc" configure:2201: $? = 1 configure: failed program was: | #line 2174 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "GNU Awk" | #define PACKAGE_TARNAME "gawk" | #define PACKAGE_VERSION "3.1.3" | #define PACKAGE_STRING "GNU Awk 3.1.3" | #define PACKAGE_BUGREPORT "bug-gawk@gnu.org" | #define PACKAGE "gawk" | #define VERSION "3.1.3" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2240: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set=set ac_cv_env_CC_value=gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-march=pentium4 -pipe -O2 -mcpu=i686 -fomit-frame-pointer' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i686-pc-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_prog_AWK=gawk ac_cv_prog_CC=gcc ac_cv_prog_YACC='bison -y' ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_egrep='grep -E' ac_cv_prog_make_make_set=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/missing --run aclocal-1.7' ALLOCA='' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='${SHELL} /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/missing --run tar' ANSI2KNR='' AUTOCONF='${SHELL} /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/missing --run autoconf' AUTOHEADER='${SHELL} /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/missing --run autoheader' AUTOMAKE='${SHELL} /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/missing --run automake-1.7' AWK='gawk' BUILD_INCLUDED_LIBINTL='' CATOBJEXT='' CC='gcc' CCDEPMODE='' CFLAGS='-march=pentium4 -pipe -O2 -mcpu=i686 -fomit-frame-pointer' CPP='' CPPFLAGS='' CYGPATH_W='echo' DATADIRNAME='' DEFS='' DEPDIR='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='grep -E' EXEEXT='' GENCAT='' GLIBC21='' GMSGFMT='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' INSTOBJEXT='' INTLBISON='' INTLLIBS='' INTLOBJS='' INTL_LIBTOOL_SUFFIX_PREFIX='' LDFLAGS='' LIBICONV='' LIBINTL='' LIBOBJS='' LIBS='' LN_S='ln -s' LTLIBICONV='' LTLIBINTL='' LTLIBOBJS='' MAKEINFO='${SHELL} /var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/missing --run makeinfo' MKINSTALLDIRS='' MSGFMT='' MSGMERGE='' OBJEXT='' PACKAGE='gawk' PACKAGE_BUGREPORT='bug-gawk@gnu.org' PACKAGE_NAME='GNU Awk' PACKAGE_STRING='GNU Awk 3.1.3' PACKAGE_TARNAME='gawk' PACKAGE_VERSION='3.1.3' PATH_SEPARATOR=':' POSUB='' RANLIB='' SET_MAKE='' SHELL='/bin/sh' SOCKET_LIBS='' STRIP='strip' U='' USE_INCLUDED_LIBINTL='' USE_NLS='' VERSION='3.1.3' XGETTEXT='' YACC='bison -y' ac_ct_CC='' ac_ct_RANLIB='' ac_ct_STRIP='strip' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='' am__leading_dot='.' am__quote='' bindir='/bin' build='' build_alias='' build_cpu='' build_os='' build_vendor='' datadir='/usr/share' exec_prefix='NONE' host='i686-pc-linux-gnu' host_alias='i686-pc-linux-gnu' host_cpu='' host_os='' host_vendor='' includedir='${prefix}/include' infodir='/usr/share/info' install_sh='/var/tmp/portage/gawk-3.1.3-r2/work/gawk-3.1.3/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='/var/lib' mandir='/usr/share/man' oldincludedir='/usr/include' prefix='/usr' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE "gawk" #define PACKAGE_BUGREPORT "bug-gawk@gnu.org" #define PACKAGE_NAME "GNU Awk" #define PACKAGE_STRING "GNU Awk 3.1.3" #define PACKAGE_TARNAME "gawk" #define PACKAGE_VERSION "3.1.3" #define VERSION "3.1.3" configure: exit 77
re-run gcc-config
Thanks. $ gcc-config i386-pc-linux-gnu-3.3.3 worked for me.