Subject: Re: Building -current fails in conf.c
To: Rose, Brian <>
From: Lubomir Sedlacik <>
List: current-users
Date: 09/26/2002 14:40:21
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi brian,

On Thu, Sep 26, 2002 at 08:22:47AM -0400, Rose, Brian wrote:
> I had actually updated config after the kernel build initially failed (my
> /usr/sbin/config file is dated 25 Sept). I just did not put it my email. =
> still getting used to keeping up with -current, so please bear with me.
> I decided to start over from the top. This time I'll elaborate more becau=
> I am writing this message as I do the process. Forgive my verbosity, but I
> need to find out what I am doing wrong.
>  # cd /usr/src
>  # cvs update -dP
> Consult /usr/src/UPDATING and see what changes have transpired since 1.5.=
> which is my original install.
> It looks like I should update the following...
> [...]
>  # cd /usr/src
>  # ./ -t
> =20
> No problems there. Let's try making the /usr/src/usr.sbin/config again
>  # cd /usr/src/usr.sbin/config
>  # make clean
>  # make depend
> make: "/usr/src/tools/Makefile" line 5: Malformed conditional
> (${TOOLCHAIN_MISSING} !=3D "yes")
> make: "/usr/src/tools/Makefile" line 9: if-less endif
> make: "/usr/src/tools/Makefile" line 9: Need an operator
> make: Fatal errors encountered -- cannot continue
> make: "/usr/share/mk/" line 92: warning: "cd /usr/src/tools &&
> make -V .OBJDIR" returned non-zero status
> make: stopped in /usr/src/tools/tools.NetBSD-1.6E-i386/bin/nbyacc    -d
> /usr/src/usr.sbin/config/gram.y
> make:: not found
> *** Error code 127
> Stop.
> make: stopped in /usr/src/usr.sbin/config
> =20
> Same problem. Do I need to update anything else? HELP!

well, the same problem because nothing has changed in between :).  you
are still using the same toolchain.

as of NetBSD 1.6 you don't run make directly in the tree anymore but use  you want to use the config binary which was built into the
tools directory.  same with make later in kernel building process.

i'd suggest you to build binary release and upgrade from the sets.


 cd /usr/src
 ./ -D /path/to/DESTDIR -d -O /path/to/OBJDIR \
 -R /path/to/RELEASEDIR -T /path/to/TOOLDIR

(you don't need to specify DESTDIR, OBJDIR and TOOLDIR but i prefer to
have /usr/src clean)

and wait.  then upgrade from binary sets built in /path/to/RELEASEDIR.
if the GENERIC kernel isn't suitable for you, you can build your custom
one using tools from /path/to/TOOLDIR, nbconfig and nbmake.

after rebooting to single-user with new kernel unpack your sets to /
(except etc.tgz) and update your /etc with etcupdate binary after
unpacking etc.tgz to some location (e.g. etcupdate -b /root/tmproot).


-- Lubomir Sedlacik <>   ASCII Ribbon campaign against  /"\=
--                  <>   e-mail in gratuitous HTML and  \ /=
--                                       Microsoft proprietary formats   X =
-- PGPkey:                                  / \=
-- Key Fingerprint: 75B2 2B96 CD75 0385 1C49  39B8 8B08 C30E 54BC 7263     =

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.7 (NetBSD)