From owner-freebsd-current@FreeBSD.ORG Thu Feb 5 06:27:43 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E75A716A508 for ; Thu, 5 Feb 2004 06:27:42 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DD8743D5E for ; Thu, 5 Feb 2004 06:27:13 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i15ERvoh018157; Thu, 5 Feb 2004 16:27:57 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i15ERtWh018152; Thu, 5 Feb 2004 16:27:55 +0200 (EET) (envelope-from ru) Date: Thu, 5 Feb 2004 16:27:54 +0200 From: Ruslan Ermilov To: Mattias Larsson Message-ID: <20040205142754.GA17770@FreeBSD.org.ua> References: <20040205135434.GA17443@FreeBSD.org.ua> <20040205140305.E23F943D53@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <20040205140305.E23F943D53@mx1.FreeBSD.org> User-Agent: Mutt/1.5.5.1i cc: Jeff Utter cc: current@freebsd.org Subject: Re: Strange error kills make world for at least 2 days. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 14:27:43 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 05, 2004 at 03:03:05PM +0100, Mattias Larsson wrote: > > On Wed, Feb 04, 2004 at 09:46:19PM -0500, Jeff Utter wrote: > > > Hi, i've been trying to makeworld for the last 2 days (killing=20 > > > /usr/obj and re-cvsupping /usr/src between each build) and i keep=20 > > > getting this same, STRANGE error... > > >=20 [...] > > > /usr/src/lib/libc/net/nslexer.l: At top level: > > > /dev/stdout:1678: warning: `yy_flex_realloc' defined but not used > > > *** Error code 1 > > > 1 error > > >=20 > > > It doesn't even look like an error to me.. it looks like 2=20 > > > warnings?=20 > > > what is up. I tried building with no optimizations and with > > > cputype=3Di686 (instead of p4) same error.. if anyone has any=20 > > > ideas, it=20 > > > would be greatly appreciated. > > >=20 > > What is the output of the following commands? > >=20 > > ident /usr/bin/lex > > cd /usr/src; make -f Makefile.inc1 -V OSRELDATE > > ls -l /usr/include/osreldate.h /usr/bin/lex >=20 > Hi there! I have the exact same problem when making buildworld. These are > the outputs from the commands. >=20 > gateway# ident /usr/bin/lex > /usr/bin/lex: [...] > $FreeBSD: src/usr.bin/lex/flex.skl,v 1.7 2002/09/09 02:58:42 obrien = Exp $ [...] > gateway# cd /usr/src; make -f Makefile.inc1 -V OSRELDATE > 502102 > gateway# ls -l /usr/include/osreldate.h /usr/bin/lex > -r-xr-xr-x 4 root wheel 154580 3 Jan 16:40 /usr/bin/lex > -r--r--r-- 1 root wheel 1528 4 Feb 20:45 /usr/include/osreldate.h >=20 You guys both managed to screw your build systems (I've got the requested output from originator in a private email). We need a working and consistent build system for a successful build, and part of this requirement is that we trust the value of the __FreeBSD_version definition from /usr/include/osreldate.h to determine the version of the build system (headers, libraries, etc.), OSRELDATE. It is known that lex(1) prior to flex.skl,v 1.8 and gen.c,v 1.7 have backward compatibility issues and requires bootstrapping, to not generate compiler warnings. The said revisions were made on 2004/01/06, and at that time __FreeBSD_version was 502101, so Makefile.inc1 bootstraps lex(1) ``.if ${BOOTSTRAPPING} < 502102'', i.e., we stop bootstrapping on the next version bump that happened on 2004/01/30. You broke this because your installed /usr/include/osreldate.h (the modification date is 2004/02/04) doesn't match the installed world (/usr/bin/lex is as of 2004/01/03). Now you tell me how you managed to screw it. In return, I'll tell you how to proceed. Run buildworld like this: make buildworld OSRELDATE=3D502101 Sorry, but we can't protect you from shooting yourself in the foot. ;) If you're in a mood of often doing partial upgrades, including headers, you might find it useful to set OSRELDATE=3D0, which will do an aggressive bootstrapping -- assume that everything bootstrappable needs to be bootstrapped. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAIlLqUkv4P6juNwoRArK4AKCM4I95WS+96Vzu0bFOf340TG92vwCfaAKQ yV7XNW0UzHDXQE5kLfPqDIY= =Wda3 -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--