Subject: Upgrade troubbles
To: None <current-users@NetBSD.org>
From: Olivier Cherrier <oc@karedas.cediti.be>
List: current-users
Date: 10/08/2003 14:51:23
Hello,
I installed an 1.6.1 i386 box.
Now, I try to upgrade to -current. I follow the instructions available at
http://www.fr.netbsd.org/Documentation/current:
mkdir /usr/obj
cd /usr/src
./build.sh -O /usr/obj -D /usr/NetBSD-new-build -T /usr/tools build
I get the following error:
<<
dependall ===> gnu/usr.bin/gawk
nbmake: don't know how to make awk.y. Stop
nbmake: stopped in /usr/src/gnu/usr.bin/gawk
*** Failed target: dependall-gawk
*** Failed command: targ=dependall;dir=gawk; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> gnu/usr.bin/$dir"; cd "/usr/src/gnu/usr.bin/$dir"; /usr/tools/bin/nbmake "_THISDIR_=gnu/usr.bin/$dir/" $targ; ;; esac
*** Error code 2
Stop.
nbmake: stopped in /usr/src/gnu/usr.bin
*** Failed target: dependall-usr.bin
*** Failed command: targ=dependall;dir=usr.bin; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> gnu/$dir"; cd "/usr/src/gnu/$dir"; /usr/tools/bin/nbmake "_THISDIR_=gnu/$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /usr/src/gnu
*** Failed target: dependall-gnu
*** Failed command: targ=dependall;dir=gnu; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/usr/src/$dir"; /usr/tools/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Failed target: do-build
*** Failed command: (cd /usr/src && /usr/tools/bin/nbmake dependall BUILD_tools=no BUILD_lib=no)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
*** Failed target: build
*** Failed command: (cd /usr/src && /usr/tools/bin/nbmake do-build)
*** Error code 1
Stop.
nbmake: stopped in /usr/src
ERROR: Failed to make build
*** BUILD ABORTED ***
>>
So, i run the steps mentioned in UPDATING:
cd src/gnu/usr.bin/texinfo
make MKINFO=no dependall install
But, I get the following error:
<<
dependall ===> common
dependall ===> info
make: don't know how to make /usr/lib/crti.o. Stop
make: stopped in /usr/src/gnu/usr.bin/texinfo/info
*** Error code 2
Stop.
make: stopped in /usr/src/gnu/usr.bin/texinfo/info
*** Error code 1
Stop.
make: stopped in /usr/src/gnu/usr.bin/texinfo
>>
I also try to update Groff as explained with 'cd share/mk &&
make install', but, I get the following error:
<<
STRIP=/usr/src/obj/tooldir.NetBSD-1.6ZC-i386/bin/i386--netbsdelf-strip /usr/src/obj/tooldir.NetBSD-1.6ZC-i386/bin/nbinstall -N /usr/src/etc -c -r -o root -g wheel -m 444 bsd.README /usr/share/mk/bsd.README
/usr/src/obj/tooldir.NetBSD-1.6ZC-i386/bin/nbinstall: not found
*** Error code 127
Stop.
make: stopped in /usr/src/share/mk
>>
I don't know where the reference to the "tooldir.NetBSD-1.6ZC-i386"
directory is still defined. It should be from an old build tentatives when
I only ran "./build.sh distribution".
To find this, I ran "grep -r tooldir.NetBSD-1.6ZC-i386 /usr/src" but didn't
find any reference.
I think this problem is from the "build.sh" use. It defines variables
and things that are not accessed when using "make install".
Is it really possible to upgrade from 1.6.1 to current? If yes, did
I run the correct procedure? Thanks a lot.
I use to do such upgrades with OpenBSD and I have the feeling that it
is quite more easy and better documented (man release). I hope it's
a wrong feeling.
Any help appreciated.
--
oc - oc@karedas.cediti.be