I wonder what I broke this time, in any case compiling gcc isn't an option anymore. zwartepiet skinkie # gcc-config 1 * Switching native-compiler to x86_64-pc-linux-gnu-3.4.6 ... /bin/rm: cannot remove `//lib/cpp': Not a directory /bin/cp: accessing `//lib/cpp': Not a directory mkdir: `//lib/../lib64/.gcc.config.new': Not a directory mkdir: `//lib/../lib32/.gcc.config.new': Not a directory [ ok ] zwartepiet skinkie # gcc-config 6 * Switching native-compiler to x86_64-pc-linux-gnu-4.1.1 ... /bin/rm: cannot remove `//lib/cpp': Not a directory /bin/cp: accessing `//lib/cpp': Not a directory mkdir: `//lib/../lib64/.gcc.config.new': Not a directory mkdir: `//lib/../lib32/.gcc.config.new': Not a directory >>> Regenerating /etc/ld.so.cache... checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/gcc-3.4.6-r2/work/build/gcc/xgcc -B/var/tmp/portage/gcc-3.4.6-r2/work/build/gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.6-r2/work/build' make: *** [profiledbootstrap] Error 2 Portage 2.1.1_pre5-r2 (default-linux/amd64/2005.1, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo x86_64) ================================================================= System uname: 2.6.17-gentoo x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.1 Last Sync: Sun, 20 Aug 2006 14:20:02 +0000 ccache version 2.4 [disabled] app-admin/eselect-compiler: 2.0.0_rc1-r6 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17 ACCEPT_KEYWORDS="amd64 ~amd64 ~x86" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/share/X11/xkb /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo " LINGUAS="" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/livesupport /usr/local/overlays/ebuildexchange /usr/local/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="amd64 X alsa aotuv apache2 avi bitmap-fonts bz2 bzip2 cairo cgi cli crypt cups dba dlloader dri dv eds elibc_glibc emboss encode esd flac font-server foomaticdb force-cgi-redirect fortran gd gif gstreamer gtk2 imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux lcms libsamplerate lzw lzw-tiff mad mp3 mpeg mysql ncurses nls nptl nptlonly ogg opengl pam pcre pdflib pear perl pic png posix postgres pppd python qt3 qt4 quicktime readline reflection rtc session sndfile sox spell spl sqlite ssl svg tcpd theora tidy tiff truetype truetype-fonts type1-fonts usb userland_GNU userlocales v4l v4l2 video_cards_at3d video_cards_vesa video_cards_voodoo vorbis xml2 xorg xpm xprint xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
I'd suggest that you unmerge eselect-compiler and downgrade your gcc-config to 1.3.13-r3.
Stefan, you have conflicting versions of eselect-compiler and gcc-config, which will cause all sorts of trouble. Regarding the current problem you have of compiling with C, please attach the file /var/tmp/portage/gcc-3.4.6-r2/work/build/config.log. If you have both /etc/conf.d/05gcc and /etc/conf.d/05compiler, do: # rm /etc/conf.d/05gcc # env-update && source /etc/profile # eselect compiler list ... # eselect compiler set 1 and see if your compiler works again. If it does, you can deal with the conflicting versions of eselect-compiler & gcc-config, by either: 1) upgrade gcc-config to gcc-config-2.0.0_rc1 (which you'll need to unmask, along with eselect-compiler - see bug #143697) or 2) remove eselect-compiler (emerge -C app-admin/eselect-compiler), then re-emerge gcc-config (emerge --oneshot sys-devel/gcc-config) If you go for (1), you won't need to do anything else. If you go for (2), it'll create /etc/conf.d/05gcc again. This time if you still have /etc/conf.d/05compiler you'll need to remove it and do: # env-update && source /etc/profile # gcc-config -l # gcc-config 1 and that should clean the environment up.
I believe path should be /etc/env.d rather than /etc/conf.d
(In reply to comment #3) > I believe path should be > > /etc/env.d rather than /etc/conf.d Ahem - yes :) Sorry for any confusion.
This insident wasn't caused by gcc/gcc-config. When I tried to restart apache it looked like every shell script was missing. I did ls -l on / 'lib' was just a file not a symlink anymore. I'm pretty use that I didn't unlink it to /lib64... So I tried to merge gcc after fixing /lib -> /lib64 ...yes it worked.