gcc-config options that dont need the version as well dont work, instead giving the help. This bug may be related to #13534 . tundra portage # gcc-config --list-profiles Usage: gcc-config [Option] <CHOST>-<gcc version> Options: [--use-old] Use the old profile if one was selected. [--use-portage-chost] Only set to given profile if its CHOST is the same as that set for portage in /etc/make.conf (or one of other portage config files...). [--get-current-profile] Print current used gcc profile. [--list-profiles] Print a list of available profiles. [--print-environ] Print environment that can be used to setup things for current gcc profile, or specified one ... [--get-bin-path] Print path where binaries of given/current profile are located. [--get-lib-path] Print path where libraries of given/current profile are located. [--get-stdcxx-incdir] Print path to g++ include files of given/current profile.
Fixing #13534 made no difference to this bug.
Please 'emerge rsync' and remerge it, then try again. Also include: # emerge info # find /etc/env.d |grep gcc
tundra portage # emerge gcc-config Calculating dependencies ...done! >>> emerge (1 of 1) sys-devel/gcc-config-1.2.7 to / >>> Unpacking source... >>> Source unpacked. >>> Install gcc-config-1.2.7 into /var/tmp/portage/gcc-config-1.2.7/image/ category sys-devel strip: >>> Completed installing into /var/tmp/portage/gcc-config-1.2.7/image/ >>> Merging sys-devel/gcc-config-1.2.7 to / --- /usr/ --- /usr/sbin/ >>> /usr/sbin/gcc-config >>> Safely unmerging already-installed instance... --- !mtime obj /usr/sbin/gcc-config --- !empty dir /usr/sbin --- !empty dir /usr >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... >>> sys-devel/gcc-config-1.2.7 merged. >>> Recording sys-devel/gcc-config in "world" favorites file... sys-devel/gcc-config selected: none protected: 1.2.7 omitted: none >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. tundra portage # gcc-config --list-available-packages Usage: gcc-config [Option] [GCC Profile] Change the current gcc profile, or give info about profiles. Options: --use-old Use the old profile if one was selected. --use-portage-chost Only set to given profile if its CHOST is the same as that set for portage in /etc/make.conf (or one of other portage config files...). --get-current-profile Print current used gcc profile. --list-profiles Print a list of available profiles. --print-environ Print environment that can be used to setup things for current gcc profile, or specified one ... --get-bin-path Print path where binaries of given/current profile are located. --get-lib-path Print path where libraries of given/current profile are located. --get-stdcxx-incdir Print path to g++ include files of given/current profile. The profile name is in the form of: <CHOST>-<gcc version> For example: i686-pc-linux-gnu-3.2.1 tundra portage # emerge info Portage 2.0.46-r4 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7) ================================================================= System uname: 2.4.19 i686 Pentium III (Coppermine) USE="x86 -3dfx -3dnow -aalib -acl -afs -alsa apm arts -atlas avi berkdb -bonobo -canna cdr -cjk crypt -cups dga -directfb -doc dvd encode -esd -evo -fbcon flash -freewnn -gb gd gdbm -ggi -ggz gif -gnome -gphoto2 -gpm -gtk -gtk2 -gtkhtml guile -icc icc-pgo imap imlib innodb -ipv6 java jikes jpeg kde kerberos lcms -ldap libg++ -libgda libwww -matrox maildir mbox mikmod mmx -mozilla mpeg mule mysql -nas ncurses nls nocardbus -oci8 -odbc oggvorbis opengl -oss pam -pcmcia pda pdflib perl pic plotutils png -pnp postgres python qt qtmt quicktime readline ruby samba sasl -scanner sdl slang slp snmp socks5 spell sse ssl -static -svga -tcltk tcpd tetex tiff truetype -trusted -voodoo3 -wavelan wmf X -xface xml xml2 -xmms xv -zeo zlib -junit acpi -apache2 -gps -oav -alpha -ev6 motif" ARCH="x86" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="" ACCEPT_KEYWORDS="x86 ~x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/fonts /etc/X11 /etc/env.d" MAKEOPTS="-j2" JDK_HOME="/opt/ibm-jdk-1.3.1" JAVA_HOME="/opt/ibm-jdk-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" tundra portage # find /etc/env.d |grep gcc /etc/env.d/05gcc tundra portage # cat /etc/env.d/05gcc LDPATH=/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3 tundra portage # emerge -s gcc Searching... [ Results for search key : gcc ] [ Applications found : 5 ] * dev-util/colorgcc Latest version available: 1.3.2-r2 Latest version installed: [ Not Installed ] Size of downloaded files: 16 kB Homepage: http://packages.debian.org/testing/devel/colorgcc.html Description: Adds color to gcc output * sys-devel/gcc Latest version available: 2.95.3-r8 Latest version installed: 2.95.3-r7 Size of downloaded files: 12,609 kB Homepage: http://www.gnu.org/software/gcc/gcc.html Description: Modern C/C++ compiler written by the GNU people * sys-devel/gcc-compat Latest version available: 1.4 Latest version installed: [ Not Installed ] Size of downloaded files: [no/bad digest] Homepage: http://www.gentoo.org Description: This is a compatability layer for use when upgrading to profile 1.4 * sys-devel/gcc-config Latest version available: 1.2.7 Latest version installed: 1.2.7 Size of downloaded files: 0 kB Homepage: http://www.gentoo.org/ Description: Utility to change the gcc compiler being used.
I emerged gcc-r8 and got the following message... * Switching to i686-pc-linux-gnu-2.95.3 compiler... [ ok ] * Sanity check of /usr/bin/cpp failed, backing up to /usr/bin/cpp.orig * and replacing with wrapper script! If you have problems, replace it * with the original, or submit a bugreport. >>> Regenerating /etc/ld.so.cache... >>> sys-devel/gcc-2.95.3-r8 merged. And gcc-config now works. Perhaps I manually copied cpp or something.
Well, for starters you need to unmerge 2.95.3-r7. Else its anyhow not going to work ....