[MacRuby-devel] macruby-experimental build failing

रजनीश rdogra at earthlink.net
Sun May 31 18:29:55 PDT 2009


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090531/93543ecb/attachment.html>


More information about the MacRuby-devel mailing list