NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
problem updating NetBSD via source
Hi guys!
There is this machine that I installed NetBSD 4.0 on and I wanted to 
update the system to -CURRENT. Normally I would only do that for 
experimental purposes, but in this case there are two functions that I 
need which have not been backported to the current -STABLE branch yet.[1]
I am new to NetBSD (changed from FreeBSD) and some things are done 
differently, but that doesn't have to be a bad thing. What I did was this:
Got the new sources with cvs as described in the guide.
built a new userland:
./build.sh -U distribution (in /usr/src, not as root)
./build.sh kernel=GENERIC
I ran into the first problems there because build.sh couldn't find any 
tools. The same thing happens BTW. if I type the command just like in 
the guide. So I did a
./build.sh tools
Then I built the kernel als above and installed it. The system reboots 
fine and now is this:
sunny# uname -a
NetBSD sunny 4.99.64 NetBSD 4.99.64 (GENERIC) #0: Sun Jun  8 14:51:30 
CEST 2008  christian@sunny:/usr/obj/sys/arch/sparc64/compile/GENERIC sparc64
But after that, I can't get the userland installed. First I messed up 
and forgot the -U:
./build.sh install=/
That resulted in [2].
Then I added the -U:
./build.sh -U install=/
The result was shorter and is in [3]. Both installs were done as root.
Can someone tell me where I messed up?
Regards,
Chris
[1] - cgd has been updated to allow the passphrase to be piped to it
    - System is a Sun U60 with two CPUs and SMP for SPARC64 is only
      supported in -CURRENT
[2] Output of ./build.sh install=/
===> build.sh command: ./build.sh install=/
===> build.sh started: Sun Jun  8 15:01:31 CEST 2008
===> NetBSD version:   4.99.64
===> MACHINE:          sparc64
===> MACHINE_ARCH:     sparc64
===> Build platform:   NetBSD 4.99.64 sparc64
===> HOST_SH:          /bin/sh
===> TOOLDIR path:     /usr/src/obj/tooldir.NetBSD-4.99.64-sparc64
===> DESTDIR path:     /usr/src/obj/destdir.sparc64
===> RELEASEDIR path:  /usr/src/obj/releasedir
===> makewrapper: 
/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake-sparc64
===> Updated /usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake-sparc64
installsets ===> distrib/sets   (with: INSTALLDIR=/ INSTALLSETS=)
cd /usr/src/distrib/sets &&  DESTDIR=/usr/src/obj/destdir.sparc64 
MACHINE=sparc64 MACHINE_ARCH=sparc64 
CKSUM=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbcksum 
DB=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbdb  HOST_SH=/bin/sh 
 MAKE=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake 
MKTEMP=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmktemp 
MTREE=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmtree 
PAX=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbpax 
TSORT=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbtsort\ -q 
/bin/sh ./maketars -d /usr/src/obj/destdir.sparc64    -N /usr/src/etc   -i /
./lists/base/mi
./lists/base/md.sparc64
./lists/base/shl.mi
./lists/base/shl.elf
./lists/base/lkm.mi
./lists/base/rescue.mi
./lists/base/rescue.sparc64
cp: /usr/src/obj/destdir.sparc64/etc/mtree/set.base: No such file or 
directory
./lists/comp/mi
./lists/comp/md.sparc64
./lists/comp/stl.elf
./lists/comp/shl.mi
./lists/comp/shl.elf
cp: /usr/src/obj/destdir.sparc64/etc/mtree/set.comp: No such file or 
directory
./lists/games/mi
cp: /usr/src/obj/destdir.sparc64/etc/mtree/set.games: No such file or 
directory
./lists/man/mi
cp: /usr/src/obj/destdir.sparc64/etc/mtree/set.man: No such file or 
directory
./lists/misc/mi
cp: /usr/src/obj/destdir.sparc64/etc/mtree/set.misc: No such file or 
directory
./lists/tests/mi
cp: /usr/src/obj/destdir.sparc64/etc/mtree/set.tests: No such file or 
directory
./lists/text/mi
cp: /usr/src/obj/destdir.sparc64/etc/mtree/set.text: No such file or 
directory
Copying set base
cd: can't cd to /usr/src/obj/destdir.sparc64
./maketars: cannot open /usr/src/obj/destdir.sparc64/etc/mtree/set.base: 
no such file
Copying set comp
cd: can't cd to /usr/src/obj/destdir.sparc64
./maketars: cannot open /usr/src/obj/destdir.sparc64/etc/mtree/set.comp: 
no such file
Copying set games
cd: can't cd to /usr/src/obj/destdir.sparc64
./maketars: cannot open 
/usr/src/obj/destdir.sparc64/etc/mtree/set.games: no such file
Copying set man
cd: can't cd to /usr/src/obj/destdir.sparc64
./maketars: cannot open /usr/src/obj/destdir.sparc64/etc/mtree/set.man: 
no such file
Copying set misc
cd: can't cd to /usr/src/obj/destdir.sparc64
./maketars: cannot open /usr/src/obj/destdir.sparc64/etc/mtree/set.misc: 
no such file
Copying set tests
cd: can't cd to /usr/src/obj/destdir.sparc64
./maketars: cannot open 
/usr/src/obj/destdir.sparc64/etc/mtree/set.tests: no such file
Copying set text
cd: can't cd to /usr/src/obj/destdir.sparc64
./maketars: cannot open /usr/src/obj/destdir.sparc64/etc/mtree/set.text: 
no such file
*** Failed target:  installsets
*** Failed command: cd /usr/src/distrib/sets && 
DESTDIR=/usr/src/obj/destdir.sparc64 MACHINE=sparc64 
MACHINE_ARCH=sparc64 
CKSUM=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbcksum 
DB=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbdb HOST_SH=/bin/sh 
MAKE=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake 
MKTEMP=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmktemp 
MTREE=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmtree 
PAX=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbpax 
TSORT=/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbtsort\ -q 
/bin/sh ./maketars -d /usr/src/obj/destdir.sparc64 -N /usr/src/etc -i /
*** Error code 14
Stop.
nbmake: stopped in /usr/src/distrib/sets
*** Failed target:  installworld
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; 
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; 
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd 
"${real}" && /usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake 
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget distrib/sets 
installsets INSTALLDIR=/ INSTALLSETS=
*** Error code 1
Stop.
nbmake: stopped in /usr/src
ERROR: Failed to make installworld to /
*** BUILD ABORTED ***
[3] Output of ./build.sh -U install=/
===> build.sh command: ./build.sh -U install=/
===> build.sh started: Sun Jun  8 15:02:26 CEST 2008
===> NetBSD version:   4.99.64
===> MACHINE:          sparc64
===> MACHINE_ARCH:     sparc64
===> Build platform:   NetBSD 4.99.64 sparc64
===> HOST_SH:          /bin/sh
===> TOOLDIR path:     /usr/src/obj/tooldir.NetBSD-4.99.64-sparc64
===> DESTDIR path:     /usr/src/obj/destdir.sparc64
===> RELEASEDIR path:  /usr/src/obj/releasedir
===> makewrapper: 
/usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake-sparc64
===> Updated /usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake-sparc64
installsets ===> distrib/sets   (with: INSTALLDIR=/ INSTALLSETS=)
nbmake: don't know how to make /usr/src/obj/destdir.sparc64/METALOG. Stop
nbmake: stopped in /usr/src/distrib/sets
*** Failed target:  installworld
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; 
shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; 
real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; 
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd 
"${real}" && /usr/src/obj/tooldir.NetBSD-4.99.64-sparc64/bin/nbmake 
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget distrib/sets 
installsets INSTALLDIR=/ INSTALLSETS=
*** Error code 2
Stop.
nbmake: stopped in /usr/src
ERROR: Failed to make installworld to /
*** BUILD ABORTED ***
Home |
Main Index |
Thread Index |
Old Index