After recent upgrades I cannot compile some app. It turned out config.log contained: /usr/bin/i686-pc-linux-gnu-cc -v gcc-config error: /usr/bin/i686-pc-linux-gnu-cc wrapper: Unable to determine executable. CTARGET=i686-pc-linux-gnu exec=gcc /usr/bin/i686-pc-linux-gnu-cc -V gcc-config error: /usr/bin/i686-pc-linux-gnu-cc wrapper: Unable to determine executable. CTARGET=i686-pc-linux-gnu exec=gcc compare with: # i686-pc-linux-gnu-gcc -v Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/specs Configured with: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.6 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) # i686-pc-linux-gnu-cc -v gcc-config error: i686-pc-linux-gnu-cc wrapper: Unable to determine executable. CTARGET=i686-pc-linux-gnu exec=gcc # It seems the file is forgotten in place: # equery belongs i686-pc-linux-gnu-cc [ Searching for file(s) i686-pc-linux-gnu-cc in *... ] # ls -la /usr/bin/i686-pc-linux-gnu-cc -rwxr-xr-x 1 root root 15040 Jan 2 21:16 /usr/bin/i686-pc-linux-gnu-cc # ls -la /usr/bin/i686-pc-linux-gnu-gcc -rwxr-xr-x 1 root root 8752 Apr 26 14:24 /usr/bin/i686-pc-linux-gnu-gcc # file /usr/bin/i686-pc-linux-gnu-cc /usr/bin/i686-pc-linux-gnu-cc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, stripped # ldd /usr/bin/i686-pc-linux-gnu-cc linux-gate.so.1 => (0xffffe000) libc.so.6 => /lib/libc.so.6 (0xb7e40000) /lib/ld-linux.so.2 (0xb7f78000) # ldd /usr/bin/i686-pc-linux-gnu-gcc linux-gate.so.1 => (0xffffe000) libc.so.6 => /lib/libc.so.6 (0xb7e59000) /lib/ld-linux.so.2 (0xb7f91000) # rm /usr/bin/i686-pc-linux-gnu-cc And things work fine again. ;) # emerge --info Portage 2.1_pre10-r2 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.17-rc2 i686) ================================================================= System uname: 2.6.17-rc2 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.12.0_pre18 dev-lang/python: 2.3.4-r1, 2.4.3 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/spool/PBS /var/bind /var/qmail/alias /var/qmail/control /var/spool/PBS /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 FFmpeg X Xaw3d a52 aac aalib acpi alsa amr apache2 apm arts ati avi berkdb bitmap-fonts bonobo caca cdparanoia cdr cli cpudetection crypt cscope ctype cups dba dga directfb divx divx5 divx5linux dri dts dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo f77 faad faad2 fam fame fbcon ffmpeg flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc iconv ieee1394 ifc imagemagick imlib imlib2 inifile innodb isdnlog ithreads java jpeg kerberos lcms leim libcaca libg++ libwww lirc live lzo mad matroska mcal mesa mhash mikmod ming mmx mmx2 mmxext motif mozilla mp3 mpeg mule musepack mysql ncurses network nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pda pdflib perl plotutils plugin png ppds pppd pthread pthreads python qt qtx quicktime readline reflection rtc samba scanner scp sdl server session slp spell spl sse sse2 ssl stroke tcltk tcpd tetex theora thread threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32 win32codecs winvidix wmf x264 xanim xml xml2 xmms xorg xosd xprint xv xvid xvmc zeo zlib elibc_glibc kernel_linux userland_GNU video_cards_ati" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
are you using eselect-compiler ? gcc-config has never generated $CTARGET-cc afaik
I have been using it, yes, I think because of mysql used to require that: 1136202013: >>> emerge (5 of 22) app-admin/eselect-compiler-2.0.0_rc1-r1 to / 1136202013: === (5 of 22) Cleaning (app-admin/eselect-compiler-2.0.0_rc1-r1::/usr/portage/app-admin/eselect-compiler/eselect-compiler-2.0 .0_rc1-r1.ebuild) 1136202013: === (5 of 22) Compiling/Merging (app-admin/eselect-compiler-2.0.0_rc1-r1::/usr/portage/app-admin/eselect-compiler/eselect-com piler-2.0.0_rc1-r1.ebuild) 1136202028: === (5 of 22) Post-Build Cleaning (app-admin/eselect-compiler-2.0.0_rc1-r1::/usr/portage/app-admin/eselect-compiler/eselect-c ompiler-2.0.0_rc1-r1.ebuild) 1136202028: >>> AUTOCLEAN: app-admin/eselect-compiler 1136202028: --- AUTOCLEAN: Nothing unmerged. 1136202028: ::: completed emerge (5 of 22) app-admin/eselect-compiler-2.0.0_rc1-r1 to / 1136202028: >>> emerge (6 of 22) sys-devel/gcc-3.4.5 to / 1136202028: === (6 of 22) Cleaning (sys-devel/gcc-3.4.5::/usr/portage/sys-devel/gcc/gcc-3.4.5.ebuild) 1136202029: === (6 of 22) Compiling/Merging (sys-devel/gcc-3.4.5::/usr/portage/sys-devel/gcc/gcc-3.4.5.ebuild) 1136204147: === (6 of 22) Post-Build Cleaning (sys-devel/gcc-3.4.5::/usr/portage/sys-devel/gcc/gcc-3.4.5.ebuild) 1136204175: >>> AUTOCLEAN: sys-devel/gcc 1136204181: === Unmerging... (sys-devel/gcc-3.4.4-r1) 1136204195: >>> unmerge success: sys-devel/gcc-3.4.4-r1 1136204195: ::: completed emerge (6 of 22) sys-devel/gcc-3.4.5 to / 1136204195: >>> emerge (7 of 22) sys-apps/module-init-tools-3.2.2 to / 1136204195: === (7 of 22) Cleaning (sys-apps/module-init-tools-3.2.2::/usr/portage/sys-apps/module-init-tools/module-init-tools-3.2.2.ebu ild) 1136204196: === (7 of 22) Compiling/Merging (sys-apps/module-init-tools-3.2.2::/usr/portage/sys-apps/module-init-tools/module-init-tools- 3.2.2.ebuild) 1136204203: *** terminating. 1136230630: Started emerge on: Jan 02, 2006 20:37:10 1136230630: *** emerge info 1136230631: *** terminating. 1136230651: Started emerge on: Jan 02, 2006 20:37:31 1141250935: Started emerge on: Mar 01, 2006 23:08:55 1141250935: *** emerge unmerge eselect-compiler 1141250940: === Unmerging... (app-admin/eselect-compiler-2.0.0_rc1-r1) 1141250954: >>> unmerge success: app-admin/eselect-compiler-2.0.0_rc1-r1 1141250975: *** exiting successfully. 1141250983: *** terminating.
do 'eselect compiler list'
# eselect compiler list !!! Error: Can't load module compiler exiting. # # eselect list-modules Built-in modules: help Display a help message list-modules Find and display available modules usage Display a usage message version Display version information Extra modules: bashcomp Manage contributed bash-completion scripts binutils Manage installed versions of sys-devel/binutils blas Manage installed BLAS implementations env Manage environment variables set in /etc/env.d/ kernel Manage the /usr/src/linux symlink lapack Manage installed LAPACK implementations mailer Manage the mailwrapper profiles in /etc/mail opengl Manage the OpenGL implementation used by your system profile Manage the /etc/make.profile symlink rc Manage /etc/init.d scripts in runlevels # eselect profile list Available profile symlink targets: [1] default-linux/x86/2006.0 [2] default-linux/x86/no-nptl [3] default-linux/x86/no-nptl/2.4 [4] default-linux/x86/dev/2006.1/desktop # eselect env version Version 20060414 # eselect binutils version Version 20060414 vrapenec ~ # eselect binutils list Installed binutils for target i686-pc-linux-gnu [1] 2.16.1 * # emerge -s eselect Searching... [ Results for search key : eselect ] [ Applications found : 7 ] * app-admin/eselect Latest version available: 1.0.2 Latest version installed: 1.0.2 Size of files: 143 kB Homepage: http://www.gentoo.org/proj/en/eselect/ Description: Modular -config replacement utility License: GPL-2 * app-admin/eselect-compiler [ Masked ] Latest version available: 2.0.0_rc1-r1 Latest version installed: [ Not Installed ] Size of files: 114 kB Homepage: http://www.gentoo.org/ Description: Utility to configure the active toolchain compiler License: GPL-2 * app-admin/eselect-gnat Latest version available: 0.6 Latest version installed: [ Not Installed ] Size of files: 0 kB Homepage: http://www.gentoo.org Description: gnat module for eselect. License: GPL-2 * app-admin/eselect-mysql Latest version available: 1.1.0 Latest version installed: [ Not Installed ] Size of files: 0 kB Homepage: http://www.gentoo.org/ Description: Utility to change the default MySQL server being used License: GPL-2 * app-admin/eselect-opengl Latest version available: 1.0.3 Latest version installed: 1.0.3 Size of files: 41 kB Homepage: http://www.gentoo.org/ Description: Utility to change the OpenGL interface being used License: GPL-2 * app-admin/eselect-oracle Latest version available: 1.0-r260 Latest version installed: [ Not Installed ] Size of files: 1 kB Homepage: http://www.gentoo.org/ Description: Utility to change the Oracle SQL*Plus Instantclient being used License: GPL-2
Martin, you don't even have eselect-compiler installed...
Yes, I know, see comment #2. I did unmerge that. The question is why wasn't the file uninstalled? If there wouldn't be the mess with slotted mysql ... ;-)
1) because it's installed and managed by eselect-compiler, not portage. 2) mysql never required eselect-compiler
Ok, but still, app-admin/eselect-compiler-2.0.0_rc1-r1 when was unistalled on Mar 01 should have deleted the file. I know, it is a masked package, at least now.
well, like you said, it's package.maskd becasue it's not ready to deploy. Don't expect it to be flawless if you don't use it in its intended manner. I'm hoping to have it ready this summer, but I haven't been as available to Gentoo lately.