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
[-- Attachment #1 --]
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
[-- Attachment #2 --]
<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>On Wed, Nov 8, 2023, at 16:13, Kyle Evans wrote:<br></div><blockquote type="cite" id="qt" style=""><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 missing 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= <a href="http://usr.sbin/bsnmpd/gensnmptree">usr.sbin/bsnmpd/gensnmptree</a><br></div><div> _clang_tblgen= \<br></div><div> lib/clang/libllvmminimal \<br></div><div> <a href="http://usr.bin/clang/llvm-tblgen">usr.bin/clang/llvm-tblgen</a><br></div><div>+.if ${BOOTSTRAPPING} < 1300030<br></div><div>+${_bt}-<a href="http://usr.bin/clang/llvm-tblgen">usr.bin/clang/llvm-tblgen</a>: ${_bt}-lib/libzstd<br></div><div>+.endif<br></div><div> .if ${MK_CLANG_BOOTSTRAP} != "no" || ${MK_CLANG} != "no" || \<br></div><div> ${MK_LLDB} != "no"<br></div><div> _clang_tblgen+= lib/clang/libclangminimal<br></div><div>@@ -2475,6 +2478,7 @@ _kerberos5_bootstrap_tools= \<br></div><div> kerberos5/tools/slc \<br></div><div> <a href="http://usr.bin/compile_et">usr.bin/compile_et</a><br></div><div><br></div><div>+${_bt}-kerberos5/lib/libroken: ${_bt}-lib/libcrypt<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="http://usr.bin/yacc">usr.bin/yacc</a> ${_bt_lex_depend}<br></div><div><br></div><div>[0] <a href="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 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).<br></div><div><br></div><div>-Colin<br></div></div><div><br></div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6cfecbe9-4fae-43e4-8ab2-d822f1d17e20>
