Subject: Re: build.sh build craps out
To: James Chacon <jmc@NetBSD.org>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 03/30/2005 14:06:44
Hi.

Sorry, I forgot to paste in the error msg.
Running ./build.sh -O /home/obj -D /usr/NetBSD-current -T /usr/tools build
I get:

#   compile  telnetd/sys_term.o
/usr/tools/bin/i386--netbsdelf-gcc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized  -Werror   -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX -I/usr/src/lib -I/usr/src/libexec/telnetd -I/usr/NetBSD-current/usr/include/krb5 -DKRB5 -DAUTHENTICATION -DENCRYPTION -DKRB4  -nostdinc -isystem /usr/NetBSD-current/usr/include  -c    /usr/src/libexec/telnetd/sys_term.c
/usr/src/libexec/telnetd/sys_term.c:682: error: parse error before numeric constant
/usr/src/libexec/telnetd/sys_term.c:695: error: parse error before '++' token
/usr/src/libexec/telnetd/sys_term.c:696: warning: type defaults to `int' in declaration of `argv'
/usr/src/libexec/telnetd/sys_term.c:696: warning: initialization from incompatible pointer type
/usr/src/libexec/telnetd/sys_term.c:696: warning: data definition has no type or storage class
/usr/src/libexec/telnetd/sys_term.c:697: error: parse error before '}' token
/usr/src/libexec/telnetd/sys_term.c:698: warning: type defaults to `int' in declaration of `cpp'
/usr/src/libexec/telnetd/sys_term.c:698: warning: data definition has no type or storage class
/usr/src/libexec/telnetd/sys_term.c:698: error: parse error before '++' token
/usr/src/libexec/telnetd/sys_term.c:702: warning: type defaults to `int' in declaration of `nargv'
/usr/src/libexec/telnetd/sys_term.c:703: warning: initialization makes integer from pointer without a cast
/usr/src/libexec/telnetd/sys_term.c:703: error: initializer element is not constant
/usr/src/libexec/telnetd/sys_term.c:703: warning: data definition has no type or storage class
/usr/src/libexec/telnetd/sys_term.c:704: error: parse error before "if"
/usr/src/libexec/telnetd/sys_term.c:708: warning: type defaults to `int' in declaration of `argv'
/usr/src/libexec/telnetd/sys_term.c:708: error: conflicting types for `argv'
/usr/src/libexec/telnetd/sys_term.c:696: error: previous declaration of `argv'
/usr/src/libexec/telnetd/sys_term.c:708: warning: data definition has no type or storage class
/usr/src/libexec/telnetd/sys_term.c:709: warning: type defaults to `int' in declaration of `argv'
/usr/src/libexec/telnetd/sys_term.c:709: error: conflicting types for `argv'
/usr/src/libexec/telnetd/sys_term.c:708: error: previous declaration of `argv'
/usr/src/libexec/telnetd/sys_term.c:709: warning: data definition has no type or storage class
/usr/src/libexec/telnetd/sys_term.c:710: error: parse error before '++' token
/usr/src/libexec/telnetd/sys_term.c:711: warning: type defaults to `int' in declaration of `cpp'
/usr/src/libexec/telnetd/sys_term.c:711: error: conflicting types for `cpp'
/usr/src/libexec/telnetd/sys_term.c:698: error: previous declaration of `cpp'
/usr/src/libexec/telnetd/sys_term.c:711: warning: data definition has no type or storage class
/usr/src/libexec/telnetd/sys_term.c:712: error: parse error before '}' token
/usr/src/libexec/telnetd/sys_term.c:713: error: parse error before '++' token
/usr/src/libexec/telnetd/sys_term.c:714: warning: type defaults to `int' in declaration of `cpp'
/usr/src/libexec/telnetd/sys_term.c:714: error: conflicting types for `cpp'
/usr/src/libexec/telnetd/sys_term.c:711: error: previous declaration of `cpp'
/usr/src/libexec/telnetd/sys_term.c:714: warning: data definition has no type or storage class
/usr/src/libexec/telnetd/sys_term.c:715: error: parse error before "return"

*** Failed target:  sys_term.o
*** Failed command: /usr/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Werror -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX -I/usr/src/lib -I/usr/src/libexec/telnetd -I/usr/NetBSD-current/usr/include/krb5 -DKRB5 -DAUTHENTICATION -DENCRYPTION -DKRB4 -nostdinc -isystem /usr/NetBSD-current/usr/include -c /usr/src/libexec/telnetd/sys_term.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/libexec/telnetd


On Tue, 29 Mar 2005 22:31:40 -0600
James Chacon <jmc@NetBSD.org> wrote:

> On Wed, Mar 30, 2005 at 03:45:20AM +0000, Marcin Jessa wrote:
> > Hi Michael, guys.
> > 
> > I did as suggested by Luke Mewburn and chose different dir for obj and the tools dir outside the /usr/src dir.
> > I got a different error msg then.
> 
> And that error would be?
> 
> James
> 
> 
> > 
> > 
> > 
> > On Tue, 29 Mar 2005 19:47:58 -0700 (MST)
> > "Michael L. Hitch" <mhitch@lightning.msu.montana.edu> wrote:
> > 
> > > On Tue, 29 Mar 2005, Marcin Jessa wrote:
> > > 
> > > > I removed the old obj files, removed the old and refetched new sources, created new dest dir, ran
> > > >  ./build.sh -O /usr/obj -D /usr/NetBSD-current -T /usr/src/tools build
> > > > and I still get the same error:
> > > > #    create  eqn/eqn.d
> > > > CC=/usr/src/tools/bin/i386--netbsdelf-gcc /usr/src/tools/bin/nbmkdep -f eqn.d --   -DHAVE_CONFIG_H -I/usr/src/gnu/dist/groff/src/include -I/usr/src/gnu/usr.bin/groff/src/include  -nostdinc++ -isystem-cxx  /usr/NetBSD-current/usr/include/g++    -nostdinc -isystem /usr/NetBSD-current/usr/include   eqn.cpp
> > > > /usr/src/gnu/dist/groff/src/preproc/eqn/eqn.y:27:17: box.h: No such file or directory
> > > > nbmkdep: compile failed.
> > > 
> > >   Let me make a wild guess - do you have a 'COPTS=' entry in /etc/mk.conf?
> > > That will override COPTS set in parts of the build process and the missing
> > > value is probably a "-I." that is needed.
> > > 
> > > --
> > > Michael L. Hitch			mhitch@montana.edu
> > > Computer Consultant
> > > Information Technology Center
> > > Montana State University	Bozeman, MT	USA
> > > 
> > 
> > 
> > -- 
> > 
> > Regards,
> > M. Jessa
> > http://www.yazzy.org
> > 
> > 


-- 

Regards,
M. Jessa
http://www.yazzy.org