NetBSD Problem Report #23517

Received: (qmail 22996 invoked by uid 605); 21 Nov 2003 00:00:44 -0000
Message-Id: <20031121000041.711D333AD8@sanctum.takilma.net>
Date: Thu, 20 Nov 2003 16:00:41 -0800 (PST)
From: ben@netbsd.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: ben@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: -current usr.sbin/config fails to build (i386 -> sparc64)
X-Send-Pr-Version: 3.95

>Number:         23517
>Category:       port-sparc64
>Synopsis:       -current usr.sbin/config fails to build (i386 -> sparc64)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sparc64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 21 00:01:00 +0000 2003
>Closed-Date:    Fri Nov 21 00:54:38 +0000 2003
>Last-Modified:  Fri Nov 21 00:54:38 +0000 2003
>Originator:     
>Release:        NetBSD 1.6ZF
>Organization:
>Environment:
System: NetBSD sanctum 1.6ZF NetBSD 1.6ZF (GENERIC) #0: Tue Nov 18 22:05:39 PST 2003 root@sanctum:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	When crossbuilting a -current sparc64 release from today's sources on
	my i386 host, usr.sbin/config/scan.l errors like so:

#   compile  scan.lo
cc -O -DMAKE_BOOTSTRAP -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include  -I/usr/src/tools/config/../compat -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE  -I/usr/src/tools/config/../../usr.sbin/config -I. -c -o scan.lo.o    scan.c
/usr/src/tools/config/../../usr.sbin/config/scan.l: In function `yylex':
/usr/src/tools/config/../../usr.sbin/config/scan.l:151: error: union has no member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:152: error: union has no member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:156: error: union has no member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:157: error: union has no member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:161: error: union has no member named `num'
/usr/src/tools/config/../../usr.sbin/config/scan.l:162: error: union has no member named `num'

*** Failed target:  scan.lo
*** Failed command: cc -O -DMAKE_BOOTSTRAP -I/usr/src/tools/compat/obj -I/usr/src/tools/compat/obj/include -I/usr/src/tools/config/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -I/usr/src/tools/config/../../usr.sbin/config -I. -c -o scan.lo.o scan.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/config
>How-To-Repeat:
	cd /usr/src
	./build.sh -D /usr/destdir -R /usr/releasedir -m sparc64 release

>Fix:
	It builds if I revert to the previous version, but that is not the
	correct fix.

	cd /usr/src/usr.sbin/config
	cvs update -r 1.41 scan.l
>Release-Note:
>Audit-Trail:

From: Martin Husemann <martin@duskware.de>
To: ben@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-sparc64/23517: -current usr.sbin/config fails to build (i386 -> sparc64)
Date: Fri, 21 Nov 2003 01:29:30 +0100

 On Thu, Nov 20, 2003 at 04:00:41PM -0800, ben@netbsd.org wrote:
 > 	cd /usr/src
 > 	./build.sh -D /usr/destdir -R /usr/releasedir -m sparc64 release

 Works fine for me. Be sure to have:

      $NetBSD: scan.l,v 1.42 2003/11/19 18:06:13 christos Exp $
      $NetBSD: gram.y,v 1.47 2003/11/19 21:10:27 christos Exp $
      $NetBSD: defs.h,v 1.15 2003/11/19 18:06:13 christos Exp $

 and maybe try to clean the objdir or remove the .depend and *.d files.

 Martin

From: Ben Collver <collver1@comcast.net>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: port-sparc64/23517: -current usr.sbin/config fails to build (i386 -> sparc64)
Date: Thu, 20 Nov 2003 16:45:32 -0800

 On Fri, Nov 21, 2003 at 01:29:30AM +0100, Martin Husemann wrote:
 > On Thu, Nov 20, 2003 at 04:00:41PM -0800, ben@netbsd.org wrote:
 > > 	cd /usr/src
 > > 	./build.sh -D /usr/destdir -R /usr/releasedir -m sparc64 release
 > 
 > Works fine for me. Be sure to have:
 > 
 >      $NetBSD: scan.l,v 1.42 2003/11/19 18:06:13 christos Exp $
 >      $NetBSD: gram.y,v 1.47 2003/11/19 21:10:27 christos Exp $
 >      $NetBSD: defs.h,v 1.15 2003/11/19 18:06:13 christos Exp $
 > 
 > and maybe try to clean the objdir or remove the .depend and *.d files.

 I was starting with an empty objdir.  However my gram.y was version 1.44.
 I had manually updated from version 1.45 to 1.44 to fix a compile error
 (which was later fixed correctly by Christos).  It appears my last update
 did not update gram.y.  I'll start reading cvs documentation.

 Thank you for the help,

 Ben
State-Changed-From-To: open->closed 
State-Changed-By: martin 
State-Changed-When: Fri Nov 21 00:53:58 UTC 2003 
State-Changed-Why:  
Solved by cvs update w/o sticky tag. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.