Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2018 09:38:51 -0500
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        freebsd-toolchain@freebsd.org
Cc:        dim@freebsd.org
Subject:   projects/clang600-import and ld.lld
Message-ID:  <20180112143851.wzp373hapbsxyntu@mutt-hbsd>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlpYyHgACgkQaoRlj1JF
bu5BthAAxq65bLHtzXLi+Yub6EdeaTjZmub4TW295gEoejVpHHCBudyH0TAQY5vh
oJX0rrNHueWJxSz8hOoFz/Rt9Wz6qkCRiWZeKYP4LUIM8Wk0gYcK0hw5GL/8CgpR
y+G8D+hB5LamZe1NRVu/SOw6mEcHDO+cCDreCFzWm2RV8iUggOyBc18kP3aPKgzy
2QFkaJXD6EYZW59aCd0QKOybH6poQqpwZNRNLUox/kk1VSbZO46QX8XTOFQu1wJf
tkljq9D8TLC0A3TL8rfzpwmaWifDouyKipivcRWMoJJlzu2jNFl+abLrLmGcpJ//
qmn5GTpvibHeupWOZl2aYr5ATwG1rzHOA8JmWCikqRUDVaLz8GbfsoUhc5wKRNR3
uhvmgxXDCTi/Zo9V1VvUMH2wLxLtXWXVzGyr56Lax0UjrYsS78dUXF/oxpQ3olem
0mfbHWeheyd44DOpcvo7qPVjpS9HW2HKTjf1ntK6et6KkyGkJ/BOLlAPMmeEKSjY
WisD/s1suKnKcyP4cuhAmBiYHC0NSBA2qgkKeT7MOd5y0U+rJqQZXeq+uRe22wBE
KCh/Zz7v4JfwmGytvcB1I8G9dlSNBxU+VS4OQ2nPc61EEBe6A3Oio1oWAoDySdJe
nsr8U3L89H8T6B2UvB4BTzfax5pj5NYvPcGvLJsFbcH+E8u6tyg=
=EE8/
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180112143851.wzp373hapbsxyntu>