Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51245 - gcc-config adds duplicated entries in /etc/env.d/05gcc
Summary: gcc-config adds duplicated entries in /etc/env.d/05gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-16 22:13 UTC by Tuan Van (RETIRED)
Modified: 2004-05-24 10:47 UTC (History)
0 users

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


Attachments
bash -x gcc-config 2 > gcc-config.debug 3>&1 1>&2 2>&3 (gcc-config.debug,16.93 KB, text/plain)
2004-05-17 16:33 UTC, Tuan Van (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tuan Van (RETIRED) gentoo-dev 2004-05-16 22:13:59 UTC
Before run gcc-config

# cat /etc/env.d/05gcc | grep LDPATH
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.0:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3"

# gcc-config -l
[1] i686-pc-linux-gnu-3.3.3
[2] i686-pc-linux-gnu-3.4.0
# gcc-config 1
 * Switching to i686-pc-linux-gnu-3.3.3 compiler...                       [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

# cat /etc/env.d/05gcc | grep LDPATH
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.0:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-05-16 22:39:41 UTC
I should add:

gcc-config-1.3.5-r1

# emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.4.12
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
Comment 2 SpanKY gentoo-dev 2004-05-17 15:15:25 UTC
i'm unable to reproduce this with my gcc-config ... perhaps it's portage bug ?  i'm using portage-2.0.51_pre7 over here
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-05-17 16:33:56 UTC
Created attachment 31616 [details]
bash -x gcc-config 2 > gcc-config.debug 3>&1 1>&2 2>&3

OK. I tried on a similaer machine at work with portage-2.0.51_pre7. Attached is
the bash debug output (hope it helpful).

# gcc-config -l
[1] i686-pc-linux-gnu-3.3.2
[2] i686-pc-linux-gnu-3.3.3
[3] i686-pc-linux-gnu-3.4.0

# emerge info
Portage 2.0.51_pre7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.12
ccache version 2.3 [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
Comment 4 Tuan Van (RETIRED) gentoo-dev 2004-05-20 10:37:28 UTC
Update:
After I updated gcc to 3.4.0-r4, I don't have this problem anymore.
Comment 5 SpanKY gentoo-dev 2004-05-22 23:04:19 UTC
what does `grep LDPATH /etc/env.d/gcc/*` show ?
Comment 6 Tuan Van (RETIRED) gentoo-dev 2004-05-24 10:47:24 UTC
Since I can't reproduce this bug with the latest gcc-3.4.0-r4, I am closing it as FIXED. Thanks.

BTW
# grep LDPATH /etc/env.d/gcc/*                                      /etc/env.d/gcc/i686-pc-linux-gnu-3.3.2:LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2"
/etc/env.d/gcc/i686-pc-linux-gnu-3.3.3:LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3"
/etc/env.d/gcc/i686-pc-linux-gnu-3.4.0:LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.0"

Note that this output comes from different machine that I've reported initally. I don't have this problem both machine after update to gcc-3.4.0-r4.