[cfe-dev] Build error for Release+Asserts with a clean repo from clang

Manuel Klimek klimek at google.com
Sun Jul 29 23:17:01 PDT 2012


On Sun, Jul 29, 2012 at 7:46 PM, Manman Ren <mren at apple.com> wrote:
> I started seeing this a few days back, it is probably related to my setup.
> Debug+Asserts builds fine.
> But for Release+Asserts, I got:
> Undefined symbols for architecture x86_64:
>   "clang::Decl::dump() const", referenced from:
>       clang::ASTContext::DumpRecordLayout(clang::RecordDecl const*, llvm::raw_ostream&, bool) const in libclangAST.a(RecordLayoutBuilder.o)
>       clang::arcmt::trans::MigrationContext::dumpGCAttrs() in libclangARCMigrate.a(TransGCAttrs.o)
>       clang::CodeGen::CodeGenTypes::ComputeRecordLayout(clang::RecordDecl const*, llvm::StructType*) in libclangCodeGen.a(CGRecordLayoutBuilder.o)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)

Alex, this might be related to your change? It looks like
http://llvm-reviews.chandlerc.com/rL160788  was intended to fix this?


> Any idea how to fix this?
> Thanks,
> Manman
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

More information about the cfe-dev mailing list