Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2015 10:55:27 -0800
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Arseny Nasokin <eirnym@gmail.com>
Cc:        Ivan Klymenko <fidaj@ukr.net>, Glen Barber <gjb@freebsd.org>, freebsd-current@freebsd.org, Allan Jude <allanjude@freebsd.org>, Jung-uk Kim <jkim@freebsd.org>
Subject:   Re: r279278 failed to build (yacc: maximum table size exceeded)
Message-ID:  <8E4B6A07-BEB7-46B9-BFD2-0B3F33162760@gmail.com>
In-Reply-To: <CAO8GK0oQ6ZkBV93ioO1n-YRbOn2ffW3AoyQXxumhWiicYNPHww@mail.gmail.com>
References:  <CAO8GK0rbMADtgY7-y8aLOy8rpaSeXOuftZXUYFSaZ8xOTh45kQ@mail.gmail.com> <20150225154327.GD1161@hub.FreeBSD.org> <20150225182201.216f6fee@nonamehost.local> <54EE05EA.3030509@FreeBSD.org> <CAO8GK0oQ6ZkBV93ioO1n-YRbOn2ffW3AoyQXxumhWiicYNPHww@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_816DCDEA-70F7-4663-9299-CF860D3CACF7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On Feb 25, 2015, at 10:51, Arseny Nasokin <eirnym@gmail.com> wrote:

> On 25 February 2015 at 20:27, Jung-uk Kim <jkim@freebsd.org> wrote:
>=20
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>=20
>> On 02/25/2015 11:22, Ivan Klymenko wrote:
>>> =D0=92 Wed, 25 Feb 2015 15:43:27 +0000 Glen Barber <gjb@FreeBSD.org>
>>> =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
>>>=20
>>>> On Wed, Feb 25, 2015 at 07:32:45PM +0400, Arseny Nasokin wrote:
>>>>> I have clean svn tree with base/head branch. I try to build
>>>>> world, but I have some mysterious bugs. The latest is yacc
>>>>> failed to make c file on phase 4.3:
>>>>>=20
>>>>> =3D=3D=3D> usr.sbin/acpi/iasl (depend) m4 -P
>>>>> =
-I/usr/src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler
>>>>>=20
>>>>>=20
>>=20
>> =
/usr/src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler/aslpa=
rser.y
>>>>>> aslcompiler.y
>>>>> yacc -d -pAslCompiler -oaslcompilerparse.c aslcompiler.y yacc:
>>>>> 89 shift/reduce conflicts. yacc: f - maximum table size
>>>>> exceeded *** Error code 2
>>>>>=20
>>>>> /etc/make.conf is /dev/null. I've also tried empty
>>>>> /etc/src.conf with no luck.
>>>>>=20
>>>>=20
>>>> Out of curiosity, is your src tree mounted via NFS?
>>>>=20
>>>> Glen
>>>>=20
>>>=20
>>> I have a similar problem on revision /usr/src # svn info Path: .
>>> Working Copy Root Path: /usr/src URL:
>>> svn://svn.freebsd.org/base/head Relative URL: ^/head Repository
>>> Root: svn://svn.freebsd.org/base Repository UUID:
>>> ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 279213 Node Kind:
>>> directory Schedule: normal Last Changed Author: glebius Last
>>> Changed Rev: 279213 Last Changed Date: 2015-02-23 20:57:09 +0200
>>> (Mon, 23 Feb 2015)
>>>=20
>>> http://pastebin.com/FuAUkBmX
>>>=20
>>> Source tree is on the zfs /usr/src # zfs list zroot/usr/src NAME
>>> USED  AVAIL  REFER  MOUNTPOINT zroot/usr/src  1.35G   408G  1.35G
>>> /usr/src
>>>=20
>>> what is most surprising, the same revision successfully building
>>> for the other 2 computers, including amd64|zfs and i386|ufs.
>>=20
>> 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:
>>=20
>> https://svnweb.freebsd.org/changeset/base/278975
>>=20
>> For building from old head (pre-r274460), you have to manually
>> bootstrap yacc first, e.g., something like this:
>>=20
>> cd /usr/src/usr.bin/yacc
>> make clean cleandepend
>> make all && make install
>> make clean cleandepend
>> cd /usr/src
>> make buildworld
>>=20
>> Jung-uk Kim
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2
>>=20
>> iQEcBAEBCAAGBQJU7gXkAAoJEHyflib82/FGAsMH/iw2oNbyOPY7t/GIm+7QpqKS
>> 4jOZisFY9WD8UCpziqwnp5Ia1A4YC4rn7W5G6wKALHMTuo3kT8lFEWV5sIVhc0dm
>> 7to624zTVsNZqBhCFODRMZSXSlpMNCkjWtixGT1spEmyUAeKSEq5dPLaj3JyOOUw
>> XvZbY6l4f/jFr+68z/uIHRJi3NbP5SODIYuUanO7X0nVuxI0PQNE45o3p2dj7lRJ
>> 9eV0G5/SJUT8uWSuXy2kOY+TZWAk8VTTz/nb+krKPtwBdsv+nhSu3NDuaTJQk4gm
>> KaA+FaOgP/vhyxrF61qBOVq+MDy66/XuU4s/9IKrRoeUrZX0j5X4JoGC1p2+cgU=3D
>> =3DlpVt
>> -----END PGP SIGNATURE-----
>>=20
>=20
>=20
> Hi, guys,
>=20
> I've found the fix by forcing to add yacc(1) to bootstrap build.
>=20
> Makefile.inc1, line 1277:
>=20
> if ${BOOTSTRAPPING} < 1001506
> _yacc=3D      lib/liby \
>=20
> change to:
>=20
> if ${BOOTSTRAPPING} < 1201506 ## It is for test purposes only!!!
> _yacc=3D      lib/liby \

It takes a few seconds to build this on my laptop =E2=80=94 can we just =
explicitly turn this on to be sure we=E2=80=99re using the right thing?

% (cd lib/liby; time sh -c 'make obj; make depend; make all')

real    0m0.326s
user    0m0.031s
sys     0m0.111s

% (cd usr.bin/yacc/; time sh -c 'make obj; make depend; make all')

real    0m3.431s
user    0m2.631s
sys     0m0.363s

With me parallelizing bootstrap-tools on HEAD it should be less of an =
issue stacking on items like this.

Thanks!

--Apple-Mail=_816DCDEA-70F7-4663-9299-CF860D3CACF7
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJU7hqfAAoJEMZr5QU6S73eUcsH/Rgv9iGaWT7mUU4ICZABMbSA
hhJab5iohrXB5H/I2KnMPyllMA2or5SpuNF7ZB/saKmWfQyF6Dd1DgG4MV3K6052
kee+MZ8TLckV4tRKdD3Xp3qnVPXZ/VwqB4pmkcyUx2mVaBEJOX6a88lfcQHoi2PQ
izDJa9yLSB3DhJp1S8AEL+hIXipS6r+DvMGgDsEeaQFYPooHQXk3SnkCQ87HZd2g
KrJSUQFn1p9UUw3lf52rOFqg88yhFgBUDYuAF/bvz7NC0+GWsLYVaGDccxZG6fyj
rewvyX4A2HGX7L3A8bcWh4iF6zXKtbtxcKjXPZTCWFHABLLfU5FGmwEyVARgXJE=
=0kgZ
-----END PGP SIGNATURE-----

--Apple-Mail=_816DCDEA-70F7-4663-9299-CF860D3CACF7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E4B6A07-BEB7-46B9-BFD2-0B3F33162760>