I'm getting pretty much the same error (C compiler cannot create executables).
I'm pretty sure it's because gcc-3.3.4 is installed. I've tried upgrading gcc
by emerging but get the same error (catch-22 situation).
Here's the last part of the error log which is the same with anything I try to
emerge.
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Updated main/php_version.h
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
*
* ERROR: dev-lang/php-5.2.5-r1 failed.
* Call stack:
* ebuild.sh, line 1654: Called dyn_compile
* ebuild.sh, line 990: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* php-5.2.5-r1.ebuild, line 185: Called src_compile_normal
* php-5.2.5-r1.ebuild, line 327: Called php5_2-sapi_src_compile
* php5_2-sapi.eclass, line 640: Called die
*
* configure failed
* If you need support, post the topmost build error, and the call stack if rele
vant.
* A complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.5-r1/te
mp/build.log'.
*
##gcc version##
glacier log # gcc-config -l
[1] i686-pc-linux-gnu-3.3.4 *
##make.conf##
glacier log # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ALSA_CARDS="ens1371"
USE="apache2"
USE="-qt -kde gtk gnome hal howl"
USE="net"
USE="oscar"
USE="tk"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/
http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ "
Any help would be greatly appreciated.