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

Alexander Kornienko alexfh at google.com
Mon Jul 30 05:27:29 PDT 2012


On Mon, Jul 30, 2012 at 12:43 PM, Alexander Kornienko <alexfh at google.com>wrote:

> 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?
>
Err, didn't notice the "with a clean repo" part in the message title. But
still I can't see how my change can affect builds.


>> Cheers,
>> /Manuel
>>
>> >
>> > Any idea how to fix this?
>> >
>> > Thanks,
>> > Manman
>>
>
> --
> Best regards,
> Alexander Kornienko
>
>


-- 
Alexander Kornienko | Software Engineer | alexfh at google.com | +49 151 221
77 957
Google Germany GmbH | Dienerstr. 12 | 80331 München
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120730/a7f155b3/attachment.html>


More information about the cfe-dev mailing list