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

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,

patch.diff (2.83 KB)

build.log (9.93 KB)

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... :confused: