Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: coexisting GCC versions
Date: Mon, 29 Jun 2009 13:39:30
Message-Id: 200906291539.22318.wonko@wonkology.org
In Reply to: Re: [gentoo-user] Re: coexisting GCC versions by Roger Mason
1 Roger Mason writes:
2
3 > Alex Schuster <wonko@×××××××××.org> writes:
4
5 > > What is your $PATH? (echo $PATH)
6 > >
7 > > I have /usr/i486-pc-linux-gnu/gcc-bin/4.1.2 in there (just before
8 > > /usr/i686- pc-linux-gnu/gcc-bin/4.3.2), don't know where this comes
9 > > from. The directory usr/i486-pc-linux-gnu/gcc-bin does not exist, so it
10 > > does not matter.
11
12 Seems to be some leftover from the installation. I just deleted the
13 directory, and /etc/env.d/05gcc-i486-pc-linux-gnu.
14
15 > > Also have a look in /etc/env.d/*gcc*, do these settings look okay?
16 > > That's where gcc-config changes things. My 05gcc-i686-pc-linux-gnu has
17 > > the line PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.3.2" in it.
18 >
19 > garnet ~ $ echo $PATH
20 > /home/rmason/.nix-profile/bin:/usr/local/coda/bin:/usr/local/coda/sbin:/u
21 >sr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/
22 >usr/i686-pc-linux-gnu/gcc-bin/4.3.2:/opt/sun-jdk-1.4.2.17/bin:/opt/sun-jdk
23 >-1.4.2.17/jre/bin:/opt/sun-jdk-1.4.2.17/jre/javaws:/usr/qt/3/bin:/home/rma
24 >son/bin:/usr/local/axiom/mnt/linux/bin:/usr/local/apache-uima//bin:/usr/lo
25 >cal/tau/i386_linux/bin:/usr/local/pdt/i386_linux/bin
26 [...]
27 > garnet ~ $ cat /etc/env.d/05gcc-i686-pc-linux-gnu
28 [...]
29 > PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.3.2"
30
31 Looks good to me. Finally, what is the PATH in /etc/profile.env? According
32 to the order of your gcc paths, I guess it has /usr/i686-pc-linux-gnu/gcc-
33 bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.3.2 in it, while only the second
34 one should be there. Does "grep /usr/i686-pc-linux-gnu/gcc-bin/4.1.1
35 /ect/env.d/*" find something? Some obscure other file that env-update uses?
36
37 If not, I have no more ideas. I'd change /etc/profile.env by hand then, and
38 file a bug report.
39
40 Wonko

Replies

Subject Author
Re: [gentoo-user] Re: coexisting GCC versions [solved] Roger Mason <rmason@×××.ca>