Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2019 06:45:10 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        freebsd-current@freebsd.org, Michael Tuexen <tuexen@freebsd.org>, "koobs@freebsd.org" <koobs@FreeBSD.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: error: yacc.h: No such file or directory
Message-ID:  <BDC50C70-1F9F-46C3-95DE-24E234FF7FB2@cschubert.com>
In-Reply-To: <061907F0-D8FC-4AEA-AA8C-5928A09425E9@freebsd.org>
References:  <0737312F-50AE-4526-B201-E62DB8949612@freebsd.org> <4b1f9f81-6463-c1bd-30a9-14aed49fc038@FreeBSD.org> <061907F0-D8FC-4AEA-AA8C-5928A09425E9@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On June 18, 2019 6:24:36 AM PDT, Michael Tuexen <tuexen@freebsd=2Eorg> wrot=
e:
>> On 18=2E Jun 2019, at 12:56, Kubilay Kocak <koobs@FreeBSD=2Eorg> wrote:
>>=20
>> On 18/06/2019 5:42 pm, Michael Tuexen wrote:
>>> Dear all,
>>> I'm trying to run
>>> sudo make buildworld
>>> in a directory with r349168=2E
>>> The result is:
>>> cc  -O2 -pipe -I/usr/home/tuexen/head/usr=2Ebin/mkesdb_static
>-I/usr/home/tuexen/head/usr=2Ebin/mkesdb_static/=2E=2E/mkesdb=20
>-I/usr/home/tuexen/head/usr=2Ebin/mkesdb_static/=2E=2E/=2E=2E/lib/libc/ic=
onv  -g
>-MD  -MF=2Edepend=2Elex=2Eo -MTlex=2Eo -std=3Dgnu99   =20
>-I/usr/obj/usr/home/tuexen/head/powerpc=2Epowerpc64/tmp/legacy/usr/includ=
e
>-c lex=2Ec -o lex=2Eo
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:46:18: error: yacc=2Eh:=
 No
>such file or directory
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El: In function 'yylex':
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:60: error: 'R_LN'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:60: error: (Each
>undeclared identifier is reported only once
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:60: error: for each
>function it appears in=2E)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:72: error: 'yylval'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:73: error: 'L_IMM'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:76: error: 'R_NAME'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:77: error: 'R_ENCODING'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:78: error: 'R_VARIABLE'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:79: error: 'R_DEFCSID'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:80: error: 'R_INVALID'
>undeclared (first use in this function)
>>> /usr/home/tuexen/head/usr=2Ebin/mkesdb/lex=2El:88: error: 'L_STRING'
>undeclared (first use in this function)
>>> *** Error code 1
>>> Stop=2E
>>> make[3]: stopped in /usr/home/tuexen/head/usr=2Ebin/mkesdb_static
>>> *** Error code 1
>>> Stop=2E
>>> make[2]: stopped in /usr/home/tuexen/head
>>> *** Error code 1
>>> Stop=2E
>>> make[1]: stopped in /usr/home/tuexen/head
>>> *** Error code 1
>>> Stop=2E
>>> make: stopped in /usr/home/tuexen/head
>>> This is on a 64 bit PPC system=2E Doing sudo rm -rf /usr/obj does not
>resolve the issue=2E
>>> Any idea what is going wrong?
>>> Best regards
>>> Michael
>>=20
>> Have seen another report on Twitter yesterday=2E Didn't see a full
>build log, but theirs was had apparently without -j, apparently on June
>14 sources:
>>=20
>> Error:
>> /usr/src/usr=2Ebin/mkesdb/lex=2E1:46:10: fatal error: 'yacc=2Eh' file n=
ot
>found
>>=20
>> Have not heard back from them whether it continued after trying -j2
>but I did ask them to hit up freebsd-current if it continued to be an
>issue
>OK, I started the build again with -j 2 and it seems that the problem
>does not occur=2E
>
>Since I have been using make buildworld without -j n in the past on
>that machine, the
>problem seems to be introduced recently=2E Any idea what is the cause of
>the problem?
>
>Best regards
>Michael
>>=20
>
>_______________________________________________
>freebsd-current@freebsd=2Eorg mailing list
>https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-current
>To unsubscribe, send any mail to
>"freebsd-current-unsubscribe@freebsd=2Eorg"

This is a generated file=2E It would appear the make target to build yacc=
=2Eh hadn't run yet by the time the target that consumed the file ran=2E

I had a similar problem on Sunday=2E It wasn't yacc=2Eh but some other fil=
e, I cannot remember which=2E It occurred during one of four buildworlds=2E=
 Simply restarting the failed buildworld was enough to resolve it=2E

My hypothesis is a buildworld race=2E I wonder if some of the recent (over=
 the last week or two) makefile changes exacerbated this issue=2E


--=20
Pardon the typos and autocorrect, small keyboard in use=2E
Cheers,
Cy Schubert <Cy=2ESchubert@cschubert=2Ecom>
FreeBSD UNIX: <cy@FreeBSD=2Eorg> Web: http://www=2EFreeBSD=2Eorg

	The need of the many outweighs the greed of the few=2E



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BDC50C70-1F9F-46C3-95DE-24E234FF7FB2>