HaveF / include-what-you-use

Automatically exported from code.google.com/p/include-what-you-use
Other
0 stars 0 forks source link

link errors - undefined references to elements in clang::edit namespace #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just tested rev 347 on llvm, compiler-rt, clang rev's 152621 but got the 
following errors on 'make ENABLE_OPTIMIZED=1 DISABLE_ASSERTIONS=1 -j6':

llvm[4]: Linking Release executable include-what-you-use (without symbols)
Release/lib/libclangFrontend.a(DiagnosticRenderer.o): In function `(anonymous 
namespace)::FixitReceiver::~FixitReceiver()':
DiagnosticRenderer.cpp:(.text+0xed): undefined reference to `vtable for 
clang::edit::EditsReceiver'

Release/lib/libclangFrontend.a(DiagnosticRenderer.o): In function 
`clang::DiagnosticRenderer::emitDiagnostic(clang::SourceLocation, 
clang::DiagnosticsEngine::Level, llvm::StringRef, 
llvm::ArrayRef<clang::CharSourceRange>, llvm::ArrayRef<clang::FixItHint>, 
llvm::PointerUnion<clang::Diagnostic const*, clang::StoredDiagnostic const*>)':
DiagnosticRenderer.cpp:(.text+0x1bb4): undefined reference to 
`clang::edit::Commit::insertFromRange(clang::SourceLocation, 
clang::CharSourceRange, bool, bool)'
DiagnosticRenderer.cpp:(.text+0x1c1d): undefined reference to 
`clang::edit::Commit::replace(clang::CharSourceRange, llvm::StringRef)'
DiagnosticRenderer.cpp:(.text+0x1cdd): undefined reference to 
`clang::edit::EditedSource::commit(clang::edit::Commit const&)'
DiagnosticRenderer.cpp:(.text+0x1e65): undefined reference to 
`clang::edit::Commit::remove(clang::CharSourceRange)'
DiagnosticRenderer.cpp:(.text+0x1e92): undefined reference to 
`clang::edit::Commit::insert(clang::SourceLocation, llvm::StringRef, bool, 
bool)'
DiagnosticRenderer.cpp:(.text+0x1ec9): undefined reference to 
`clang::edit::EditedSource::applyRewrites(clang::edit::EditsReceiver&)'
DiagnosticRenderer.cpp:(.text+0x1ecf): undefined reference to `vtable for 
clang::edit::EditsReceiver'

Release/lib/libclangFrontend.a(DiagnosticRenderer.o):(.data.rel.ro+0x18): 
undefined reference to 
`clang::edit::EditsReceiver::remove(clang::CharSourceRange)'
/home/gerben/src/build-llvm/Release/lib/libclangSema.a(SemaExprObjC.o): In 
function `T.4424':
SemaExprObjC.cpp:(.text+0x2cf0): undefined reference to 
`clang::edit::rewriteObjCRedundantCallWithLiteral(clang::ObjCMessageExpr 
const*, clang::NSAPI const&, clang::edit::Commit&)'
SemaExprObjC.cpp:(.text+0x2e92): undefined reference to 
`clang::edit::Commit::Edit::getInsertFromRange(clang::SourceManager&) const'
SemaExprObjC.cpp:(.text+0x2f93): undefined reference to 
`clang::edit::Commit::Edit::getFileRange(clang::SourceManager&) const'

collect2: ld returned 1 exit status

These occur after llvm[4]: Compiling iwyu_... for Release build

I'm running ubuntu 32bits, building from ~/src/build-llvm, with checkouts in 
~/src/llvm

Original issue reported on code.google.com by gerben.o...@gmail.com on 13 Mar 2012 at 10:34

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r348.

Original comment by FFabioFr...@googlemail.com on 13 Mar 2012 at 11:02

GoogleCodeExporter commented 9 years ago
Thanks for fixing!

Original comment by csilv...@gmail.com on 15 Mar 2012 at 11:29