Building YARV

J

Jim Freeze

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:[email protected]:/src co -D "Mar 4
06:00:00 2005 UTC" ruby

and tried to apply the patch, but it failed:
=20
patch eval.c evalc.patch=20
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
--=20
Jim Freeze
 
J

Jim Freeze

Ok, never mind.

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


Hi
=20
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:
=20
cvs -z4 -d :pserver:[email protected]:/src co -D "Mar 4
06:00:00 2005 UTC" ruby
=20
and tried to apply the patch, but it failed:
=20
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
=20
A clarification of this process would be appreciated.
=20
Thanks


--=20
Jim Freeze
 
J

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 =20
ld: Undefined symbols:
_objc_msgSend
make: *** [miniruby] Error 1


--=20
Jim Freeze
 
D

Dominik Bathon

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


Here is how I just did it:

get ftp://ftp.ruby-lang.org/pub/ruby/snapshot.tar.gz (when I got it, it =20
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: =20
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top