From owner-freebsd-toolchain@freebsd.org Fri Jan 12 14:39:05 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 165E0E6877C for ; Fri, 12 Jan 2018 14:39:05 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98E006D825 for ; Fri, 12 Jan 2018 14:39:04 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-wm0-x22b.google.com with SMTP id 81so2678753wmb.1 for ; Fri, 12 Jan 2018 06:39:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=IAYTn9s3uHLNSDE/MGGpbIsSSLx7lC6BND+FACIpBJk=; b=2P5Ai2vWa9oQvA0RfFobKH9lDsuJy+aUMdtuir9digVyNCRsJJWY3umHriv8GHSSgB tWZ2VC/f6HbafzuOBzmureg/TDsl0NxG/bN/T0REWgc87xa4dbJEJTwhEFUzCL/kqWJA XPz67UvQHjEr2RAOq68SxK4ZeR5SOWtvSb3j7UY3fCRwlPAkn/hV0yrs66nWmxxFZSen roJOcHwHoEuRWRn2LZp3fgtbvbcazXLk0uwZ8o9+tOJTg6BIvVdL0M9b3R6KPOzDhcRa cDpSrwoLMgDUkfxMWw/bzPwHTYF/gtkJvYNnew6sLsNScqkijUGl9shFYEUlAP7OQpD3 zUAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=IAYTn9s3uHLNSDE/MGGpbIsSSLx7lC6BND+FACIpBJk=; b=Lfvphdcmx0ZdKnfCXo96HmODnNmMVfm3o4NVGglH5TBtAnhgg+EbFtOXDfIg/uP2Qe TVXSwN5yboFujr9FfKOOFSX9xojYPBMPEwYiKiJczBa5yfTFC62bou3kxgQx8ec32nrp iyPd42wzjG8XXk9oi/Se0hsShRxgIxHkVCbjdPfQvQke9V9dUMWZl/cUXIvTTZoove8h cupP5hEpGXIBg4UUMHK8fTyqhasBkbRz+wZG1IN7oJA3vQNihvuUVZvaI6cREpa94lk6 U+mxzBmVx3w16GZPYvepsik8koZXJcoxt6Jeh3a9MU64YPRRPYti0QGHjU9CLcnnJd1p x5EQ== X-Gm-Message-State: AKwxytegX8NHs2J9/9S7Fb7NR2HQrAS3a1aZ8S118UG0X4+1zAaftLV8 WckaAwIe998DMqTd9CSAr69+jvN693Zye9EAxJpUzmQ86irerjkVJYYV41JpOJtzCm6Ad5hxMnJ j5+kbbE/J2oZCAyfsHKbxxzHXAr3PGA14/LEeI7anyzk/bqPFA9wmLZQgHak2m7erZyWWRpslm2 CsZk+73toZEA== X-Google-Smtp-Source: ACJfBosr9K3/i0IM1ihEV1zetgF0xnhJn/JChamM7vL9huxcIM66tlsKMrNKo/7FTXCbQyijxSSV3w== X-Received: by 10.28.10.70 with SMTP id 67mr4090791wmk.12.1515767942510; Fri, 12 Jan 2018 06:39:02 -0800 (PST) Received: from mutt-hbsd (ip239.ip-144-217-60.net. [144.217.60.239]) by smtp.gmail.com with ESMTPSA id 11sm2099340wmd.33.2018.01.12.06.38.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jan 2018 06:39:01 -0800 (PST) Date: Fri, 12 Jan 2018 09:38:51 -0500 From: Shawn Webb To: freebsd-toolchain@freebsd.org Cc: dim@freebsd.org Subject: projects/clang600-import and ld.lld Message-ID: <20180112143851.wzp373hapbsxyntu@mutt-hbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2ev7dbguvrqy72wp" Content-Disposition: inline X-Operating-System: FreeBSD mutt-hbsd 12.0-CURRENT FreeBSD 12.0-CURRENT X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20171208 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 14:39:05 -0000 --2ev7dbguvrqy72wp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3Dyes). 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: undefin= ed symbol: compressBound = =20 >>> referenced by Compression.cpp:63 (/scratch/hbsd-playground/contrib/llvm= /lib/Support/Compression.cpp:63) = =20 >>> Compression.o:(llvm::zlib::compress(llvm::StringRef, llvm= ::SmallVectorImpl&, llvm::zlib::CompressionLevel)) in archive /usr/ob= j/scratch/hbsd-playground/amd64.amd64 /lib/clang/libllvm/libllvm.a /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefin= ed 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&, llvm::zlib::CompressionLevel)) in archive /usr/ob= j/scratch/hbsd-playground/amd64.amd64 /lib/clang/libllvm/libllvm.a /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefin= ed symbol: uncompress >>> referenced by Compression.cpp:79 (/scratch/hbsd-playground/contrib/llvm= /lib/Support/Compression.cpp:79) >>> Compression.o:(llvm::zlib::uncompress(llvm::StringRef, ch= ar*, unsigned long&)) in archive /usr/obj/scratch/hbsd-playground/amd64.amd= 64/lib/clang/libllvm/libllvm.a /usr/obj/scratch/hbsd-playground/amd64.amd64/tmp/usr/bin/ld: error: undefin= ed 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 arc= hive /usr/obj/scratch/hbsd-playground/amd64.amd64/lib/clang/libllvm/libllvm= =2Ea c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) --- llvm-extract.full --- *** [llvm-extract.full] Error code 1 make[5]: stopped in /scratch/hbsd-playground/usr.bin/clang/llvm-extract Thanks, --=20 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 --2ev7dbguvrqy72wp Content-Type: application/pgp-signature; name="signature.asc" -----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----- --2ev7dbguvrqy72wp--