Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73264 - gcc-config 1.3.7-r3 generates a bad (non fonctional) ENV file
Summary: gcc-config 1.3.7-r3 generates a bad (non fonctional) ENV file
Status: RESOLVED DUPLICATE of bug 68799
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-03 14:08 UTC by Stephane Loeuillet
Modified: 2005-07-17 13:06 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 Stephane Loeuillet 2004-12-03 14:08:47 UTC
i have both gcc 3.3.5 and 3.4.3. i just emerged gcc-config 1.3.7-r3

doing gcc-config -l, i've got :
[1] i686-pc-linux-gnu-3.3.5
[2] i686-pc-linux-gnu-3.3.5-hardened
[3] i686-pc-linux-gnu-3.3.5-hardenednossp
[4] i686-pc-linux-gnu-3.4.3 *
[5] i686-pc-linux-gnu-3.4.3-hardened
[6] i686-pc-linux-gnu-3.4.3-hardenednossp

to choose 3.4.3 as my default, i do :
gcc-config i686-pc-linux-gnu-3.4.3
source  /etc/profile

then, i see i'm unable to compile anything because the file /etc/env.d/05gcc it just generated contains the following mix :

PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4.3"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info"
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/3.4.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5:/usr/lib/gcc/i686-pc-linux-gnu/3.4.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5:/usr/lib/gcc/i686-pc-linux-gnu/3.4.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5"
GCC_SPECS="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/hardenednossp.specs"

/etc/env.d/gcc/config contains :
CURRENT=i686-pc-linux-gnu-3.4.3

as you see, the env file contain both refenrences to 3.3.5 hardenednossp and 3.4.3


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Stephane Loeuillet 2004-12-03 14:36:42 UTC
because of that problem, trying to compile anything in C fails

gcc -v
Lecture des sp
Comment 2 Stephane Loeuillet 2004-12-03 14:36:42 UTC
because of that problem, trying to compile anything in C fails

gcc -v
Lecture des spécification à partir de /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Lecture des spécification à partir de /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/hardenednossp.specs
Configuré avec: /var/tmp/portage/gcc-3.4.3/work/gcc-3.4.3/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++
Modèle de thread: posix
version du pilote gcc 3.4.3  (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6) exécutant le version 3.3.5 de gcc
Comment 3 SpanKY gentoo-dev 2004-12-03 19:53:26 UTC

*** This bug has been marked as a duplicate of 68799 ***