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
signature.asc
Description: This is a digitally signed message part.