From owner-freebsd-current@FreeBSD.ORG Wed Feb 25 21:50:10 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1721708; Wed, 25 Feb 2015 21:50:10 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84EABE1B; Wed, 25 Feb 2015 21:50:10 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E0A32B945; Wed, 25 Feb 2015 16:50:08 -0500 (EST) From: John Baldwin To: freebsd-current@freebsd.org Subject: Re: r279278 failed to build (yacc: maximum table size exceeded) Date: Wed, 25 Feb 2015 16:12:24 -0500 Message-ID: <2780435.L8le27hzJU@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: <54EE2D68.9050209@FreeBSD.org> References: <54EE2D68.9050209@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 25 Feb 2015 16:50:09 -0500 (EST) Cc: Ivan Klymenko , Glen Barber , Arseny Nasokin , Allan Jude , Jung-uk Kim X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-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: Wed, 25 Feb 2015 21:50:10 -0000 On Wednesday, February 25, 2015 03:15:36 PM Jung-uk Kim wrote: > On 02/25/2015 14:59, Arseny Nasokin wrote: > > On 25 February 2015 at 22:14, Jung-uk Kim > > wrote: > > > > On 02/25/2015 14:05, Glen Barber wrote: > >> On Wed, Feb 25, 2015 at 10:51:31PM +0400, Arseny Nasokin wrote: > >>> On 25 February 2015 at 20:27, Jung-uk Kim > > > > > > > >>> wrote: > >>>> Your installed yacc(1) is too old, i.e., your world was > >>>> built from head before r274460. FYI, this commit fixes the > >>>> above problem for building from stable: > >>>> > >>>> https://svnweb.freebsd.org/changeset/base/278975 > >>>> > >>>> For building from old head (pre-r274460), you have to > >>>> manually bootstrap yacc first, e.g., something like this: > >>>> > >>>> cd /usr/src/usr.bin/yacc make clean cleandepend make all && > >>>> make install make clean cleandepend cd /usr/src make > >>>> buildworld > >>> > >>> Hi, guys, > >>> > >>> I've found the fix by forcing to add yacc(1) to bootstrap > >>> build. > >>> > >>> Makefile.inc1, line 1277: > >>> > >>> if ${BOOTSTRAPPING} < 1001506 _yacc= lib/liby \ > >>> > >>> change to: > >>> > >>> if ${BOOTSTRAPPING} < 1201506 ## It is for test purposes > >>> only!!! _yacc= lib/liby \ > >> > >> This can be set to 1001507 now; __FreeBSD_version was bumped > >> earlier today. > > > > Nope, 1001506 is correct, i.e., the change was MFC'ed to stable/10 > > and __FreeBSD_version was bumped to reflect it. > > > > https://svnweb.freebsd.org/changeset/base/277087 > > > > Jung-uk Kim > > > > > > Jung, > > > > I have FreeBSD 11.0-CURRENT r265265 with OSRELDATE 1100020 and > > invalid YACC. So This conditional expression must be fixed to check > > if this 11.x and yacc is not changed. > > Wow, that's more than 9-month old now. > > > In my hypothetical "patch" I set OSRELDATE to invalid abstract > > future version, because it's only concept and I have no time to fix > > it correctly now. > > If you insist, you can try this: > > --- Makefile.inc1 > +++ Makefile.inc1 > @@ -1274,7 +1274,8 @@ > _awk= usr.bin/awk > .endif > > -.if ${BOOTSTRAPPING} < 1001506 > +.if ${BOOTSTRAPPING} < 1001506 || \ > + (${BOOTSTRAPPING} >= 1100000 && ${BOOTSTRAPPING} < 1100046) > _yacc= lib/liby \ > usr.bin/yacc > > (but I won't commit it.) Maybe just make the check always be < 1100046? It doesn't really hurt to build yacc on more recent 10 stable does it? -- John Baldwin