Subject: Re: misc/25828: failed to compile cvs-release 2.0
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 06/05/2004 19:36:05
> First, I did a "cvs checkout -rnetbsd-2-0. Then I tried to
> compile everyhting with "./build.sh -U release" which started with cleaning
> everything and create nbmake and other things.
> It stopped with:
> 
> #    create  i386/menus.def
> sed "s/@@VERSION@@/2.0_BETA/" /var/space/src/distrib/utils/sysinst/arch/i386/../../menus.mi /var/space/src/distrib/utils/sysinst/arch/i386/menus.md /var/space/src/distrib/utils/sysinst/arch/i386/../../menus.mbr /var/space/src/distrib/utils/sysinst/arch/i386/msgtouch |  awk -f /var/space/src/distrib/utils/sysinst/arch/i386/../../unif.awk -v defines="BOOTSEL AOUT2ELF" > menus.def
> #    create  i386/menu_defs.c
> [ ! -f menu_defs.h ] || mv -f menu_defs.h menu_defs.oh
> MENUDEF=/var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/share/misc /var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/bin/nbmenuc menus.def
> ! cmp -s menu_defs.oh menu_defs.h || mv -f menu_defs.oh menu_defs.h
> [ -f menu_defs.h ] || {  echo '#  ' " create " i386/menu_defs.h;  MENUDEF=/var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/share/misc /var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/bin/nbmenuc menus.def;  }
> #    create  i386/msg_defs.c
> [ ! -f msg_defs.h ] || mv -f msg_defs.h msg_defs.oh
> MSGDEF=/var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/share/misc /var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/bin/nbmsgc msg.def
> /var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/bin/nbmsgc: could not open msg.def.
> 
> *** Failed target:  msg_defs.c
> *** Failed command: MSGDEF=/var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/share/misc /var/space/src/obj.i386/tooldir.NetBSD-1.6-i386/bin/nbmsgc msg.def
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /var/space/src/distrib/i386/floppies/ramdisk-big/obj.i386/sysinst

The command that (should) create msg.def is just before those shown :-(
However menus.def is created in much the same way.

I'd hazard a guess that the file was actually put into the wrong place,
probably somewhere in the source tree.

If you can find the file, wit might be possible to fix the build...

This is probably fallout from you having the object files in 'obj.i386',
keeping built files completely outside the source tree is more useful
and more likely to work - since that is what most people do!

If you 'mkdir /var/space/obj.i386' and 'build.sh .... -O /var/space/obj.i386'
you'll keep a clean source tree.  However you'll need to make sure
everything is removed from the existing tree.

	David

-- 
David Laight: david@l8s.co.uk