Building YARV

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:anonymous@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

Ok, never mind.

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

···

On 8/13/05, Jim Freeze <jimfreeze@gmail.com> wrote:

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:anonymous@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

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

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

···

On Sat, 13 Aug 2005 17:24:55 +0200, Jim Freeze <jimfreeze@gmail.com> wrote:

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

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

Dalibor Sramek

···

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.

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

> 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

···

On 8/14/05, Dalibor Sramek <dali@insula.cz> wrote:

On Sun, Aug 14, 2005 at 08:07:22AM +0900, Dominik Bathon wrote:

Dalibor Sramek

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

--
Jim Freeze