[MacRuby-devel] MacRuby and LLVM 2.7

Laurent Sansonetti lsansonetti at apple.com
Sat May 8 16:53:44 PDT 2010


Hi Max,

Currently, we recommend people to build and install a specific revision of LLVM that is well-known to work with MacRuby. Check out the README.rdoc file.

In the soon future we might jump to a much more recent trunk revision.

Laurent

On May 8, 2010, at 2:13 PM, Max Bolingbroke wrote:

> Hi Laurent,
> 
> Thanks a lot for your reply. I've installed LLVM trunk but I can't see
> the macro you talk about - it looks like llvm.h is going to import
> (the now missing) llvm/ModuleProvider.h whatever happens!
> 
> What do I need to change to make this build?
> 
> Cheers,
> Max
> 
> On 8 May 2010 21:37, Laurent Sansonetti <lsansonetti at apple.com> wrote:
>> Hi,
>> 
>> Unfortunately the 2.7 release will not work out of the box with MacRuby 0.6. The API change is not an issue (there is a compiler macro to make this work), but 2.7 ships with a regression regarding constant floats (fixed later in LLVM trunk).
>> 
>> Sorry about that.
>> 
>> Laurent
>> 
>> On May 8, 2010, at 12:16 PM, Max Bolingbroke wrote:
>> 
>>> Hi,
>>> 
>>> The LLVM release notes say that MacRuby v0.6 will work with 2.7
>>> (http://llvm.org/releases/2.7/docs/ReleaseNotes.html), but I'm having
>>> trouble with it:
>>> 
>>> """
>>> $ rake
>>> (in /Users/mbolingbroke/Programming/Checkouts/MacRuby-0.6)
>>> /usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new
>>> rm miniprelude.c.new
>>> /usr/bin/g++-4.2 -I/usr/local/include  -D_DEBUG -D_GNU_SOURCE
>>> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2   -fno-rtti
>>> -fno-common -Woverloaded-virtual -I. -I./include -g -Wall -arch i386
>>> -arch x86_64 -Wno-parentheses -Wno-deprecated-declarations -Werror
>>> -I./icu-1060 -c main.cpp -o main.o
>>> In file included from main.cpp:8:
>>> llvm.h:12:33: error: llvm/ModuleProvider.h: No such file or directory
>>> In file included from main.cpp:17:
>>> vm.h:602: error: ISO C++ forbids declaration of
>>> ‘ExistingModuleProvider’ with no type
>>> vm.h:602: error: expected ‘;’ before ‘*’ token
>>> In file included from main.cpp:8:
>>> llvm.h:12:33: error: llvm/ModuleProvider.h: No such file or directory
>>> In file included from main.cpp:17:
>>> vm.h:602: error: ISO C++ forbids declaration of
>>> ‘ExistingModuleProvider’ with no type
>>> vm.h:602: error: expected ‘;’ before ‘*’ token
>>> lipo: can't figure out the architecture type of:
>>> /var/folders/4j/4jTZECFrFIyDlJjF8ivIeE+++TI/-Tmp-//ccJH4WrV.out
>>> rake aborted!
>>> """
>>> 
>>> Perhaps you didn't find time to support LLVM 2.7 in the v0.6 timeframe
>>> after all? Or is this unexpected behaviour?
>>> 
>>> Cheers,
>>> Max
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
>> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list