From nobody Tue Feb 8 18:14:57 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 2ED6C19C39A0 for ; Tue, 8 Feb 2022 18:15:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JtWQ428t5z3Pch for ; Tue, 8 Feb 2022 18:15:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vk1-xa2f.google.com with SMTP id u82so725527vkb.11 for ; Tue, 08 Feb 2022 10:15:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X/WxEki6ubqSZP99J8mKjwxAWD28QWXiWfp202qNSgY=; b=OOf2yJlhKqzFWKnppdZ+MhOHYdvvgTw6ovvN3OA50yiotXvVkfb1IF3uvhtZA3LNDo b0XahHP4kwGYe1quXYYNVQjqR9P9dhYG0X9MSKgQ1eYfybhGHnXq/GiM0aZLPEDcGH5M rNbdWh8DVbYkGt8QJ16ZZHSs0zkyXcNMeOT99vP040Pb9wVWlxzwt2Nx9RbLTyXgZrOP /mlAmhB5qY4re1wcGGPDAqkTK6dyKLWK0zGsSETrwX5fcfSHGJdpYenWN3qnM/1+8iZu JXyWaM2PZx8fDjrdD5yWjlBDAIX2vzoqLVTC6wNOnP4DhfzdvP1DGnhbFd/7qYjwsNTo gyPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=X/WxEki6ubqSZP99J8mKjwxAWD28QWXiWfp202qNSgY=; b=1CnJI5BQCMrUNlsOBUqZBtWCY7l+7kP8U1ntAQLEUSCa2JaF4JLf0wupvmXUSxfs4n My2PhKZYFjbRHpvQDy7tk3Gs3PX9lQimt6Xc+gcOoDHA3bRgCJH82R5U0YtaVRm//CQ3 vLlg7hcCp14bfvxQY//7VjQBEPxta1ttHyTbCaNSr1Fx2v+JWQ4D9T0x2TUwCL0yL+RU sI6A36VDC8vimlWpoG+b4qF77MT+SpsIgEqvMF72VaBOGTpNql6bavy2A3NZNKaQIaH7 XKMvWSQIqMtEd7mH4OBxS8HLsWJAAdpCNaRY5LLo2r2QESJ1uaTRuOBYgZjdfoyEZRTn YvIA== X-Gm-Message-State: AOAM532fwd82Tk00fROQXJoMlRp27dt45r6m4awYdiwPkg5bnsldB6H/ B8YEp4wcvDhI6TNVqc1hb2ZR1MUpuX0yvRu31+6vWLZQS1g= X-Google-Smtp-Source: ABdhPJzgMF1l16DQ9GtH0zadj4AFPsgOSdcc0nQjAg5YtJnxuL5F8CiUxO59fKX41tyw11AQZ8TMxRLVn9F6daoXfLE= X-Received: by 2002:a05:6122:130e:: with SMTP id e14mr2099665vkp.26.1644344107461; Tue, 08 Feb 2022 10:15:07 -0800 (PST) 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 References: <0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com> <9955.1644342979@kaos.jnpr.net> In-Reply-To: <9955.1644342979@kaos.jnpr.net> From: Warner Losh Date: Tue, 8 Feb 2022 11:14:57 -0700 Message-ID: Subject: Re: buildworld failed To: "Simon J. Gerraty" Cc: George Abdelmalik , FreeBSD Current Content-Type: multipart/alternative; boundary="0000000000006a118605d785b2a2" X-Rspamd-Queue-Id: 4JtWQ428t5z3Pch X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=OOf2yJlh; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::a2f) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::a2f:from]; MLMMJ_DEST(0.00)[freebsd-current]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --0000000000006a118605d785b2a2 Content-Type: text/plain; charset="UTF-8" On Tue, Feb 8, 2022 at 10:56 AM 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 > > > > 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 > > > > 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 > > > > 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 > > > > > > > > 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). > > The sys subdir does not exist. > Why does it exist for me, though? What's making it for me and not for the OP? > Best bet would be to avoid the need: > Oh, I like this and I agree. Do you want to commit, or should I do the honors? Warner > diff --git a/tools/build/test-includes/Makefile > b/tools/build/test-includes/Makefile > index 3ae39a2cb61..eb9016ecc03 100644 > --- a/tools/build/test-includes/Makefile > +++ b/tools/build/test-includes/Makefile > @@ -24,11 +24,11 @@ CFLAGS.event.c= -D_WANT_KEVENT32 > -D_WANT_FREEBSD11_KEVENT > > .include "badfiles.inc" > > -.for h in ${HDRS} > +.for h c in ${HDRS:@x@$x ${x:S,/,_,g:R}.c@} > .if !${BADHDRS:M${h}} > -SRCS+= ${h:R}.c > -CLEANFILES+=${h:R}.c > -${h:R}.c: > +SRCS+= $c > +CLEANFILES+=$c > +$c: > echo "#include <$h>" > ${.TARGET} > .endif > .endfor > > so you get: > > 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 > > etc > --0000000000006a118605d785b2a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, Feb 8, 2022 at 10:56 AM Simon= J. Gerraty <sjg@juniper.net> = wrote:
Warner Lo= sh <imp@bsdimp.com> wrote:
> --- sys/abi_compat.c ---
> echo "#include <sys/abi_compat.h>" > sys/abi_compat= .c
> sh: cannot create sys/abi_compat.c: No such file or directory
> *** [sys/abi_compat.c] Error code 2
>
> make[4]: stopped in /usr/src/tools/build/test-includes
> --- sys/acct.c ---
> echo "#include <sys/acct.h>" > sys/acct.c
> sh: cannot create sys/acct.c: No such file or directory
> *** [sys/acct.c] Error code 2
>
> make[4]: stopped in /usr/src/tools/build/test-includes
> --- sys/aio.c ---
> echo "#include <sys/aio.h>" > sys/aio.c
> sh: cannot create sys/aio.c: No such file or directory
> *** [sys/aio.c] Error code 2
>
> make[4]: stopped in /usr/src/tools/build/test-includes
> --- sys/acl.c ---
> echo "#include <sys/acl.h>" > sys/acl.c
> sh: cannot create sys/acl.c: No such file or directory
> *** [sys/acl.c] Error code 2
>
>
>
> Same here for me for the past couple of weeks. Haven't been able t= o
> 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).

The sys subdir does not exist.

Why does= it exist for me, though? What's making it for me and not for the OP?
=C2=A0
Best bet would be to avoid the need:

Oh= , I like this and I agree. Do you want to commit, or should I do the honors= ?

Warner
=C2=A0
diff --git a/tools/build/test-includes/Makefile b/tools/build/test-includes= /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=C2=A0 =C2=A0 =C2=A0-D_WANT_KEVENT32 -= D_WANT_FREEBSD11_KEVENT

=C2=A0.include "badfiles.inc"

-.for h in ${HDRS}
+.for h c in ${HDRS:@x@$x ${x:S,/,_,g:R}.c@}
=C2=A0.if !${BADHDRS:M${h}}
-SRCS+=3D ${h:R}.c
-CLEANFILES+=3D${h:R}.c
-${h:R}.c:
+SRCS+=3D $c
+CLEANFILES+=3D$c
+$c:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 echo "#include <$h>" > ${.TA= RGET}
=C2=A0.endif
=C2=A0.endfor

so you get:

echo "#include <sys/abi_compat.h>" > sys_abi_compat.c echo "#include <sys/acct.h>" > sys_acct.c
echo "#include <sys/acl.h>" > sys_acl.c
echo "#include <sys/aio.h>" > sys_aio.c
echo "#include <sys/alq.h>" > sys_alq.c
echo "#include <sys/apm.h>" > sys_apm.c
echo "#include <sys/arb.h>" > sys_arb.c
echo "#include <sys/asan.h>" > sys_asan.c
echo "#include <sys/assym.h>" > sys_assym.c

etc
--0000000000006a118605d785b2a2--