Subject: Re: Rebuild NetBSD
To: Geert Hendrickx <ghen@telenet.be>
From: Linyin <linyin.cn@gmail.com>
List: netbsd-users
Date: 03/31/2006 15:39:50
bash-3.1# ./build.sh -m i386 tools
=3D=3D=3D> build.sh command: ./build.sh -m i386 tools
=3D=3D=3D> build.sh started: Fri Mar 31 23:31:56 CST 2006
=3D=3D=3D> No nonexistent/bin/nbmake, needs building.
=3D=3D=3D> Bootstrapping nbmake
checking for sh... /bin/sh
checking for gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking for regex.h... yes
checking for poll.h... yes
checking for regfree in -lregex... no
checking for library containing regfree... none required
checking for setenv... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for vsnprintf... yes
configure: creating ./config.status
config.status: creating buildmake.sh
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/arch.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/buf.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/compat.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/cond.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/dir.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/for.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/hash.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/job.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/main.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/make.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/parse.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/str.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/suff.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/targ.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/trace.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/util.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c /usr/src/tools/make/../../usr.bin/make/var.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstAppend.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstAtEnd.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstAtFront.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstClose.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstConcat.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstDatum.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstDeQueue.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstDestroy.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstDupl.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstEnQueue.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstFind.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstFindFrom.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstFirst.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstForEach.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstForEachFrom.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstInit.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstInsert.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstIsAtEnd.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstIsEmpty.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstLast.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstMember.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstNext.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstOpen.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstRemove.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstReplace.c
cc  -O -D_PATH_BSHELL=3D"/bin/sh" -D_PATH_DEFSHELLDIR=3D"/bin"
-DHAVE_SETENV=3D1 -DHAVE_STRDUP=3D1 -DHAVE_STRERROR=3D1 -DHAVE_STRFTIME=3D1
-DHAVE_VSNPRINTF=3D1  -c
/usr/src/tools/make/../../usr.bin/make/lst.lib/lstSucc.c
cc  -O -o nbmake *.o
BSDOBJDIR /usr/obj does not exist, bailing...

*** Failed target:  obj
*** Failed command: cd /usr/src/tools; here=3D`/bin/pwd`/;
subdir=3D${here#/usr/src/}; if [ "$here" !=3D "$subdir" ]; then if [ ! -d
/usr/obj ]; then echo "BSDOBJDIR /usr/obj does not exist, bailing...";
exit 1; fi; subdir=3D${subdir%/}; dest=3D/usr/obj/$subdir; if [ -x
/usr/src/tooldir.NetBSD-3.0-i386/bin/nbstat ] &&
ttarg=3D`/usr/src/tooldir.NetBSD-3.0-i386/bin/nbstat -qf '%Y'
${here}obj` && [ "$dest" =3D "$ttarg" ]; then : ; else echo '# ' "
objdir $dest"; rm -rf obj; ln -s $dest obj; fi; if [ ! -d $dest ];
then mkdir -p $dest; else true; fi; else true ; dest=3D${here}obj ; if [
! -d obj ] || [ -h obj ]; then echo '# ' " objdir $dest"; rm -f obj;
mkdir $dest; fi ; fi;
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools

ERROR: Failed to make obj in tools
*** BUILD ABORTED ***


On 3/31/06, Geert Hendrickx <ghen@telenet.be> wrote:
> On Fri, Mar 31, 2006 at 03:08:35PM +0800, Linyin wrote:
> > Does any detail information about how to rebuild NetBSD?
>
> http://www.netbsd.org/guide/en/chap-build.html
> http://www.netbsd.org/Documentation/current/
>
> (don't mind that it talks about -current, the instructions are identical
> for 2.x or 3.x releases.)
>
>        Geert
>


--
SooChow.China
IEN International Institute Of Nanjing ZhongShan College
MSN:linyin_cn@hotmail.com
WebSite:eaa13.8866.org/~linyin/