On  9 Oct, ds wrote:
> On 10/9/07, Helmut Jarausch <[EMAIL PROTECTED]> wrote:
> 
>> Thanks,
>> but what value of CHOST should I take?
>> I currently have
>> CHOST="i686-pc-linux-gnu"
>> and gcc-4.1.2 is the standard C-compiler.
>> Now, I'd like to switch to gcc-4.2.1.
> 
> There is an official guide to upgrading gcc
> http://www.gentoo.org/doc/e <http://www.gentoo.org/doc/en/gcc-upgrading.xml>
> n/gcc-upgrading.xml <http://www.gentoo.org/doc/en/gcc-upgrading.xml>

which I have followed.
> 
> Since you are already at version 4 it looks like you'll need to do the
> following:
> 
> # emerge -uav gcc
> 
> (Please substitute "i686-pc-linux-gnu-4.1.1" with the GCC
> version and CHOST settings you've upgraded to:)
> # gcc-config i686-pc-linux-gnu-4.1.1
> # env-update && source /etc/profile
> 
> (Rebuilding libtool)
> # emerge --oneshot -av libtool

This does not suffice here.
e.g. in /etc/profile.env  the environment variable PATH begins with
export PATH='/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:
                      this doesn't exist anymore =====^^^^^ 
            /usr/i686-pc-linux-gnu/gcc-bin/4.1.2
            this hides version 4.2.1 ======^^^^^
             /usr/i686-pc-linux-gnu/gcc-bin/4.2.1:

What part of portage generates /etc/profile.env

> 
> The authors of the guide also recommend
> 
> # emerge -eav system
> # emerge -eav world

Is that really necessary within the gcc-4.x family ?

> 
> It must be the env-update && source /etc/profile that keeps your new
> settings

Many thanks,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
-- 
[EMAIL PROTECTED] mailing list

Reply via email to