[cfe-dev] build issue

Daniel Dunbar daniel at zuster.org
Thu Mar 12 14:12:56 PDT 2009


It sounds like your llvm source tree and your clang source tree are
not in sync. If you update both source trees, do you still have
issues?

 - Daniel

On Thu, Mar 12, 2009 at 1:53 PM, shreyas krishnan <shreyas76 at gmail.com> wrote:
> Hi
>   I am a new bie to clang. I followed the install instruction as part
> of getting-started. But am running into the following build issue
>
> llvm[2]: Compiling CGObjCMac.cpp for Debug build
> CGObjCMac.cpp: In member function 'virtual
> llvm::Value*<unnamed>::CGObjCNonFragileABIMac::GenerateProtocolRef(clang::CodeGen::CGBuilderTy&,
> const clang::ObjCProtocolDecl*)':
> CGObjCMac.cpp:4202: error: 'WeakAnyLinkage' is not a member of
> 'llvm::GlobalValue'
> CGObjCMac.cpp: In member function 'virtual
> llvm::Constant*<unnamed>::CGObjCNonFragileABIMac::GetOrEmitProtocol(const
> clang::ObjCProtocolDecl*)':
> CGObjCMac.cpp:4620: error: 'WeakAnyLinkage' is not a member of
> 'llvm::GlobalValue'
> CGObjCMac.cpp:4625: error: 'WeakAnyLinkage' is not a member of
> 'llvm::GlobalValue'
> CGObjCMac.cpp:4639: error: 'WeakAnyLinkage' is not a member of
> 'llvm::GlobalValue'
> CGObjCMac.cpp: In member function
> 'clang::CodeGen::RValue<unnamed>::CGObjCNonFragileABIMac::EmitMessageSend(clang::CodeGen::CodeGenFunction&,
> clang::QualType, clang::Selector, llvm::Value*, clang::QualType, bool,
> const clang::CodeGen::CallArgList&)':
> CGObjCMac.cpp:4863: error: 'WeakAnyLinkage' is not a member of
> 'llvm::GlobalValue'
> CGObjCMac.cpp: In member function
> 'llvm::Value*<unnamed>::CGObjCNonFragileABIMac::GetInterfaceEHType(const
> clang::ObjCInterfaceType*)':
> CGObjCMac.cpp:5424: error: 'WeakAnyLinkage' is not a member of
> 'llvm::GlobalValue'
> make[2]: *** [/prj/qct/asw/gpu_compiler/llvm/llvm-trunk/tools/clang/lib/CodeGen/Debug/CGObjCMac.o]
> Error 1
> make[2]: Leaving directory
> `/prj/qct/asw/gpu_compiler/llvm/llvm-trunk/tools/clang/lib/CodeGen'
> make[1]: *** [CodeGen/.makeall] Error 2
> make[1]: Leaving directory
> `/prj/qct/asw/gpu_compiler/llvm/llvm-trunk/tools/clang/lib'
> make: *** [all] Error 1
>
>
> Looks like it is failing to build for objective C. I dont really need
> the objective C part.
>
>
> Can some1 give me pointers?
> thanks
> shrey
> _______________________________________________
> 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