compile failure at r194257

Current llvm/clang/compiler-rt is failing to bootstrap on x86_64-apple-darwin12 using the
cmake build with the failure...

[ 84%] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGBuiltin.cpp.o
cd /sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/tools/clang/lib/CodeGen && /sw/var/lib/fink/path-prefix-clang/c++ -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -Wno-nested-anon-types -fno-rtti -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -I/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/tools/clang/lib/CodeGen -I/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen -I/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/include -I/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/tools/clang/include -I/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include -I/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/include -fno-exceptions -o CMakeFiles/clangCodeGen.dir/CGBuiltin.cpp.o -c /sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:1804:22: error: no member named 'aarch64_neon_sha1c' in namespace 'llvm::Intrinsic'; did you mean 'aarch64_neon_smaxv'?
    Int = Intrinsic::aarch64_neon_sha1c;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
                     aarch64_neon_smaxv
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:20:5: note: 'aarch64_neon_smaxv' declared here
    aarch64_neon_smaxv, // llvm.aarch64.neon.smaxv
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:1807:22: error: no member named 'aarch64_neon_sha1p' in namespace 'llvm::Intrinsic'; did you mean 'aarch64_neon_smaxv'?
    Int = Intrinsic::aarch64_neon_sha1p;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
                     aarch64_neon_smaxv
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:20:5: note: 'aarch64_neon_smaxv' declared here
    aarch64_neon_smaxv, // llvm.aarch64.neon.smaxv
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:1810:22: error: no member named 'aarch64_neon_sha1m' in namespace 'llvm::Intrinsic'; did you mean 'aarch64_neon_smaxv'?
    Int = Intrinsic::aarch64_neon_sha1m;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
                     aarch64_neon_smaxv
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:20:5: note: 'aarch64_neon_smaxv' declared here
    aarch64_neon_smaxv, // llvm.aarch64.neon.smaxv
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2178:22: error: no member named 'aarch64_neon_vcage' in namespace 'llvm::Intrinsic'; did you mean 'aarch64_neon_vcge'?
    Int = Intrinsic::aarch64_neon_vcage; s = "vcage";
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
                     aarch64_neon_vcge
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:32:5: note: 'aarch64_neon_vcge' declared here
    aarch64_neon_vcge, // llvm.aarch64.neon.vcge
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2183:22: error: no member named 'aarch64_neon_vcagt' in namespace 'llvm::Intrinsic'; did you mean 'aarch64_neon_vcgt'?
    Int = Intrinsic::aarch64_neon_vcagt; s = "vcagt";
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
                     aarch64_neon_vcgt
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:33:5: note: 'aarch64_neon_vcgt' declared here
    aarch64_neon_vcgt, // llvm.aarch64.neon.vcgt
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2188:22: error: no member named 'aarch64_neon_vcage' in namespace 'llvm::Intrinsic'; did you mean 'aarch64_neon_vcge'?
    Int = Intrinsic::aarch64_neon_vcage; s = "vcage";
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
                     aarch64_neon_vcge
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:32:5: note: 'aarch64_neon_vcge' declared here
    aarch64_neon_vcge, // llvm.aarch64.neon.vcge
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2193:22: error: no member named 'aarch64_neon_vcagt' in namespace 'llvm::Intrinsic'; did you mean 'aarch64_neon_vcgt'?
    Int = Intrinsic::aarch64_neon_vcagt; s = "vcalt";
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
                     aarch64_neon_vcgt
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:33:5: note: 'aarch64_neon_vcgt' declared here
    aarch64_neon_vcgt, // llvm.aarch64.neon.vcgt
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2271:22: error: no member named 'aarch64_neon_vshrds_n' in namespace 'llvm::Intrinsic'; did you mean
      'aarch64_neon_vshlds'?
    Int = Intrinsic::aarch64_neon_vshrds_n;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
                     aarch64_neon_vshlds
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:78:5: note: 'aarch64_neon_vshlds' declared here
    aarch64_neon_vshlds, // llvm.aarch64.neon.vshlds
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2275:22: error: no member named 'aarch64_neon_vshrdu_n' in namespace 'llvm::Intrinsic'; did you mean
      'aarch64_neon_vshldu'?
    Int = Intrinsic::aarch64_neon_vshrdu_n;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
                     aarch64_neon_vshldu
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:79:5: note: 'aarch64_neon_vshldu' declared here
    aarch64_neon_vshldu, // llvm.aarch64.neon.vshldu
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2279:22: error: no member named 'aarch64_neon_vrshrds_n' in namespace 'llvm::Intrinsic'
    Int = Intrinsic::aarch64_neon_vrshrds_n;
          ~~~~~~~~~~~^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2283:22: error: no member named 'aarch64_neon_vrshrdu_n' in namespace 'llvm::Intrinsic'
    Int = Intrinsic::aarch64_neon_vrshrdu_n;
          ~~~~~~~~~~~^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2287:22: error: no member named 'aarch64_neon_vsrads_n' in namespace 'llvm::Intrinsic'
    Int = Intrinsic::aarch64_neon_vsrads_n;
          ~~~~~~~~~~~^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2291:22: error: no member named 'aarch64_neon_vsradu_n' in namespace 'llvm::Intrinsic'
    Int = Intrinsic::aarch64_neon_vsradu_n;
          ~~~~~~~~~~~^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2295:22: error: no member named 'aarch64_neon_vrsrads_n' in namespace 'llvm::Intrinsic'; did you mean
      'aarch64_neon_vrshlds'?
    Int = Intrinsic::aarch64_neon_vrsrads_n;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
                     aarch64_neon_vrshlds
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:75:5: note: 'aarch64_neon_vrshlds' declared here
    aarch64_neon_vrshlds, // llvm.aarch64.neon.vrshlds
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2299:22: error: no member named 'aarch64_neon_vrsradu_n' in namespace 'llvm::Intrinsic'; did you mean
      'aarch64_neon_vrshldu'?
    Int = Intrinsic::aarch64_neon_vrsradu_n;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
                     aarch64_neon_vrshldu
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:76:5: note: 'aarch64_neon_vrshldu' declared here
    aarch64_neon_vrshldu, // llvm.aarch64.neon.vrshldu
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2304:22: error: no member named 'aarch64_neon_vshld_n' in namespace 'llvm::Intrinsic'
    Int = Intrinsic::aarch64_neon_vshld_n;
          ~~~~~~~~~~~^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2311:22: error: no member named 'aarch64_neon_vqshls_n' in namespace 'llvm::Intrinsic'; did you mean
      'aarch64_neon_vqshls'?
    Int = Intrinsic::aarch64_neon_vqshls_n;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
                     aarch64_neon_vqshls
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:70:5: note: 'aarch64_neon_vqshls' declared here
    aarch64_neon_vqshls, // llvm.aarch64.neon.vqshls
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2318:22: error: no member named 'aarch64_neon_vqshlu_n' in namespace 'llvm::Intrinsic'; did you mean
      'aarch64_neon_vqshlu'?
    Int = Intrinsic::aarch64_neon_vqshlu_n;
          ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
                     aarch64_neon_vqshlu
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/build/include/llvm/IR/Intrinsics.gen:71:5: note: 'aarch64_neon_vqshlu' declared here
    aarch64_neon_vqshlu, // llvm.aarch64.neon.vqshlu
    ^
/sw/src/fink.build/llvm34-3.4-0/llvm-3.4/tools/clang/lib/CodeGen/CGBuiltin.cpp:2325:22: error: no member named 'aarch64_neon_vqshlus_n' in namespace 'llvm::Intrinsic'
    Int = Intrinsic::aarch64_neon_vqshlus_n;
          ~~~~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGBuiltin.cpp.o] Error 1
make[1]: *** [tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/all] Error 2
make: *** [all] Error 2

Yes, I'm hitting this on my personal machine too. I did a bisect and this is the revision that breaks my builds (which makes sense based on the errors):

Author: Jiangning Liu <jiangning.liu@arm.com>

    Implement AArch64 Neon Crypto instruction classes AES, SHA, and 3 SHA.

    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194086 91177308-0d34-0410-b5e6-96231b3b80d8

Yes, I'm hitting this on my personal machine too.

Have you updated LLVM as well as Clang? If not, that would account for
a lot of the errors being seen. Otherwise it looks like a corrupted
build/include/llvm/IR/Intrinsics.gen file. What does yours contain and
what happens if you remove that and rebuild?

CMake's usually pretty good at keeping that up to date, but I suppose
if a process died unexpectedly a truncated version might still be the
newest from its perspective.

Cheers.

Tim.

I did, and tried multiple rev combinations...

However, I did a rm -rf the llvm-build directory, a re-configure, a new build, and things cleared right up. I had tried various things, and then thought maybe it wasnt user-error when I saw the exact same failures in this thread ... but turns out it was user-error after all.

Sorry for the noise.

Jared