LanguageKit in trunk requires LLVM 2.6. Please make sure you have this version or a recent snapshot of trunk. As it says in the INSTALL file, it will not work with LLVM 2.5.
David On 22 Aug 2009, at 08:43, Friedrich Dominicus wrote: > I've update my llvm from the subversion tree and installed it. And > I'm using gcc version 4.3.4 (Debian 4.3.4-1) > > However while compiling Etoile I got the following error messages: > Making all for framework LanguageKitCodeGen... > Compiling file CGObjCGNU.cpp ... > In file included from CGObjCGNU.cpp:11: > CGObjCRuntime.h:141: error: ‘llvm::LLVMContext’ has not been declared > CGObjCGNU.cpp:37: error: ISO C++ forbids declaration of > ‘LLVMContext’ with no type > CGObjCGNU.cpp:37: error: invalid use of ‘::’ > CGObjCGNU.cpp:37: error: expected ‘;’ before ‘&’ token > CGObjCGNU.cpp:95: error: ‘llvm::LLVMContext’ has not been declared > CGObjCGNU.cpp:220: error: ‘llvm::LLVMContext’ has not been declared > CGObjCGNU.cpp: In constructor > ‘<unnamed>::CGObjCGNU::CGObjCGNU(llvm::Module&, int&, const > llvm::Type*, const llvm::Type*)’: > CGObjCGNU.cpp:223: error: class ‘<unnamed>::CGObjCGNU’ does not have > any field named ‘Context’ > CGObjCGNU.cpp:228: error: ‘getInt32Ty’ is not a member of ‘llvm::Type’ > CGObjCGNU.cpp:228: error: ‘Context’ was not declared in this scope > CGObjCGNU.cpp:231: error: ‘getInt8Ty’ is not a member of ‘llvm::Type’ > CGObjCGNU.cpp:234: error: ‘getInt8Ty’ is not a member of ‘llvm::Type’ > CGObjCGNU.cpp: In member function > ‘llvm::Constant*<unnamed>::CGObjCGNU::MakeConstantString(const > std::string&, const std::string&)’: > CGObjCGNU.cpp:354: error: ‘Context’ was not declared in this scope > CGObjCGNU.cpp:356: error: no matching function for call to > ‘llvm::GlobalVariable::GlobalVariable(llvm::Module&, const > llvm::Type*, bool, llvm::GlobalValue::LinkageTypes, > llvm::Constant*&, const std::basic_string<char, > std::char_traits<char>, std::allocator<char> >&)’ > /usr/local/include/llvm/GlobalVariable.h:62: note: candidates are: > llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, > llvm::GlobalValue::LinkageTypes, llvm::Constant*, const > std::string&, llvm::GlobalVariable*, bool, unsigned int) > /usr/local/include/llvm/GlobalVariable.h:56: note: > llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, > llvm::GlobalValue::LinkageTypes, llvm::Constant*, const > std::string&, llvm::Module*, bool, unsigned int) > /usr/local/include/llvm/GlobalVariable.h:39: note: > llvm::GlobalVariable::GlobalVariable(const llvm::GlobalVariable&) > CGObjCGNU.cpp: In member function > ‘llvm::Constant*<unnamed>::CGObjCGNU::MakeGlobal(const > llvm::StructType*, std::vector<llvm::Constant*, > std::allocator<llvm::Constant*> >&, const std::string&)’: > CGObjCGNU.cpp:366: error: no matching function for call to > ‘llvm::GlobalVariable::GlobalVariable(llvm::Module&, const > llvm::StructType*&, bool, llvm::GlobalValue::LinkageTypes, > llvm::Constant*&, const std::basic_string<char, > std::char_traits<char>, std::allocator<char> >&)’ > /usr/local/include/llvm/GlobalVariable.h:62: note: candidates are: > llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, > llvm::GlobalValue::LinkageTypes, llvm::Constant*, const > std::string&, llvm::GlobalVariable*, bool, unsigned int) > /usr/local/include/llvm/GlobalVariable.h:56: note: > llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, > llvm::GlobalValue::LinkageTypes, llvm::Constant*, const > std::string&, llvm::Module*, bool, unsigned int) > /usr/local/include/llvm/GlobalVariable.h:39: note: > llvm::GlobalVariable::GlobalVariable(const llvm::GlobalVariable&) > CGObjCGNU.cpp: In member function > ‘llvm::Constant*<unnamed>::CGObjCGNU::MakeGlobal(const > llvm::ArrayType*, std::vector<llvm::Constant*, > std::allocator<llvm::Constant*> >&, const std::string&)’: > CGObjCGNU.cpp:375: error: no matching function for call to > ‘llvm::GlobalVariable::GlobalVariable(llvm::Module&, const > llvm::ArrayType*&, bool, llvm::GlobalValue::LinkageTypes, > llvm::Constant*&, const std::basic_string<char, > std::char_traits<char>, std::allocator<char> >&)’ > /usr/local/include/llvm/GlobalVariable.h:62: note: candidates are: > llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, > llvm::GlobalValue::LinkageTypes, llvm::Constant*, const > std::string&, llvm::GlobalVariable*, bool, unsigned int) > /usr/local/include/llvm/GlobalVariable.h:56: note: > llvm::GlobalVariable::GlobalVariable(const llvm::Type*, bool, > llvm::GlobalValue::LinkageTypes, llvm::Constant*, const > std::string&, llvm::Module*, bool, unsigned int) > /usr/local/include/llvm/GlobalVariable.h:39: note: > llvm::GlobalV > > Does anyone has encountered similiar problems? > > Regards > Friedrich > > > -- > Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim > Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus > > _______________________________________________ > Etoile-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/etoile-discuss _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
