[cfe-dev] clang::PCHContainerOperations::~PCHContainerOperations() undefined in bin/clang-check linkage

Jack Howarth howarth.mailing.lists at gmail.com
Wed Jul 8 17:12:18 PDT 2015


Is anyone else seeing this bootstrap failure on x86_64-apple-darwin?

Linking CXX executable ../../../../bin/clang-check
Undefined symbols for architecture x86_64:
  "clang::PCHContainerOperations::~PCHContainerOperations()", referenced from:
      std::__1::__shared_ptr_emplace<clang::ObjectFilePCHContainerOperations,
std::__1::allocator<clang::ObjectFilePCHContainerOperations>
>::~__shared_ptr_emplace() in ClangCheck.cpp.o
      std::__1::__shared_ptr_emplace<clang::ObjectFilePCHContainerOperations,
std::__1::allocator<clang::ObjectFilePCHContainerOperations>
>::~__shared_ptr_emplace() in ClangCheck.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/clang-check] Error 1
make[2]: Target
`tools/clang/tools/clang-check/CMakeFiles/clang-check.dir/build' not
remade because of errors.

I opened https://llvm.org/bugs/show_bug.cgi?id=24067 for this issue.
           Jack



More information about the cfe-dev mailing list