As a note, I experimentally attempted to build 391 branch "just llvm +
clang" on ubuntu the other day, and got this:
[ 90%] Linking CXX executable ../../../../bin/clang
../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o):
In function `(anonymous
namespace)::PCHContainerGenerator::DebugTypeVisitor::VisitImportDecl(clang::ImportDecl*)':
/home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp:76:
undefined reference to
`clang::CodeGen::CGDebugInfo::EmitImportDecl(clang::ImportDecl
const&)'
../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o):
In function `(anonymous
namespace)::PCHContainerGenerator::DebugTypeVisitor::VisitTypeDecl(clang::TypeDecl*)':
/home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp:90:
undefined reference to
`clang::CodeGen::CGDebugInfo::getOrCreateStandaloneType(clang::QualType,
clang::SourceLocation)'
../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o):
In function `(anonymous
namespace)::PCHContainerGenerator::DebugTypeVisitor::VisitObjCInterfaceDecl(clang::ObjCInterfaceDecl*)':
/home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp:97:
undefined reference to
`clang::CodeGen::CGDebugInfo::getOrCreateStandaloneType(clang::QualType,
clang::SourceLocation)'
../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o):
In function `(anonymous
namespace)::PCHContainerGenerator::DebugTypeVisitor::VisitFunctionDecl(clang::FunctionDecl*)':
/home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp:114:
undefined reference to
`clang::CodeGen::CGDebugInfo::EmitFunctionDecl(clang::GlobalDecl,
clang::SourceLocation, clang::QualType)'
../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o):
In function `(anonymous
namespace)::PCHContainerGenerator::DebugTypeVisitor::VisitObjCMethodDecl(clang::ObjCMethodDecl*)':
/home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp:133:
undefined reference to
`clang::CodeGen::CGDebugInfo::EmitFunctionDecl(clang::GlobalDecl,
clang::SourceLocation, clang::QualType)'
../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o):
In function `(anonymous
namespace)::PCHContainerGenerator::HandleTagDeclRequiredDefinition(clang::TagDecl
const*)':
/home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp:225:
undefined reference to
`clang::CodeGen::CGDebugInfo::completeRequiredType(clang::RecordDecl
const*)'
../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o):
In function `(anonymous
namespace)::PCHContainerGenerator::HandleTranslationUnit(clang::ASTContext&)':
/home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen
Cheers!
-roger-