Emerge log: ---------------------- Beginning configuration for bash-3.1-release for x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output... configure: error: C compiler cannot cr eate executables ---------------------- Problem was solved by following commands: cp /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.5 /etc/env.d/05gcc env-update && source /etc/profile
you forgot to post `emerge info` also, what does `gcc-config -l` show
get back to us
Portage 2.0.54 (default-linux/amd64/2005.0, gcc-3.4.2, glibc-2.3.5-r2, 2.6.10 x86_64) ================================================================= System uname: 2.6.10 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -w" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -w" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage" USE="amd64 3dnowex X apache2 avi berkdb bzip2 cjk cli crypt dri eds emacs emboss encode expat foomaticdb fortran gd gdbm gif graphviz gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog ithreads java jpeg junit libwww lzw lzw-tiff memlimit mhash mp3 mpeg mysql ncurses nls nptl nptlonly pam pcre pdflib perl png pppd python quicktime readline reflection sdl session spell spl ssl tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode xml2 xorg xpm zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
gcc-config -l [1] x86_64-pc-linux-gnu-3.4.2 * [2] x86_64-pc-linux-gnu-3.4.2-hardened [3] x86_64-pc-linux-gnu-3.4.2-hardenednossp [4] x86_64-pc-linux-gnu-3.4.5 [5] x86_64-pc-linux-gnu-3.4.5-hardened [6] x86_64-pc-linux-gnu-3.4.5-hardenednopie [7] x86_64-pc-linux-gnu-3.4.5-hardenednopiessp [8] x86_64-pc-linux-gnu-3.4.5-hardenednossp
what does `ls -ld /var/db/pkg/sys-devel/gcc*` show ?
I have used gcc-config to select gcc-3.4.5. So currently: gcc-config -l [1] x86_64-pc-linux-gnu-3.4.2 [2] x86_64-pc-linux-gnu-3.4.2-hardened [3] x86_64-pc-linux-gnu-3.4.2-hardenednossp [4] x86_64-pc-linux-gnu-3.4.5 * [5] x86_64-pc-linux-gnu-3.4.5-hardened [6] x86_64-pc-linux-gnu-3.4.5-hardenednopie [7] x86_64-pc-linux-gnu-3.4.5-hardenednopiessp [8] x86_64-pc-linux-gnu-3.4.5-hardenednossp AND ls -ld /var/db/pkg/sys-devel/gcc* drwxr-xr-x 2 root root 912 Oct 28 2004 /var/db/pkg/sys-devel/gcc-3.4.2-r2 drwxr-xr-x 2 root root 960 Apr 29 15:35 /var/db/pkg/sys-devel/gcc-3.4.5 drwxr-xr-x 2 root root 944 Apr 29 15:08 /var/db/pkg/sys-devel/gcc-config-1.3.13-r2