Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187456 - sys-devel/gcc-config-1.3.16 doesn't switch /usr/bin/i686-pc-linux-gnu-gcc
Summary: sys-devel/gcc-config-1.3.16 doesn't switch /usr/bin/i686-pc-linux-gnu-gcc
Status: RESOLVED DUPLICATE of bug 135688
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-02 04:02 UTC by John Herdy
Modified: 2007-08-02 04:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Herdy 2007-08-02 04:02:15 UTC
(see steps to reproduce)

Reproducible: Always

Steps to Reproduce:
- confirm with gcc-config your current version
- notice that md5sum of /usr/bin/i686-pc-linux-gnu-gcc and /usr/bin/i686-pc-linux-gnu-gcc-<current gcc version> are identical
- switch profile with gcc-config
- confirm with gcc-config your current version
- notice that md5sum of /usr/bin/i686-pc-linux-gnu-gcc and /usr/bin/i686-pc-linux-gnu-gcc-<current gcc version> are not identical
- notice that md5sum of /usr/bin/i686-pc-linux-gnu-gcc is identical to first installed version (most likely from the stage file that has been used for the installation)


Expected Results:  
md5sum of /usr/bin/i686-pc-linux-gnu-gcc and /usr/bin/i686-pc-linux-gnu-gcc-<current gcc version> are always identical


emerge --info
Portage 2.1.3_rc8 (default-linux/x86/2006.1, gcc-4.2.0, glibc-2.6-r0, 2.6.21-gentoo-r3 i686)
=================================================================
System uname: 2.6.21-gentoo-r3 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 01 Aug 2007 05:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--noconfmem"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.ISO-8859-1"
LC_ALL="en_US.ISO-8859-1"
LINGUAS="en"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/ftd4linux /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acpi alsa ares arts artswrappersuid asf bash-completion bzip2 cairo cddb cdinstall cjk connectionstatus crypt css cups dbus directfb disk-partition dri dts dvd dvdr dvdread encode exif fasttrack ffmpeg firefox flac foomaticdb fortran gif glitz gnutella gphoto2 gtk gtkhtml hal history hpn imagemagick imlib irc java jpeg kde kdeenablefinal kdehiddenvisibility lcms libnotify logitech-mouse mad midi mikmod mmx mono mp3 mp4 mpeg musicbrainz network-cron nfs nls nptl nptlonly nsplugin nxclient ogg openft opengl pdf png portaudio ppds python qt3 qt3support qt4 quicktime rdesktop readline real ruby samba speex spell sqlite sse ssl statistics svg sysfs themes theora threads tiff tk truetype unicode usb vcd vorbis win32codecs x264 x86 xcomposite xforms xft xine xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1  emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-02 04:04:07 UTC
Your system is messed up by eselect-compiler, delete /usr/bin/i686-pc-linux-gnu-gcc

*** This bug has been marked as a duplicate of bug 135688 ***
Comment 2 John Herdy 2007-08-02 04:16:17 UTC
(In reply to comment #1)
> Your system is messed up by eselect-compiler, delete
> /usr/bin/i686-pc-linux-gnu-gcc
> *** This bug has been marked as a duplicate of bug 135688 ***

after deleting /usr/bin/i686-pc-linux-gnu-gcc I cannot install anything anymore (including gcc), do you know how to fix this? TIA!!

checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-02 04:21:40 UTC
Just re-run gcc-config and set your gcc versions again.
Comment 4 John Herdy 2007-08-02 04:38:36 UTC
(In reply to comment #3)
> Just re-run gcc-config and set your gcc versions again.

Thanks Jakub, it's working again, however /usr/bin/i686-pc-linux-gnu-gcc and
/usr/bin/i686-pc-linux-gnu-gcc-<current gcc version> are not identical, is this the way it supposed to be?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-02 04:42:02 UTC
Yeah, that's not a problem, just run /usr/bin/i686-pc-linux-gnu-gcc --version and make sure it shows the currently selected one. If not, reopen. :)
Comment 6 John Herdy 2007-08-02 04:49:14 UTC
(In reply to comment #5)
> Yeah, that's not a problem, just run /usr/bin/i686-pc-linux-gnu-gcc --version
> and make sure it shows the currently selected one. If not, reopen. :)

Jakub, you are the best, it shows the correct version, case closed, thanks a lot for your time/support!