Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Building YARV

0 views
Skip to first unread message

Jim Freeze

unread,
Aug 13, 2005, 11:07:45 AM8/13/05
to
Hi

I am trying to build ruby-1.9.0 with YARV so I can run rite, but
didn't make it very far.
I downloaded the suggested revision of ruby with:

cvs -z4 -d :pserver:anon...@cvs.ruby-lang.org:/src co -D "Mar 4
06:00:00 2005 UTC" ruby

and tried to apply the patch, but it failed:

patch eval.c evalc.patch
patching file eval.c
Hunk #2 succeeded at 900 (offset -66 lines).
Hunk #3 succeeded at 916 (offset -66 lines).
Hunk #4 succeeded at 950 (offset -66 lines).
Hunk #5 succeeded at 4553 (offset -171 lines).
Hunk #6 succeeded at 4936 (offset -184 lines).
Hunk #7 succeeded at 4957 (offset -184 lines).
Hunk #8 succeeded at 5182 (offset -184 lines).
Hunk #9 succeeded at 5628 (offset -261 lines).
Hunk #10 succeeded at 5717 (offset -262 lines).
Hunk #11 FAILED at 5969.
Hunk #12 succeeded at 6042 (offset -208 lines).
Hunk #13 succeeded at 6053 with fuzz 2 (offset -208 lines).
Hunk #14 FAILED at 6646.
Hunk #15 succeeded at 7793 (offset -244 lines).
2 out of 15 hunks FAILED -- saving rejects to file eval.c.rej

A clarification of this process would be appreciated.

Thanks
--
Jim Freeze


Jim Freeze

unread,
Aug 13, 2005, 11:16:00 AM8/13/05
to
Ok, never mind.

I used the patch inside the YARV tar file (instead of from the
website) and it worked.


--
Jim Freeze


Jim Freeze

unread,
Aug 13, 2005, 11:24:55 AM8/13/05
to
Ok

Maybe I spoke too soon.
During make I now get this problem:

% make
...
gcc main.o libruby-static.a -ldl -lm -o miniruby -g -O2
ld: Undefined symbols:
_objc_msgSend
make: *** [miniruby] Error 1


--
Jim Freeze


Dominik Bathon

unread,
Aug 13, 2005, 7:07:22 PM8/13/05
to


Here is how I just did it:

get ftp://ftp.ruby-lang.org/pub/ruby/snapshot.tar.gz (when I got it, it
was from 2005.08.13 19:00:00)
and http://www.atdot.net/yarv/yarv-0.2.3.tar.gz

0.2.3 is not on the website but I found it here:
http://www.atdot.net/svn/yarv/trunk/Changes

Then just follow the instructions:

ruby:
patch < ../yarv-0.2.3/evalc.patch
(autoconf)
/configure
make
(make test)
make install

yarv:
ruby extconf.rb
make
(make benchmark)
(make install)

This all worked without problems.

Dominik


Dalibor Sramek

unread,
Aug 14, 2005, 2:45:16 PM8/14/05
to
On Sun, Aug 14, 2005 at 08:07:22AM +0900, Dominik Bathon wrote:
> Here is how I just did it:

> yarv:


> ruby extconf.rb
> make
> (make benchmark)
> (make install)
>
> This all worked without problems.

In case you compile on a BSD variant use gmake instead of make to compile
yarv.

Dalibor Sramek

--
Dalibor Sramek http://www.insula.cz/dali \ In the eyes of cats
/ dalibor...@insula.cz \ all things
/ >H blog http://www.transhumanismus.cz/blog.php \ belong to cats.


Jim Freeze

unread,
Aug 14, 2005, 8:33:11 PM8/14/05
to
On 8/14/05, Dalibor Sramek <da...@insula.cz> wrote:
> On Sun, Aug 14, 2005 at 08:07:22AM +0900, Dominik Bathon wrote:
> > Here is how I just did it:
>
> > yarv:
> > ruby extconf.rb
> > make
> > (make benchmark)
> > (make install)
> >
> > This all worked without problems.
>
> In case you compile on a BSD variant use gmake instead of make to compile
> yarv.

The above worked on OS X, but thanks for the tip. I'll remember that when
I put it on FreeBSD.

Jim

>
> Dalibor Sramek
>
> --
> Dalibor Sramek http://www.insula.cz/dali \ In the eyes of cats
> / dalibor...@insula.cz \ all things
> / >H blog http://www.transhumanismus.cz/blog.php \ belong to cats.
>
>


--
Jim Freeze


0 new messages