projects/clang600-import and ld.lld
Shawn Webb
shawn.webb at hardenedbsd.org
Fri Jan 12 14:39:05 UTC 2018
Hey All,
I know it's early in the game, but I thought I'd report this anyways.
I have lld as the default linker (MK_LLD_IS_LD=yes). When lld tries to
link usr.bin/clang/llvm-extract/llvm-extract, lld errors out with some
unresolved symbols. The log is below.
Has anyone else run into this?
/usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefined symbol: compressBound
>>> referenced by Compression.cpp:63 (/scratch/hbsd-playground/contrib/llvm/lib/Support/Compression.cpp:63)
>>> Compression.o:(llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl<char>&, llvm::zlib::CompressionLevel)) in archive /usr/obj/scratch/hbsd-playground/amd64.amd64
/lib/clang/libllvm/libllvm.a
/usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefined symbol: compress2
>>> referenced by Compression.cpp:66 (/scratch/hbsd-playground/contrib/llvm/lib/Support/Compression.cpp:66)
>>> Compression.o:(llvm::zlib::compress(llvm::StringRef, llvm::SmallVectorImpl<char>&, llvm::zlib::CompressionLevel)) in archive /usr/obj/scratch/hbsd-playground/amd64.amd64
/lib/clang/libllvm/libllvm.a
/usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefined symbol: uncompress
>>> referenced by Compression.cpp:79 (/scratch/hbsd-playground/contrib/llvm/lib/Support/Compression.cpp:79)
>>> Compression.o:(llvm::zlib::uncompress(llvm::StringRef, char*, unsigned long&)) in archive /usr/obj/scratch/hbsd-playground/amd64.amd64/lib/clang/libllvm/libllvm.a
/usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefined symbol: crc32
>>> referenced by Compression.cpp:98 (/scratch/hbsd-playground/contrib/llvm/lib/Support/Compression.cpp:98)
>>> Compression.o:(llvm::zlib::crc32(llvm::StringRef)) in archive /usr/obj/scratch/hbsd-playground/amd64.amd64/lib/clang/libllvm/libllvm.a
c++: error: linker command failed with exit code 1 (use -v to see invocation)
--- llvm-extract.full ---
*** [llvm-extract.full] Error code 1
make[5]: stopped in /scratch/hbsd-playground/usr.bin/clang/llvm-extract
Thanks,
--
Shawn Webb
Cofounder and Security Engineer
HardenedBSD
Tor-ified Signal: +1 443-546-8752
GPG Key ID: 0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20180112/0fd68d8a/attachment.sig>
More information about the freebsd-toolchain
mailing list