[MacRuby-devel] MacRuby and LLVM 2.7

Laurent Sansonetti lsansonetti at apple.com
Sat May 8 13:37:04 PDT 2010


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



More information about the MacRuby-devel mailing list