Re: [MacRuby-devel] macruby-experimental build failing
Ruben, You need the following patch in order to compile when using LLVM from TOT. This will let you compile, but you will run into some exception and other problems because LLVM has made some changes that seem to be incompatible with macruby. So either use LLVM 2.5 or wait for macruby to upgrade to 2.6 --- vm.cpp (revision 1685) +++ vm.cpp (working copy) @@ -207,7 +207,7 @@ emp = new ExistingModuleProvider(RoxorCompiler::module); jmm = new RoxorJITManager; - ee = ExecutionEngine::createJIT(emp, 0, jmm, true); + ee = ExecutionEngine::createJIT(emp, 0, jmm, CodeGenOpt::None); assert(ee != NULL); fpm = new FunctionPassManager(emp);
hi
I was trying to build the trunk on the 'experimental' branch. I checked out the source form SVN, followed the README.rdoc, but the build is failing and I have no clue why.
(the only modification I did is install LLVM to /opt/local, using SVN trunk)
the error is
/usr/bin/g++ -I/opt/local/include -D_DEBUG -D_GNU_SOURCE - D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fno-common - Woverloaded-virtual -I. -I./include -g -Wall -arch i386 -arch x86_64 - Wno-parentheses -Wno-deprecated-declarations -Werror -c vm.cpp -o vm.o vm.cpp: In constructor 'RoxorVM::RoxorVM()': vm.cpp:210: error: no matching function for call to 'llvm::ExecutionEngine::createJIT(llvm::ExistingModuleProvider*&, int, RoxorJITManager*&, bool)' /opt/local/include/llvm/ExecutionEngine/ExecutionEngine.h:134: note: candidates are: static llvm::ExecutionEngine* llvm::ExecutionEngine::createJIT(llvm::ModuleProvider*, std::string*, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level) vm.cpp: In constructor 'RoxorVM::RoxorVM()': vm.cpp:210: error: no matching function for call to 'llvm::ExecutionEngine::createJIT(llvm::ExistingModuleProvider*&, int, RoxorJITManager*&, bool)' /opt/local/include/llvm/ExecutionEngine/ExecutionEngine.h:134: note: candidates are: static llvm::ExecutionEngine* llvm::ExecutionEngine::createJIT(llvm::ModuleProvider*, std::string*, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level)
any help?
thank you in advance ruben
Hi @all! On Mon Jun 01, 2009 at 10:55:26AM +0900, Vincent Isambart wrote:
So either use LLVM 2.5 or wait for macruby to upgrade to 2.6 2.5 does not work with MacRuby either. For the time being you need the SVN revision of LLVM written in README.rdoc.
Thank you for all your replies. I recompiled LLVM using the recommended SVN revision, built some macports libraries with the +universal flag, and it now works perfectly! Thank you again for your support Ruben
participants (3)
-
Ruben Fonseca
-
Vincent Isambart
-
रजनीश