|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Problems compiling under DebianI'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 Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: Problems compiling under DebianLanguageKit 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 > Etoile-discuss@... > https://mail.gna.org/listinfo/etoile-discuss _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: Problems compiling under DebianLe 22 août 09 à 13:32, David Chisnall a écrit :
> 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. From INSTALL: "For now, before building Etoile you should configure, compile and install LLVM either by checking out the Subversion development trunk available at: <http://llvm.org/svn/llvm-project/llvm/trunk>. **WARNING:*** At present, there is a known bug in LLVM that causes LanguageKit to fail on Linux/x86. Please apply [the patch found here](http://llvm.org/bugs/attachment.cgi?id=2744 ) to the LLVM 2.5 sources before compiling." Shouldn't the end of this sentence rather be 'to the LLVM sources before compiling' without any 2.5 mention? This patch remains to be committed to LLVM trunk AFAIK. Is there any good reason why they didn't commit it for the upcoming 2.6 release that is probably frozen by now? Cheers, Quentin. _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
|
|
Re: Problems compiling under DebianOn 22 Aug 2009, at 14:33, Quentin Mathé wrote:
> Le 22 août 09 à 13:32, David Chisnall a écrit : > >> 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. > > > From INSTALL: > "For now, before building Etoile you should configure, compile and > install LLVM either by checking out the Subversion development trunk > available at: <http://llvm.org/svn/llvm-project/llvm/trunk>. > > **WARNING:*** At present, there is a known bug in LLVM that causes > LanguageKit > to fail on Linux/x86. Please apply [the patch found here](http://llvm.org/bugs/attachment.cgi?id=2744 > ) to the LLVM 2.5 sources before compiling." > > Shouldn't the end of this sentence rather be 'to the LLVM sources > before compiling' without any 2.5 mention? This patch remains to be > committed to LLVM trunk AFAIK. > Is there any good reason why they didn't commit it for the upcoming > 2.6 release that is probably frozen by now? 2.6 was frozen yesterday. I don't know if this patch went in (I don't run Linux so I haven't needed to test it). Maybe someone who does could test whether it's still needed and poke the LLVM team to apply it if not? Tanya Lattner is release manager and, although it's in code freeze, bug fixes are still being applied to the release branch if you email her. David _______________________________________________ Etoile-discuss mailing list Etoile-discuss@... https://mail.gna.org/listinfo/etoile-discuss |
| Free embeddable forum powered by Nabble | Forum Help |