Subject: Re: recompiling
To: Richard Sather <unclemib@ucc.gu.uwa.edu.au>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-help
Date: 11/04/1998 11:45:24
Richard Sather writes:
> ok - i'v installed 1.3.2 onto a Sun 3/60 - it works fine, i'v
> downloaded all the sources for -current.
> now what do i do ??? (i'v used make build - it just bombs out)

You can't just "make build" new sources, because various tools you
need are probably broken.

Try doing the following sequence:

1) start by rebuilding config.
2) build a new kernel -- you'll need the new system calls it supports
in order to make sure that your new binaries built with your new libc
don't die a horrid death. Restart with that new kernel.
3) go into src/share/mk; make install (this so you have the new make rules)
4) "make includes" at the top level of the tree, so you have include
files corresponding to the kernel you are running, etc.

Now you will have to go through a fairly painful process with make build.

do a make build, and wait until it bombs. it will turn out that some
tool you are using (like the shell, or make, or yacc) needs
updating. rebuild and re-install that tool. then start the make again.
by using UPDATE=1 and some judicious use of make (you probably don't
need a full make build after the first time for instance) you may be
able to get away with this not taking as long as it might otherwise.

If you need help, feel free to ask, but be sure to include your error
messages. Also, you probably should be posting further questions on
this (and comments) to current-users, not netbsd-help

Perry