clang 4.0.0 with_lld_is_ld build
Shawn Webb
shawn.webb at hardenedbsd.org
Tue Feb 7 22:32:38 UTC 2017
Hey All,
On a system with clang 4.0.0 already installed with lld as ld, I get the
following error compiling the latest HEAD of projects/clang400-import when
WITH_LLD_IS_LD is set:
===> usr.bin/clang/lld (obj,all,install)
In file included from
/scratch/fbsd/contrib/llvm/tools/lld/ELF/InputFiles.cpp:19:
In file included from
/scratch/fbsd/contrib/llvm/include/llvm/Bitcode/BitcodeReader.h:19:
In file included from
/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/Function.h:24:
In file included from /scratch/fbsd/contrib/llvm/include/llvm/IR/Argument.h:19:
/scratch/fbsd/contrib/llvm/include/llvm/IR/Attributes.h:71:14: fatal error:
'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 will
succeed.
2. After the new world is installd, verify that /usr/bin/ld is in fact lld by
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,
--
Shawn Webb
Cofounder and Security Engineer
HardenedBSD
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: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20170207/b8e8d5e0/attachment.sig>
More information about the freebsd-toolchain
mailing list