[LLVMdev] [X86][compiler-rt] Trouble with build of libcompiler_rt.dylib

Cameron McInally cameron.mcinally at nyu.edu
Tue Nov 18 11:00:47 PST 2014


I have resolved this issue. The IntrinsicsWithoutChain array requires that:

> /*
>  * IntrinsicsWithoutChain - the table should be sorted by Intrinsic ID - in
>  * the alphabetical order.
> */

I had mistakenly added intrinsics out of order. Static... :/

-Cameron


On Tue, Nov 18, 2014 at 12:14 PM, Cameron McInally
<cameron.mcinally at nyu.edu> wrote:
> Hey guys,
>
> I'm a little out of my element with this error. Would someone please
> point me in the right direction?
>
> I've attached a seemingly innocuous patch (patch.diff). I'm able to
> build Clang+LLVM with the patch as-is. But, if I uncomment the
> modified line in lib/Target/X86/X86IntrinsicsInfo.h, my build fails in
> a strange way. The build ERROR is:
>
>> cp: /Users/xkrebstarx/llvm/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/libcompiler_rt.dylib: No such file or directory
>
> These WARNINGs also seem to be related...
>
>> warning: clang_darwin.mk: dropping arch 'x86_64' from lib '10.4' (clang does not support it)
>
> Is there someone more familiar with the build system that could
> explain what this error message is trying to tell me?
>
> Thanks in advance,
> Cam



More information about the llvm-dev mailing list