Subject: RE: Building -current fails in conf.c
To: NetBSD-current \(E-mail\) <current-users@netbsd.org>
From: Rose, Brian <Brian.Rose@icn.siemens.com>
List: current-users
Date: 09/26/2002 08:22:47
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. I'm
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 because
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.3,
which is my original install.
It looks like I should update the following...

 # cd /usr/src/usr.sbin/config
 # make clean
 # make depend
make: "/usr/src/tools/Makefile" line 5: Malformed conditional
(${TOOLCHAIN_MISSING} != "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/bsd.own.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


I open up the /usr/src/tools/Makefile and the first lines look like this...


 #	$NetBSD: Makefile,v 1.60 2002/09/19 17:13:01 thorpej Exp $

 .include <bsd.own.mk>

 .if ${TOOLCHAIN_MISSING} != "yes"
 TOOLCHAIN_BITS= toolchain .WAIT dbsym mdsetimage
 # XXX Eventually, we want to be able to build dbsym and mdsetimage
 # XXX if EXTERNAL_TOOLCHAIN is set.
 .endif

 # Dependencies in SUBDIR below ordered to maximize parallel ability.
 .if !defined(NOSUBDIR)

The macro looks good to me. Since it is barfing on a toolchain macro, I'll
update my toolchain as indicated in the "Tracking..." document

 # cd /usr/src
 # ./build.sh -t
 
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} != "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/bsd.own.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

 
Same problem. Do I need to update anything else? HELP!



 
 



-----Original Message-----
From: David S. [mailto:davids@idiom.com]
Sent: Wednesday, September 25, 2002 5:18 PM
To: netbsd-users@netbsd.org
Subject: Re: Building -current fails in




> cc  -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
> -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
-Wno-uninitialized
> -Di386 -I.  -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32
> -D_KERNEL -D_KERNEL_OPT   -c
> /usr/src/sys/arch/i386/compile/FXA32/../../../../arch/i386/i386/conf.c
> cc1: warnings being treated as errors
> /usr/src/sys/arch/i386/compile/FXA32/../../../../arch/i386/i386/conf.c:49:
> warning: type defaults to `int' in declaration of `bdev_decl'
> /usr/src/sys/arch/i386/compile/FXA32/../../../../arch/i386/i386/conf.c:49:
> warning: parameter names (without types) in function declaration
> /usr/src/sys/arch/i386/compile/FXA32/../../../../arch/i386/i386/conf.c:49:
> warning: data definition has no type or storage class
> /usr/src/sys/arch/i386/compile/FXA32/../../../../arch/i386/i386/conf.c:50:
> warning: type defaults to `int' in declaration of `bdev_decl'
> 
> ... and on and on. There are errors as well, not just warnings.
> 
> 
> Did I do something wrong or is conf.c just broken?

From '/usr/src/UPDATIING' in -current (1.6H):

20020906:
        gehenna-devsw has been merged into the trunk. Need to update and
        reinstall usr.sbin/config before build the kernel.

To update 'usr.sbin/config'.

	cd /usr/src/usr.sbin/config
	make clean
	make depend
	make
	make install

David S.

>