1 |
On 9 Oct, ds wrote: |
2 |
> On 10/9/07, Helmut Jarausch <jarausch@××××××××××××××××.de> wrote: |
3 |
> |
4 |
>> Thanks, |
5 |
>> but what value of CHOST should I take? |
6 |
>> I currently have |
7 |
>> CHOST="i686-pc-linux-gnu" |
8 |
>> and gcc-4.1.2 is the standard C-compiler. |
9 |
>> Now, I'd like to switch to gcc-4.2.1. |
10 |
> |
11 |
> There is an official guide to upgrading gcc |
12 |
> http://www.gentoo.org/doc/e <http://www.gentoo.org/doc/en/gcc-upgrading.xml> |
13 |
> n/gcc-upgrading.xml <http://www.gentoo.org/doc/en/gcc-upgrading.xml> |
14 |
|
15 |
which I have followed. |
16 |
> |
17 |
> Since you are already at version 4 it looks like you'll need to do the |
18 |
> following: |
19 |
> |
20 |
> # emerge -uav gcc |
21 |
> |
22 |
> (Please substitute "i686-pc-linux-gnu-4.1.1" with the GCC |
23 |
> version and CHOST settings you've upgraded to:) |
24 |
> # gcc-config i686-pc-linux-gnu-4.1.1 |
25 |
> # env-update && source /etc/profile |
26 |
> |
27 |
> (Rebuilding libtool) |
28 |
> # emerge --oneshot -av libtool |
29 |
|
30 |
This does not suffice here. |
31 |
e.g. in /etc/profile.env the environment variable PATH begins with |
32 |
export PATH='/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1: |
33 |
this doesn't exist anymore =====^^^^^ |
34 |
/usr/i686-pc-linux-gnu/gcc-bin/4.1.2 |
35 |
this hides version 4.2.1 ======^^^^^ |
36 |
/usr/i686-pc-linux-gnu/gcc-bin/4.2.1: |
37 |
|
38 |
What part of portage generates /etc/profile.env |
39 |
|
40 |
> |
41 |
> The authors of the guide also recommend |
42 |
> |
43 |
> # emerge -eav system |
44 |
> # emerge -eav world |
45 |
|
46 |
Is that really necessary within the gcc-4.x family ? |
47 |
|
48 |
> |
49 |
> It must be the env-update && source /etc/profile that keeps your new |
50 |
> settings |
51 |
|
52 |
Many thanks, |
53 |
Helmut. |
54 |
|
55 |
-- |
56 |
Helmut Jarausch |
57 |
|
58 |
Lehrstuhl fuer Numerische Mathematik |
59 |
RWTH - Aachen University |
60 |
D 52056 Aachen, Germany |
61 |
-- |
62 |
gentoo-user@g.o mailing list |