From nobody Wed Nov 8 23:05:21 2023 X-Original-To: freebsd-hackers@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 4SQgfy04mBz50k7N for ; Wed, 8 Nov 2023 23:05:46 +0000 (UTC) (envelope-from csgordon@fastmail.com) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SQgfx0Yqfz4pLJ for ; Wed, 8 Nov 2023 23:05:44 +0000 (UTC) (envelope-from csgordon@fastmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fastmail.com header.s=fm3 header.b=POPoGdJ0; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=Vrl4btAm; spf=pass (mx1.freebsd.org: domain of csgordon@fastmail.com designates 64.147.123.21 as permitted sender) smtp.mailfrom=csgordon@fastmail.com; dmarc=pass (policy=none) header.from=fastmail.com Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 1B34C32009AD for ; Wed, 8 Nov 2023 18:05:43 -0500 (EST) Received: from imap53 ([10.202.2.103]) by compute2.internal (MEProxy); Wed, 08 Nov 2023 18:05:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1699484742; x=1699571142; bh=8g YMZ2VpbxF9X4T/N7c/CT9MmH2I50jEpYcZF+nsDkk=; b=POPoGdJ0FekTE11X72 Ld78iDGn6STVRbYqs+8iRrbOuFtkcmmdNasekZ1o4BN5g2Qs2wB1lLlm32uPa96q ddfRFdZThg0ly0gpxTgQKdOBxbb+QM/n9EYbpSzlXUXGZCSBP1CQUO/RGZmnhpVh C82z1yBuMlvzkap6pxQwT60bUGwv9vrR4KU5Ni7U1kP8Mqy096xUqYJH2ZeY0PKh 1eEE0BEInCa572wlii4dpuWTCyQsQArjwtDr9NsEPtlHX75ufLpnxUvAc0YC03Qp eL/5tbu5hdKM6DdJdUVEJbycPnmc2b3VzPmXpKOngsW53xoBIObTYRMYhtWQQ/6g Gl3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1699484742; x=1699571142; bh=8gYMZ2VpbxF9X 4T/N7c/CT9MmH2I50jEpYcZF+nsDkk=; b=Vrl4btAmG3y7/hmwIgIgvqpjbk6yr H58w0ZcOQeShzFy97Fvw/y51UFoY+LkseABHGT7xIZkFlQZ/Hsah38sY6iIPaD+b RhO8ai6/mfmAFTqKzm1EdzEdrV8/e7x6IlEwf/j2/QHbLOLb/r8Amyqjrwe+5XX5 9NguCQ7UEfsIbQ73BWl4soN7JWz8niVLr8NNbuMUuwDnebPM6mLcON8rPyfFnjOa zOT2zlEn2ZpYahrdjNgYHifX1vextJvg791qXAunZ7IHHryYw3L3nRr6zmH6oFZy iLKgcqjtGFPJPuZnFkwkl8e7+U1xyd/4tlXbXZMq05pACilAtbdqr+klg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvtddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfveholhhinhcuufdrucfiohhrughonhdfuceotghsghho rhguohhnsehfrghsthhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepkedvgfeftd efkefgleeghffggfeuiefgleektefgleevlefhudekjeekkeevffdunecuffhomhgrihhn pehtvghrmhgsihhnrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheptghsghhorhguohhnsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i60c149f6:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 54E743640069; Wed, 8 Nov 2023 18:05:42 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1108-g3a29173c6d-fm-20231031.005-g3a29173c List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <6cfecbe9-4fae-43e4-8ab2-d822f1d17e20@app.fastmail.com> In-Reply-To: <8f128d21-4b61-41cc-be00-3d9b48879f98@FreeBSD.org> References: <8f128d21-4b61-41cc-be00-3d9b48879f98@FreeBSD.org> Date: Wed, 08 Nov 2023 18:05:21 -0500 From: "Colin S. Gordon" To: freebsd-hackers@freebsd.org Subject: Re: Help cross-building kernel from macos Content-Type: multipart/alternative; boundary=32f8a548ff604a3799d30b6dc24ed05a X-Spamd-Result: default: False [-3.29 / 15.00]; URI_COUNT_ODD(1.00)[9]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[fastmail.com,none]; NEURAL_HAM_SHORT(-0.21)[-0.206]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21]; R_DKIM_ALLOW(-0.20)[fastmail.com:s=fm3,messagingengine.com:s=fm3]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.21:from]; XM_UA_NO_VERSION(0.01)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; FREEMAIL_ENVFROM(0.00)[fastmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[fastmail.com]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[fastmail.com:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org] X-Rspamd-Queue-Id: 4SQgfx0Yqfz4pLJ X-Spamd-Bar: --- --32f8a548ff604a3799d30b6dc24ed05a Content-Type: text/plain On Wed, Nov 8, 2023, at 16:13, Kyle Evans wrote: > On 11/8/23 13:54, Colin S. Gordon wrote: > > [... snip ...] > > Just a couple of missing dependencies; this seems to do it for me [0], > could probably still use a bit of cleanup. > > diff --git a/Makefile.inc1 b/Makefile.inc1 > index c1c0b56ef..d9a772a00 100644 > --- a/Makefile.inc1 > +++ b/Makefile.inc1 > @@ -2442,6 +2442,9 @@ _gensnmptree= usr.sbin/bsnmpd/gensnmptree > _clang_tblgen= \ > lib/clang/libllvmminimal \ > usr.bin/clang/llvm-tblgen > +.if ${BOOTSTRAPPING} < 1300030 > +${_bt}-usr.bin/clang/llvm-tblgen: ${_bt}-lib/libzstd > +.endif > .if ${MK_CLANG_BOOTSTRAP} != "no" || ${MK_CLANG} != "no" || \ > ${MK_LLDB} != "no" > _clang_tblgen+= lib/clang/libclangminimal > @@ -2475,6 +2478,7 @@ _kerberos5_bootstrap_tools= \ > kerberos5/tools/slc \ > usr.bin/compile_et > > +${_bt}-kerberos5/lib/libroken: ${_bt}-lib/libcrypt > .ORDER: ${_kerberos5_bootstrap_tools:C/^/${_bt}-/g} > .for _tool in ${_kerberos5_bootstrap_tools} > ${_bt}-${_tool}: ${_bt}-usr.bin/yacc ${_bt_lex_depend} > > [0] https://termbin.com/oszy > Thanks! This seems to work for me for kernel-toolchain, then switching to a newer LLVM works around a RISC-V-specific failure in buildkernel, and it works! I'm still curious why the CI environment (and presumably others) don't need this patch; clearly there's some other divergence between the CI environment and my machine (and apparently Kyle's, too). -Colin --32f8a548ff604a3799d30b6dc24ed05a Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Wed, Nov 8, = 2023, at 16:13, Kyle Evans wrote:
On 11/8/23 13:54, Colin S. Gordon wrote:
<= div>> [... snip ...]

Just a couple of mi= ssing dependencies; this seems to do it for me [0], 
= could probably still use a bit of cleanup.

= diff --git a/Makefile.inc1 b/Makefile.inc1
index c1c0b56ef= ..d9a772a00 100644
--- a/Makefile.inc1
+++ b= /Makefile.inc1
@@ -2442,6 +2442,9 @@ _gensnmptree=3D usr.sbin/bsnmpd/gensnmptree
+.if ${BOOTSTRA= PPING} < 1300030
+${_bt}-usr.bin/clang/llvm-tblgen: ${_bt}-lib/libzstd
+.endif
  .if ${MK_CLANG_BOOTSTRAP} !=3D "no" = || ${MK_CLANG} !=3D "no" || \
    &nbs= p; ${MK_LLDB} !=3D "no"
  _clang_tblgen+=3D lib/clang= /libclangminimal
@@ -2475,6 +2478,7 @@ _kerberos5_bootstra= p_tools=3D \
  kerberos5/tools/slc \
&= nbsp; usr.bin/compile_et

+${_bt}-kerberos5/lib/libroken: ${_bt}-lib/libcr= ypt
  .ORDER: ${_kerberos5_bootstrap_tools:C/^/${_bt}= -/g}
  .for _tool in ${_kerberos5_bootstrap_tools}
  ${_bt}-${_tool}: ${_bt}-usr.bin/yacc ${_bt_lex_depend}



Thanks! This= seems to work for me for kernel-toolchain, then switching to a newer LL= VM works around a RISC-V-specific failure in buildkernel, and it works! = I'm still curious why the CI environment (and presumably others) don't n= eed this patch; clearly there's some other divergence between the CI env= ironment and my machine (and apparently Kyle's, too).

=
-Colin

--32f8a548ff604a3799d30b6dc24ed05a--