From nobody Fri Nov 10 11:38:27 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 4SRcKQ0YrRz50MwT for ; Fri, 10 Nov 2023 11:38:50 +0000 (UTC) (envelope-from bT.gm3cn11f30=a9rk3vyieijp=y6ow8j56yd@em790814.fubar.geek.nz) Received: from e2i147.smtp2go.com (e2i147.smtp2go.com [103.2.140.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SRcKM37rnz3bRc for ; Fri, 10 Nov 2023 11:38:46 +0000 (UTC) (envelope-from bT.gm3cn11f30=a9rk3vyieijp=y6ow8j56yd@em790814.fubar.geek.nz) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=smtpservice.net header.s=mgy720.a1-4.dyn header.b=y3ajpwuz; dkim=pass header.d=fubar.geek.nz header.s=s790814 header.b="ND0/LCYy"; spf=pass (mx1.freebsd.org: domain of "bT.gm3cn11f30=a9rk3vyieijp=y6ow8j56yd@em790814.fubar.geek.nz" designates 103.2.140.147 as permitted sender) smtp.mailfrom="bT.gm3cn11f30=a9rk3vyieijp=y6ow8j56yd@em790814.fubar.geek.nz"; dmarc=pass (policy=none) header.from=fubar.geek.nz DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=mgy720.a1-4.dyn; x=1699617226; h=Feedback-ID: X-Smtpcorp-Track:To:Date:Subject:Message-Id:From:Reply-To:Sender: List-Unsubscribe; bh=mj3MUWmIiewIeO1xmBWKxkHYP0nsuM9a5PEVHszDARg=; b=y3ajpwuz hPPTYAAmcXKdo0pKRgcUWePq2T4AWCXXVhwY7FQkf8fNZr2VjoNbaBTcfDArYKYGCXAh2AkrZTIFG FD0O7XK+LSf7uDeaxsWQwrdgjXnpaPKfpUJSSyyVMQ0sK0vIcqWWTBdSnqsphEPBWT6ybeEXp5h+4 Qdyxlk1ZKNf7F8uiEqDeFTJh4iYOBlMpYGdLPEyYr1C+DKiuEcSmJ00Rhkrv7panESho9sEi3pb+k 9Z+r6aF/YtWxYFc5co5fPdB/rn3Bc1hFuLvRts7iMY6HSbLoNSxlEZRJDtfgnRJcrhwH8x6YjVkdG hfQNH2knUR50qAeHqLRjB75CdA==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fubar.geek.nz; i=@fubar.geek.nz; q=dns/txt; s=s790814; t=1699616326; h=from : subject : to : message-id : date; bh=mj3MUWmIiewIeO1xmBWKxkHYP0nsuM9a5PEVHszDARg=; b=ND0/LCYy1LffsUfEPhxxT/ZOo2wA2u/Sorsejjfm7GJM97lzBFK3DOU4nPxg8wN19+oXQ +8oNqI6DQJTeZGBojVDl0v73W7IluRKkc6kT9p9yCBmoOt+MAvckeisCDANe8iMZv0AAho0 SYx6Ya1gXdvpy9KMrJ5vLbPnVwDixI9Mj9shD/FXvRx3tZ0GxkuHd9vAHFpo1sbQW/MkDb+ dVHvo8+6SUEE2U3ao+A5CZIAWn37MeUOGkczGrMVpCqmaEfLuDRbqUaILGLeh/GqwkPP2qw AKsADgv//hXa+hMEkOJ6zQiCeaJmDKSLWesyGx4bTd1iiXfPi0+YrvMbML3w== Received: from [10.139.162.187] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1r1PqR-Y8PJsD-CJ; Fri, 10 Nov 2023 11:38:39 +0000 Received: from [10.99.243.232] (helo=morbo.fubar.geek.nz) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96.1-S2G) (envelope-from ) id 1r1PqR-4XkYgP-0d; Fri, 10 Nov 2023 11:38:39 +0000 Received: from smtpclient.apple (cpc91210-cmbg18-2-0-cust37.5-4.cable.virginm.net [81.102.44.38]) by morbo.fubar.geek.nz (Postfix) with ESMTPSA id 77A4E2472C; Fri, 10 Nov 2023 11:38:38 +0000 (UTC) From: Andrew Turner Message-Id: <1562FCC3-A356-4493-8864-51F8ABECD7ED@fubar.geek.nz> Content-Type: multipart/alternative; boundary="Apple-Mail=_68F30E18-079B-4F95-B805-FB360A928101" 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 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Subject: Re: Help cross-building kernel from macos Date: Fri, 10 Nov 2023 11:38:27 +0000 In-Reply-To: Cc: "freebsd-hackers@freebsd.org" To: "Colin S. Gordon" References: X-Mailer: Apple Mail (2.3774.100.2.1.4) X-Smtpcorp-Track: 1r1eqR4bkYge0d.TsY9Qgch1oDRV Feedback-ID: 790814m:790814amQcrys:790814s8avsXpYgt X-Report-Abuse: Please forward a copy of this message, including all headers, to X-Spamd-Result: default: False [-2.28 / 15.00]; URI_HIDDEN_PATH(1.00)[http://usr.bin/clang/llvm-tblgen/.depend]; URI_COUNT_ODD(1.00)[7]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.980]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[fubar.geek.nz,none]; MV_CASE(0.50)[]; RWL_MAILSPIKE_EXCELLENT(-0.40)[103.2.140.147:from]; FORGED_SENDER(0.30)[andrew@fubar.geek.nz,bT.gm3cn11f30=a9rk3vyieijp=y6ow8j56yd@em790814.fubar.geek.nz]; RCVD_IN_DNSWL_MED(-0.20)[103.2.140.147:from]; R_SPF_ALLOW(-0.20)[+ip4:103.2.140.0/22]; R_DKIM_ALLOW(-0.20)[fubar.geek.nz:s=s790814]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_DKIM_PERMFAIL(0.00)[smtpservice.net:s=mgy720.a1-4.dyn]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[andrew@fubar.geek.nz,bT.gm3cn11f30=a9rk3vyieijp=y6ow8j56yd@em790814.fubar.geek.nz]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_MIXED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:23352, ipnet:103.2.140.0/22, country:US]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[smtpservice.net:~,fubar.geek.nz:+]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-hackers@FreeBSD.org]; FREEMAIL_TO(0.00)[fastmail.com]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4SRcKM37rnz3bRc X-Spamd-Bar: -- --Apple-Mail=_68F30E18-079B-4F95-B805-FB360A928101 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 8 Nov 2023, at 19:54, Colin S. Gordon = wrote: ... > =3D=3D=3D> lib/clang/libllvmminimal (obj,all,install) > =3D=3D=3D> usr.bin/clang/llvm-tblgen = (obj,all,install) > bmake[3]: = /Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/u= sr.bin/clang/llvm-tblgen/.depend = , 1: ignoring stale .depend = for = /Users/.../freebsd-obj//Users/.../freebsd-src/riscv.riscv64/tmp/legacy/usr= /lib/libz.a > bmake[3]: = /Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/u= sr.bin/clang/llvm-tblgen/.depend = , 1: ignoring stale .depend = for /usr/lib/libprivatezstd.a > ld: warning: directory not found for option = '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tool= s/lib/libthr' > ld: warning: directory not found for option = '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tool= s/lib/libz' > ld: warning: directory not found for option = '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tool= s/lib/libthr' > ld: library not found for -lprivatezstd > clang: error: linker command failed with exit code 1 (use -v to see = invocation) This should be fixed in = https://cgit.freebsd.org/src/commit/?id=3D83771b1914e182c6324839e05ff82ee6= f4a87c98. The tblgen tools don=E2=80=99t need to link against libzstd or = libz as they don=E2=80=99t use anything from these libraries. Andrew --Apple-Mail=_68F30E18-079B-4F95-B805-FB360A928101 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On 8 Nov = 2023, at 19:54, Colin S. Gordon <csgordon@fastmail.com> = wrote:
...
=3D=3D=3D> = lib/clang/libllvmminimal (obj,all,install)
=3D=3D=3D> usr.bin/clang/llvm-tblgen (obj,all,install)
bmake[3]: = /Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/<= a = href=3D"http://usr.bin/clang/llvm-tblgen/.depend">usr.bin/clang/llvm-tblge= n/.depend, 1: ignoring stale .depend for = /Users/.../freebsd-obj//Users/.../freebsd-src/riscv.riscv64/tmp/legacy/usr= /lib/libz.a
bmake[3]: = /Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/<= a = href=3D"http://usr.bin/clang/llvm-tblgen/.depend">usr.bin/clang/llvm-tblge= n/.depend, 1: ignoring stale .depend for = /usr/lib/libprivatezstd.a
ld: warning: directory not found for option = '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tool= s/lib/libthr'
ld: warning: directory not found for option = '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tool= s/lib/libz'
ld: warning: directory not found for option = '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tool= s/lib/libthr'
ld: library not found for = -lprivatezstd
clang: error: linker command failed with exit = code 1 (use -v to see = invocation)

This should be = fixed in https://cgit.freebsd.org/src/commit/?id=3D83771b1914e182= c6324839e05ff82ee6f4a87c98. The tblgen tools don=E2=80=99t need to = link against libzstd or libz as they don=E2=80=99t use anything from = these libraries.

Andrew

= --Apple-Mail=_68F30E18-079B-4F95-B805-FB360A928101--