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

Alexander Kornienko alexfh at google.com
Mon Jul 30 03:43:15 PDT 2012


On Mon, Jul 30, 2012 at 8:17 AM, Manuel Klimek <klimek at google.com> wrote:

> +alexfh
>
> 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?
>
This commit was intended to fix debug-time issue and shouldn't affect
builds. But it may be a problem with stale .o files. Manman, did you try to
run *make clean* before building?


>
> Cheers,
> /Manuel
>
> >
> > Any idea how to fix this?
> >
> > Thanks,
> > Manman
>

-- 
Best regards,
Alexander Kornienko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120730/14b4bf43/attachment.html>


More information about the cfe-dev mailing list