Date: Tue, 18 Jun 2019 10:44:44 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Ian Lepore <ian@freebsd.org>, koobs@FreeBSD.org, Michael Tuexen <tuexen@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: error: yacc.h: No such file or directory [patch/workaround] Message-ID: <e18b6431-3ed6-5322-f637-0af267a2df5f@FreeBSD.org> In-Reply-To: <919c8e9795e842a8fff77941664a087a9c9aa152.camel@freebsd.org> References: <0737312F-50AE-4526-B201-E62DB8949612@freebsd.org> <4b1f9f81-6463-c1bd-30a9-14aed49fc038@FreeBSD.org> <de47d99e-a38e-2b2f-8888-896e354adda9@FreeBSD.org> <919c8e9795e842a8fff77941664a087a9c9aa152.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qSvbgwsPKgcMGpIWKoRzsKlJKWpzi52px Content-Type: multipart/mixed; boundary="kllavGn5zwpbGxGraRVl6rdnNbE38DZza"; protected-headers="v1" From: Bryan Drewery <bdrewery@FreeBSD.org> To: Ian Lepore <ian@freebsd.org>, koobs@FreeBSD.org, Michael Tuexen <tuexen@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Message-ID: <e18b6431-3ed6-5322-f637-0af267a2df5f@FreeBSD.org> Subject: Re: error: yacc.h: No such file or directory [patch/workaround] References: <0737312F-50AE-4526-B201-E62DB8949612@freebsd.org> <4b1f9f81-6463-c1bd-30a9-14aed49fc038@FreeBSD.org> <de47d99e-a38e-2b2f-8888-896e354adda9@FreeBSD.org> <919c8e9795e842a8fff77941664a087a9c9aa152.camel@freebsd.org> In-Reply-To: <919c8e9795e842a8fff77941664a087a9c9aa152.camel@freebsd.org> --kllavGn5zwpbGxGraRVl6rdnNbE38DZza Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/18/2019 10:02 AM, Ian Lepore wrote: > On Tue, 2019-06-18 at 09:51 -0700, Bryan Drewery wrote: >> On 6/18/2019 3:56 AM, Kubilay Kocak wrote: >>> Have seen another report on Twitter yesterday. Didn't see a full >>> build >>> log, but theirs was had apparently without -j, apparently on June >>> 14 >>> sources: >>> >>> Error: >>> /usr/src/usr.bin/mkesdb/lex.1:46:10: fatal error: 'yacc.h' file not >>> found >>> >>> 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 >> >> Even -j1 should avoid it. For some reason I am only seeing it without >> any -j flag at all. >> >> I should have a fix in soon. This patch fixes it and allows bin/sh to still build right. I need to test further before committing though. http://people.freebsd.org/~bdrewery/patches/dep-headers.diff That or -j1 is a simple workaround. >> >=20 > There's a subtle difference between -j1 and no -j at all, having to do > with running in "compatibility mode". I forget the details, but I > remember being burned by the difference once. :) >=20 > -- Ian >=20 Yeah fundamentally this makes sense. There's no dependency defined to get yacc.h built before lex.o. So the oddness is actually that -j/job mode gets the order right by accident and that it has a different order than -B. Shrug. In bsd.prog.mk historically was this: =2Eif defined(PROG) && !exists(${.OBJDIR}/${DEPENDFILE}) ${OBJS}: ${SRCS:M*.h} =2Eendif I changed this mechanism to use OBJS_DEPEND_GUESS which allows a list of dependencies to apply by checking for the existence of the .depend.foo file in 1 place. I ended up removing the addition of the headers in r349061 though while targeting bin/sh build-tools cyclic dependency probl= em. --=20 Regards, Bryan Drewery --kllavGn5zwpbGxGraRVl6rdnNbE38DZza-- --qSvbgwsPKgcMGpIWKoRzsKlJKWpzi52px Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE+Rc8ssOq6npcih8JNddxu25Gl88FAl0JIw1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5 MTczQ0IyQzNBQUVBN0E1QzhBMUYwOTM1RDc3MUJCNkU0Njk3Q0YACgkQNddxu25G l89/mAf/Sy4vA39ZiFdKRKyYDBFeFpvx7OAeHlDSgNYl8e5fqCvWERdhu/YUKWoY EMuOXXj/sUnZcN7mF4AVsCY2bybCrWab4tsE82WY6W8WAUwPUzPvaxe1bc+4PfVW 3r543Nk/GLvhOWRMdHJwr/TIwiXp3i0EeE/Zk5kdiDpmdXD/Yktq1rG2HTB/VRWK PzRSvYcq4gBoICazgjauknB4SOsd/YavLVMnudEkTeEmat09NxWluklWEVByKxU/ cwqscoQtUVgkYEBlLH81wpjk492yZcurX5t5Pi0gjUUVTBFTP4JdY50gufIcgfZr SqTfAiWrmZcX04JqtGMnfzT43rnMuw== =Bvf0 -----END PGP SIGNATURE----- --qSvbgwsPKgcMGpIWKoRzsKlJKWpzi52px--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e18b6431-3ed6-5322-f637-0af267a2df5f>