[MacRuby-devel] [MacRuby] [0.5] rake extensions task fails when building ripper unless 0.5 has already been installed

Laurent Sansonetti lsansonetti at apple.com
Mon Jul 6 16:19:19 PDT 2009


Hi Mike,

Thanks a lot for the report, I think I fixed the problems in r1998.

Sorry for the inconvenience :-)

Laurent

On Jul 6, 2009, at 3:50 PM, Mike Sassak wrote:

> Hello,
>
> I'm trying to build the experimental branch out of SVN, but the rake  
> extensions task fails at line 320 of rakelib/builder.rake when it  
> tries to build the ripper extension with "no such file to load --  
> mkmf (LoadError)". That can be fixed by changing lines 320 (and then  
> 321) of builder.rake to have miniruby include "../../" and "../../ 
> lib" before running extconf.rb and when executing Ripper's Makefile,  
> but at that point the ripper build fails with the following error:
>
>
>
>
> gcc -dynamic -bundle -undefined suppress -flat_namespace -arch i386 - 
> arch x86_64 -o ripper.bundle ripper.o -L. -L/Library/Frameworks/ 
> MacRuby.framework/Versions/0.5/usr/lib   -arch i386 -arch x86_64  - 
> lmacruby
> ld: library not found for -lmacruby
> collect2: ld returned 1 exit status
> ld: library not found for -lmacruby
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/27/271LwlCYGQmE75LcbyeFIU++ 
> +TI/-Tmp-//cccgTd4l.out (No such file or directory)
> make: *** [ripper.bundle] Error 1
>
>
> From the look of it, the problem is that gcc isn't passed a -L flag  
> for the root of the build, and I didn't have a previous version of  
> MacRuby 0.5 installed underneath /Library/Frameworks, so it can't  
> find libmacruby, but my knowledge of the GCC toolchain and  
> extconf.rb fail me at this point. rake macruby works just fine, as  
> do rake spec:ci and rake bench:ci, and building revision 1988 works  
> like a charm; it's only after enabling the ripper build that I start  
> having problems.
>
>
>
>
> I can get experimental HEAD compiled and installed by first building  
> and installing rev 1988 and then installing HEAD, but I figured  
> that's probably not the way things are supposed to work. :-)
>
>
>
>
> Any help would be appreciated,
> Mike
> _______________________________________________
> 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