Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 05:18:56 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Stefan Bethke <stb@lassitu.de>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: make world fails in usr.sbin/config?
Message-ID:  <20100524121856.GA26479@icarus.home.lan>
In-Reply-To: <E55CDD84-E46E-4ABB-995D-B4F794F80BD6@lassitu.de>
References:  <323EFFEC-C17C-46AF-AF7C-281863F041C3@lassitu.de> <20100524120910.GA25613@icarus.home.lan> <E55CDD84-E46E-4ABB-995D-B4F794F80BD6@lassitu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 24, 2010 at 02:12:13PM +0200, Stefan Bethke wrote:
> Am 24.05.2010 um 14:09 schrieb Jeremy Chadwick:
> 
> > On Mon, May 24, 2010 at 01:59:14PM +0200, Stefan Bethke wrote:
> >> I have a feeling I screwed something up, but I can't find anything wrong locally.
> >> ...
> >> ===> usr.sbin/config (obj,depend,all,install)
> >> /usr/obj/usr/src/tmp/usr/src/usr.sbin/config created for /usr/src/usr.sbin/config
> >> yacc -d /usr/src/usr.sbin/config/config.y
> >> cp y.tab.c config.c
> >> lex -t  /usr/src/usr.sbin/config/lang.l > lang.c
> >> file2c 'char kernconfstr[] = {' ',0};' < /usr/src/usr.sbin/config/kernconf.tmpl > kernconf.c
> >> rm -f .depend
> >> mkdep -f .depend -a    -I. -I/usr/src/usr.sbin/config -I/usr/obj/usr/src/tmp/legacy/usr/include config.c /usr/src/usr.sbin/config/main.c lang.c /usr/src/usr.sbin/config/mkmakefile.c /usr/src/usr.sbin/config/mkheaders.c /usr/src/usr.sbin/config/mkoptions.c kernconf.c
> >> echo config: /usr/lib/libc.a /usr/lib/libl.a /usr/lib/libsbuf.a /usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend
> >> cc -O2 -pipe -I. -I/usr/src/usr.sbin/config   -I/usr/obj/usr/src/tmp/legacy/usr/include -c config.c
> >> config.c:214: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
> >> config.c:215: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'yyval'
> >> config.c:216: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'yylval'
> >> config.c:219: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
> >> /usr/src/usr.sbin/config/config.y: In function 'yyerror':
> >> /usr/src/usr.sbin/config/config.y:312: error: 'yyfile' undeclared (first use in this function)
> >> /usr/src/usr.sbin/config/config.y:312: error: (Each undeclared identifier is reported only once
> >> /usr/src/usr.sbin/config/config.y:312: error: for each function it appears in.)
> >> /usr/src/usr.sbin/config/config.y:312: error: 'yyline' undeclared (first use in this function)
> > 
> > 1) Have you tried rm -fr /usr/obj/* prior to building world?
> 
> /usr/obj is a fresh filesystem (zfs).
> 
> > 2) If you already tried that, can you provide your /etc/make.conf and
> > /etc/src.conf contents?
> 
> I have no src.conf, and this is make.conf, unchanged from previous make worlds.
> 
> #
> # make world etc.
> #
> KERNCONF?=			DIESEL
> #MODULES_WITH_WORLD=	true
> 
> BOOT_PXELDR_ALWAYS_SERIAL?=	true
> BOOT_PXELDR_PROBE_KEYBOARD?=	true
> 
> # added by use.perl 2009-07-26 23:56:06
> PERL_VERSION=5.8.9

1) Were you using any "-j" flags during your make?  If so, try without it.
Sometimes these are known to cause oddities, even if occasionally.

2) Make sure your system clock is correct and isn't drifting badly.
Highly recommend you use ntpdate to set the clock initially, then run
ntpd at all times.

-- 
| Jeremy Chadwick                                   jdc@parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100524121856.GA26479>