Subject: upgrading gcc (was: groff from today)
To: None <current-users@NetBSD.org>
From: William Allen Simpson <wsimpson@greendragon.com>
List: current-users
Date: 10/02/2003 03:55:29
Jun-ichiro itojun Hagino wrote:
> 
>         last night i struggled during gcc2 -> gcc3 upgrade.  basically,
>         library (libstdc++) and c++ has to match, but is not guaranteed by
>         the build process.  what i have done is
>         - manually upgrade in-tree library/c++ to GCC3
>                 gnu/lib, gnu/usr.bin/gcc3
>         - perform normal build (= rebuild tool, then rebuild in-tree stuff)
> 
>         be sure to "make clean" where appropriate if you set UPDATE to 1.
> 
Um, I think I see your problem.  You are using `make` and setting your 
own environment variables.

Folks using build.sh had no problems at all!  Apparently, `build.sh 
tools` takes care of all the library problems....

Here's what I did (last weekend):

su
rm -rf /usr/obj/*
rm -rf ../tools/*
./build.sh -O /usr/obj -T ../tools tools >&$HOME/030926a.tools &
./build.sh -O /usr/obj -T ../tools build >&$HOME/030926b.build &
./build.sh -O /usr/obj -T ../tools kernel=GENERIC >&$HOME/030926c.kernel &

mv /usr/obj/sys/arch/i386/compile/GENERIC/netbsd /netbsd.1
ln -fh /netbsd /netbsd.old
ln -fh /netbsd.1 /netbsd
reboot

su
./build.sh -O /usr/obj -T ../tools install=/ >&$HOME/030926d.install

-- 
William Allen Simpson
    Key fingerprint =  17 40 5E 67 15 6F 31 26  DD 0D B9 9B 6A 15 2C 32