From nobody Tue Feb 08 18:30:31 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D3A5319A4ED4 for ; Tue, 8 Feb 2022 18:30:39 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JtWly4gZzz3lgl for ; Tue, 8 Feb 2022 18:30:38 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id ECB313C0199; Tue, 8 Feb 2022 18:30:31 +0000 (UTC) Date: Tue, 8 Feb 2022 18:30:31 +0000 From: Brooks Davis To: "Simon J. Gerraty" Cc: Warner Losh , George Abdelmalik , FreeBSD Current Subject: Re: buildworld failed Message-ID: <20220208183031.GB31429@spindle.one-eyed-alien.net> References: <0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com> <9955.1644342979@kaos.jnpr.net> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <9955.1644342979@kaos.jnpr.net> User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 4JtWly4gZzz3lgl X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net X-Spamd-Result: default: False [-3.84 / 15.00]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[brooks]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.941]; MLMMJ_DEST(0.00)[freebsd-current]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; RCVD_COUNT_ZERO(0.00)[0]; SIGNED_PGP(-2.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net] X-ThisMailContainsUnwantedMimeParts: N --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 08, 2022 at 09:56:19AM -0800, Simon J. Gerraty wrote: > Warner Losh wrote: > > --- sys/abi_compat.c --- > > echo "#include " > sys/abi_compat.c > > sh: cannot create sys/abi_compat.c: No such file or directory > > *** [sys/abi_compat.c] Error code 2 > >=20 > > make[4]: stopped in /usr/src/tools/build/test-includes > > --- sys/acct.c --- > > echo "#include " > sys/acct.c > > sh: cannot create sys/acct.c: No such file or directory > > *** [sys/acct.c] Error code 2 > >=20 > > make[4]: stopped in /usr/src/tools/build/test-includes > > --- sys/aio.c --- > > echo "#include " > sys/aio.c > > sh: cannot create sys/aio.c: No such file or directory > > *** [sys/aio.c] Error code 2 > >=20 > > make[4]: stopped in /usr/src/tools/build/test-includes > > --- sys/acl.c --- > > echo "#include " > sys/acl.c > > sh: cannot create sys/acl.c: No such file or directory > > *** [sys/acl.c] Error code 2 > >=20 > >=20 > >=20 > > Same here for me for the past couple of weeks. Haven't been able to > > identify why it fails. My hunch was that a particular objdir wasn't > > being created. As a workaround I edited the Makefile.inc1 to remove > > the test-includes command (line 1128 I think). >=20 > The sys subdir does not exist. > Best bet would be to avoid the need: >=20 > diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includ= es/Makefile > index 3ae39a2cb61..eb9016ecc03 100644 > --- a/tools/build/test-includes/Makefile > +++ b/tools/build/test-includes/Makefile > @@ -24,11 +24,11 @@ CFLAGS.event.c=3D -D_WANT_KEVENT32 -D_WANT_FREEBSD11_= KEVENT > =20 > .include "badfiles.inc" > =20 > -.for h in ${HDRS} > +.for h c in ${HDRS:@x@$x ${x:S,/,_,g:R}.c@} > .if !${BADHDRS:M${h}} > -SRCS+=3D ${h:R}.c > -CLEANFILES+=3D${h:R}.c > -${h:R}.c: > +SRCS+=3D $c > +CLEANFILES+=3D$c > +$c: > echo "#include <$h>" > ${.TARGET} > .endif > .endfor >=20 > so you get: >=20 > echo "#include " > sys_abi_compat.c > echo "#include " > sys_acct.c > echo "#include " > sys_acl.c > echo "#include " > sys_aio.c > echo "#include " > sys_alq.c > echo "#include " > sys_apm.c > echo "#include " > sys_arb.c > echo "#include " > sys_asan.c > echo "#include " > sys_assym.c >=20 > etc >=20 This would be fine, but should not be necessicary. The sys subdir should be created by AUTOOBJ. -- Brooks --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJiArbHAAoJEKzQXbSebgfACOkH/0OO08RALO6u58JAV8dphUNY T/5ma3hfRQjrQ+tcDPwZGjIUiN2Vc9ybGqrN6dbvXGY5nw/boGwvbbYZ36ahEjiP gymuv1aDNhk2oA3I8DVpub8G9qXyPTeNAL28CTHYYcUoD4WYwuJi+0ECU+mH7vB5 IDVOIzZoPw+9AhSGJCunQxPaCFUKIyUvqysd2Nzp02m0SZ6ELHTGhQVt4AecIpBj XE3AcjoLepg8u74PNx7rxJeZ5XRJcLhZl/1SnOGbiuTBNirYM6xNqM6vmSzBtQWn nFtgKq28I9ijB8U4WoSOS6C+DYDmn5ro1HxrNWugQfK0ok7a8864aE4o5iG/sC8= =dh4R -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--