build issue

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

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

It looks like you're using different clang and llvm versions; try
updating both clang and llvm to trunk.

-Eli