Date: Wed, 08 Nov 2023 18:05:21 -0500 From: "Colin S. Gordon" <csgordon@fastmail.com> To: freebsd-hackers@freebsd.org Subject: Re: Help cross-building kernel from macos Message-ID: <6cfecbe9-4fae-43e4-8ab2-d822f1d17e20@app.fastmail.com> In-Reply-To: <8f128d21-4b61-41cc-be00-3d9b48879f98@FreeBSD.org> References: <f42da895-b8e3-49a8-826a-d448103b047b@app.fastmail.com> <8f128d21-4b61-41cc-be00-3d9b48879f98@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso= Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Wed, Nov 8, = 2023, at 16:13, Kyle Evans wrote:<br></div><blockquote type=3D"cite" id=3D= "qt" style=3D""><div>On 11/8/23 13:54, Colin S. Gordon wrote:<br></div><= div>> [... snip ...]<br></div><div><br></div><div>Just a couple of mi= ssing dependencies; this seems to do it for me [0], <br></div><div>= could probably still use a bit of cleanup.<br></div><div><br></div><div>= diff --git a/Makefile.inc1 b/Makefile.inc1<br></div><div>index c1c0b56ef= ..d9a772a00 100644<br></div><div>--- a/Makefile.inc1<br></div><div>+++ b= /Makefile.inc1<br></div><div>@@ -2442,6 +2442,9 @@ _gensnmptree=3D <a hr= ef=3D"http://usr.sbin/bsnmpd/gensnmptree">usr.sbin/bsnmpd/gensnmptree</a= ><br></div><div> _clang_tblgen=3D \<br></div><div> lib/clan= g/libllvmminimal \<br></div><div> <a href=3D"http://usr.bin/clang/= llvm-tblgen">usr.bin/clang/llvm-tblgen</a><br></div><div>+.if ${BOOTSTRA= PPING} < 1300030<br></div><div>+${_bt}-<a href=3D"http://usr.bin/clan= g/llvm-tblgen">usr.bin/clang/llvm-tblgen</a>: ${_bt}-lib/libzstd<br></di= v><div>+.endif<br></div><div> .if ${MK_CLANG_BOOTSTRAP} !=3D "no" = || ${MK_CLANG} !=3D "no" || \<br></div><div> &nbs= p; ${MK_LLDB} !=3D "no"<br></div><div> _clang_tblgen+=3D lib/clang= /libclangminimal<br></div><div>@@ -2475,6 +2478,7 @@ _kerberos5_bootstra= p_tools=3D \<br></div><div> kerberos5/tools/slc \<br></div><div>&= nbsp; <a href=3D"http://usr.bin/compile_et">usr.bin/compile_et</a><br></= div><div><br></div><div>+${_bt}-kerberos5/lib/libroken: ${_bt}-lib/libcr= ypt<br></div><div> .ORDER: ${_kerberos5_bootstrap_tools:C/^/${_bt}= -/g}<br></div><div> .for _tool in ${_kerberos5_bootstrap_tools}<br= ></div><div> ${_bt}-${_tool}: ${_bt}-<a href=3D"http://usr.bin/yac= c">usr.bin/yacc</a> ${_bt_lex_depend}<br></div><div><br></div><div>[0]&n= bsp;<a href=3D"https://termbin.com/oszy">https://termbin.com/oszy</a><br= ></div><div><br></div></blockquote><div><br></div><div><div>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).<br></div><div><br>= </div><div>-Colin<br></div></div><div><br></div></body></html> --32f8a548ff604a3799d30b6dc24ed05a--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6cfecbe9-4fae-43e4-8ab2-d822f1d17e20>