Date: Tue, 07 Feb 2017 17:32:32 -0500 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: clang 4.0.0 with_lld_is_ld build Message-ID: <2232674.hLfPeFGiXF@hbsd-dev-laptop>
next in thread | raw e-mail | index | archive | help
--nextPart2331945.VebGVrTEiu Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Hey All, On a system with clang 4.0.0 already installed with lld as ld, I get th= e=20 following error compiling the latest HEAD of projects/clang400-import w= hen=20 WITH_LLD_IS_LD is set: =3D=3D=3D> usr.bin/clang/lld (obj,all,install) In file included from=20 /scratch/fbsd/contrib/llvm/tools/lld/ELF/InputFiles.cpp:19: In file included from=20 /scratch/fbsd/contrib/llvm/include/llvm/Bitcode/BitcodeReader.h:19: In file included from=20 /scratch/fbsd/contrib/llvm/include/llvm/IR/ModuleSummaryIndex.h:25: In file included from /scratch/fbsd/contrib/llvm/include/llvm/IR/Module= .h:21: In file included from /scratch/fbsd/contrib/llvm/include/llvm/IR/Functi= on.h:24: In file included from /scratch/fbsd/contrib/llvm/include/llvm/IR/Argume= nt.h:19: /scratch/fbsd/contrib/llvm/include/llvm/IR/Attributes.h:71:14: fatal er= ror:=20 'llvm/IR/Attributes.gen' file not found #include "llvm/IR/Attributes.gen" Steps to reproduce: 1. Build and install a world with WITH_LLD_IS_LD set. The first build w= ill=20 succeed. 2. After the new world is installd, verify that /usr/bin/ld is in fact = lld by=20 running `ld -version` 3. If not, then set the symlink to /usr/bin/ld.lld 4. rm -rf the object directory (for me: /usr/obj/scratch/clang400) 5. do a new world build with WITH_LLD_IS_LD set. This will fail. Thanks, =2D-=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --nextPart2331945.VebGVrTEiu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAliaSwEACgkQaoRlj1JF bu5m5A//dC6+Wnslt6GK61lBxzX7WjAI6PIn7n0wQGjhRkDrVrlYdJVwXXQv0v41 lmJuJgd1l08Xi4fmUsXdhC/Yfs88I2J/V/1i0LtDCitY1VvQthckA9lfd+sAOxU6 +I72agSy4rcPxNraJez6ZpznmGk7v8AGj1VS6c2IAblqfjBu6G7CL1UrOkiGEpDM iej2W9a78S2+3mjLex2Dp+CgAE6xWrGSq7QRJDtbzAkWldto/LeRy6JhdAbtQFAG MkyxJSnebzZRg0Fsac2w8eBsUE/fj4q3WcjCZjq2zjxaf5+G9/4BwR+6jRH+bK7s gX1uja7Stln1NlGv4AV1VDkw+Eo/y5BEKlLjNabwvqwiqlqsAaYq1rku5ML0DGBh C+aoul14Comt/814Nn+7n1KGy8D7Ls7tp21xJeG3dUUaWhhuwIpQrHluUkdp1bLc PGWpvpAI8pBBGD5ZqO2i7c0WrvncRXrO96EUJwOlY8WEH0nhanoDTfoAHdZKQpis CaklluUxZlgy2al2YiUPgCfzBwBtavtxEKS91NWzeitGWbwvPpsHxn6javiXbnFO TyP2qyPlLn4GiYWfbv5zCdPSq9xLg0rDHYq7TPOUinE57lHMZrAmDEuY7ODvCAEE /1Pt7FXysLvv3YVSq3XxnMtKo5tDbMGnirsaNEjzzDbNlMDy83c= =hBWL -----END PGP SIGNATURE----- --nextPart2331945.VebGVrTEiu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2232674.hLfPeFGiXF>