Date: Thu, 5 Feb 2004 16:27:54 +0200 From: Ruslan Ermilov <ru@freebsd.org> To: Mattias Larsson <sparhawk@beyond.nu> Cc: current@freebsd.org Subject: Re: Strange error kills make world for at least 2 days. Message-ID: <20040205142754.GA17770@FreeBSD.org.ua> In-Reply-To: <20040205140305.E23F943D53@mx1.FreeBSD.org> References: <20040205135434.GA17443@FreeBSD.org.ua> <20040205140305.E23F943D53@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040205142754.GA17770>