[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Help cross-building kernel from macos
From:       Andrew Turner <andrew () fubar ! geek ! nz>
Date:       2023-11-10 11:38:27
Message-ID: 1562FCC3-A356-4493-8864-51F8ABECD7ED () fubar ! geek ! nz
[Download RAW message or body]

> On 8 Nov 2023, at 19:54, Colin S. Gordon <csgordon@fastmail.com> wrote:
...
> ===> lib/clang/libllvmminimal (obj,all,install)
> ===> usr.bin/clang/llvm-tblgen <http://usr.bin/clang/llvm-tblgen> (obj,all,install)
> bmake[3]: /Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/usr.bin/clang/llvm-tblgen/.depend \
> <http://usr.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/usr.bin/clang/llvm-tblgen/.depend \
> <http://usr.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-tools/lib/libthr'
>                 
> ld: warning: directory not found for option \
> '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/lib/libz'
>                 
> ld: warning: directory not found for option \
> '-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/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=83771b1914e182c6324839e05ff82ee6f4a87c98. The \
tblgen tools don't need to link against libzstd or libz as they don't use anything \
from these libraries.

Andrew


[Attachment #3 (unknown)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: \
space; line-break: after-white-space;"><br><div><blockquote type="cite"><div>On 8 Nov \
2023, at 19:54, Colin S. Gordon &lt;csgordon@fastmail.com&gt; \
wrote:</div></blockquote>...<br><blockquote type="cite"><div><div style="caret-color: \
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; text-decoration: none;">===&gt; \
lib/clang/libllvmminimal (obj,all,install)<br></div><div style="caret-color: rgb(0, \
0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; text-decoration: none;">===&gt;<span \
class="Apple-converted-space">&nbsp;</span><a \
href="http://usr.bin/clang/llvm-tblgen">usr.bin/clang/llvm-tblgen</a><span \
class="Apple-converted-space">&nbsp;</span>(obj,all,install)<br></div><div \
style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: \
none;">bmake[3]: /Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/<a \
href="http://usr.bin/clang/llvm-tblgen/.depend">usr.bin/clang/llvm-tblgen/.depend</a>, \
1: ignoring stale .depend for \
/Users/.../freebsd-obj//Users/.../freebsd-src/riscv.riscv64/tmp/legacy/usr/lib/libz.a<br></div><div \
style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: \
none;">bmake[3]: /Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/<a \
href="http://usr.bin/clang/llvm-tblgen/.depend">usr.bin/clang/llvm-tblgen/.depend</a>, \
1: ignoring stale .depend for /usr/lib/libprivatezstd.a<br></div><div \
style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: \
none;">ld: warning: directory not found for option \
'-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/lib/libthr'<br></div><div \
style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: \
none;">ld: warning: directory not found for option \
'-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/lib/libz'<br></div><div \
style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: \
none;">ld: warning: directory not found for option \
'-L/Users/.../freebsd-obj/Users/.../freebsd-src/riscv.riscv64/tmp/obj-tools/lib/libthr'<br></div><div \
style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; \
font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: \
none;">ld: library not found for -lprivatezstd<br></div><div style="caret-color: \
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; \
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; text-decoration: none;">clang: error: linker \
command failed with exit code 1 (use -v to see \
invocation)<br></div></div></blockquote><br></div><div>This should be fixed \
in&nbsp;<a href="https://cgit.freebsd.org/src/commit/?id=83771b1914e182c6324839e05ff82 \
ee6f4a87c98">https://cgit.freebsd.org/src/commit/?id=83771b1914e182c6324839e05ff82ee6f4a87c98</a>. \
The tblgen tools don't need to link against libzstd or libz as they don't use \
anything from these libraries.</div><div><br></div><div>Andrew</div><br></body></html>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic