Please test use-devkit branch

9 views
Skip to first unread message

Luis Lavena

unread,
Aug 6, 2010, 9:05:18 PM8/6/10
to rubyin...@googlegroups.com
Hello,

Wanted to let everybody know that use-devkit branch:

http://github.com/oneclick/rubyinstaller/tree/use-devkit

Now is able to compile all Ruby 1.9 and Ruby 1.8 dependencies using
GCC 4.5.0, including OpenSSL.

Not only that, but uses the same MSYS+MinGW checkout used by the
devkit without all the bash login invocation it used to have.

This prove that the DevKit works :-)

Addition to that, it reduces the amount of extracting-over-extracting
when running tasks the second time. I know, is not very smart, but
works.

Also, while doing that, decided that copying Ruby source code when
working with a checkout or using LOCAL (using a git checkout or
something) was too much. it now just uses the source as reference.

So far 1.8.7-p299, 1.9.2-rc2 and r28875 of ruby_1_9_2 branch compiled
successfully with all the extensions.

I had introduced some changes that other pair of eyes could provide
more feedback (the more the better).

If no critical issue is raised, this will get merged back to master
with the goal of getting 1.9.2 in proper shape for it's upcoming
release.

This overrules gcc-4-5 branch I created before, seems a saner approach
than the one I took.

Please let me know any other issue you might find.

Have a nice weekend.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Boško Ivanišević

unread,
Aug 7, 2010, 11:10:50 AM8/7/10
to rubyin...@googlegroups.com
On Sat, Aug 7, 2010 at 3:05 AM, Luis Lavena <luisl...@gmail.com> wrote:
Hello,

Wanted to let everybody know that use-devkit branch:

http://github.com/oneclick/rubyinstaller/tree/use-devkit

Now is able to compile all Ruby 1.9 and Ruby 1.8 dependencies using
GCC 4.5.0, including OpenSSL.
 
Ruby 1.9.2-rc2 is built fine on Win 7 x86 and 1.8.6 rails with the following error

In file included from ../../../ruby_1_8/win32/win32.h:30:0,
                 from ../../../ruby_1_8/defines.h:183,
                 from ../../../ruby_1_8/ruby.h:37,
                 from ../../../ruby_1_8/ext/socket/socket.c:13:
z:\projects\ruby\rubyinstaller\sandbox\devkit\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/ws2tcpip.h:272:13: error: two or more data types in declaration specifiers
make[1]: *** [socket.o] Error 1
make[1]: Leaving directory `/z/projects/ruby/rubyinstaller/sandbox/ruby18_build/ext/socket'
make: *** [all] Error 1
rake aborted!
Command failed with status (2): [make...]

--
Regards,
Boško Ivanišević

Jon

unread,
Aug 7, 2010, 1:16:45 PM8/7/10
to rubyin...@googlegroups.com
> Please let me know any other issue you might find.

Building on Win7 Ultimate 32-bit using MRI 1.8.7p299 and running

rake ruby19 local="c:\Users\Jon\Documents\RubyDev\ruby-trunk"


I see the following problems:

1) sandbox/openssl is not removed via a rake clean; attached patch fixes the problem.

2) case sensitivity in "local" command line environment var. When the drive letter in local="c:\..." is uppercased to local="C:\..." the problem goes away and 28908 built without error.

make[1]: Leaving directory `/c/Users/Jon/Documents/RubyDev/rubyinstaller-trunk/sandbox/src-libyaml/win32'
cd -
touch C:/Users/Jon/Documents/RubyDev/rubyinstaller-trunk/sandbox/.checkpoints/.yaml-install
Activating libyaml version 0.1.3
rake aborted!
different prefix: "c:/" and "C:/Users/Jon/Documents/RubyDev/rubyinstaller-trunk/sandbox/ruby19_build"


3) When attempting to build with JRuby 1.5.1

echo executable host ruby is required. use --with-baseruby option.; false -I../../../ruby-trunk ../../../ruby-trunk/tool/compile_prelude.rb ../../../ruby-trunk/prelude.rb miniprelude.c
executable host ruby is required. use --with-baseruby option.
make: *** [miniprelude.c] Error 1

0001-cleanup-openssl-build-artifacts.patch

Luis Lavena

unread,
Aug 7, 2010, 5:07:44 PM8/7/10
to rubyin...@googlegroups.com
2010/8/7 Boško Ivanišević <bosko.iv...@gmail.com>:

>
> Ruby 1.9.2-rc2 is built fine on Win 7 x86 and 1.8.6 rails with the following
> error
> In file included from ../../../ruby_1_8/win32/win32.h:30:0,
>                  from ../../../ruby_1_8/defines.h:183,
>                  from ../../../ruby_1_8/ruby.h:37,
>                  from ../../../ruby_1_8/ext/socket/socket.c:13:
> z:\projects\ruby\rubyinstaller\sandbox\devkit\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/ws2tcpip.h:272:13:
> error: two or more data types in declaration specifiers
> make[1]: *** [socket.o] Error 1
> make[1]: Leaving directory
> `/z/projects/ruby/rubyinstaller/sandbox/ruby18_build/ext/socket'
> make: *** [all] Error 1
> rake aborted!
> Command failed with status (2): [make...]

Thank you.

I'm seriously thinking we should deprecate Ruby 1.8.6 support,
specially since some of the fixes we push to 1.8.7 haven't reached
1.8.6 branch yet.

Luis Lavena

unread,
Aug 7, 2010, 5:12:14 PM8/7/10
to rubyin...@googlegroups.com
On Sat, Aug 7, 2010 at 2:16 PM, Jon <jon.f...@gmail.com> wrote:
>> Please let me know any other issue you might find.
>
> Building on Win7 Ultimate 32-bit using MRI 1.8.7p299 and running
>
> rake ruby19 local="c:\Users\Jon\Documents\RubyDev\ruby-trunk"
>
>
> I see the following problems:
>
> 1) sandbox/openssl is not removed via a rake clean; attached patch fixes the problem.
>

Thank you, adding.

> 2) case sensitivity in "local" command line environment var.  When the drive letter in local="c:\..." is uppercased to local="C:\..." the problem goes away and 28908 built without error.
>
> make[1]: Leaving directory `/c/Users/Jon/Documents/RubyDev/rubyinstaller-trunk/sandbox/src-libyaml/win32'
> cd -
> touch C:/Users/Jon/Documents/RubyDev/rubyinstaller-trunk/sandbox/.checkpoints/.yaml-install
> Activating libyaml version 0.1.3
> rake aborted!
> different prefix: "c:/" and "C:/Users/Jon/Documents/RubyDev/rubyinstaller-trunk/sandbox/ruby19_build"
>

Pathname issues, I hate it.

>
> 3) When attempting to build with JRuby 1.5.1
>
> echo executable host ruby is required.  use --with-baseruby option.; false -I../../../ruby-trunk ../../../ruby-trunk/tool/compile_prelude.rb ../../../ruby-trunk/prelude.rb miniprelude.c
> executable host ruby is required. use --with-baseruby option.
> make: *** [miniprelude.c] Error 1
> rake aborted!
> Command failed with status (2): [make...]
>

JRuby is not supported as baseruby for building 1.9.x, it tries to
find "ruby.exe", and not "jruby.exe".

I would rather prefer you use MRI to build MRI ;-)

You know, less things to think could fail :-D

Jon

unread,
Aug 7, 2010, 9:46:13 PM8/7/10
to rubyin...@googlegroups.com
> > 3) When attempting to build with JRuby 1.5.1
> >
> > echo executable host ruby is required.  use --with-baseruby option.; false -I../../../ruby-trunk ../../../ruby-trunk/tool/compile_prelude.rb ../../../ruby-trunk/prelude.rb miniprelude.c
> > executable host ruby is required. use --with-baseruby option.
> > make: *** [miniprelude.c] Error 1
> > rake aborted!
> > Command failed with status (2): [make...]
> >
>
> JRuby is not supported as baseruby for building 1.9.x, it tries to
> find "ruby.exe", and not "jruby.exe".
>
> I would rather prefer you use MRI to build MRI ;-)

Sometimes the curiousity gets the best of all of us...attached is the killer patch I know you've been waiting for ;)

0001-building-with-other-impls.patch

vo.x

unread,
Aug 8, 2010, 5:02:34 PM8/8/10
to RubyInstaller
Building RC2 on Win7 32-bit using MRI 1.9.2-RC1 works fine for me.

Luis Lavena

unread,
Aug 8, 2010, 5:43:25 PM8/8/10
to rubyin...@googlegroups.com
On Sat, Aug 7, 2010 at 10:46 PM, Jon <jon.f...@gmail.com> wrote:
>>
>> I would rather prefer you use MRI to build MRI ;-)
>
> Sometimes the curiousity gets the best of all of us...attached is the killer patch I know you've been waiting for ;)
>

Thank you for the patch, however, it doesn't work. MRI do some things
that JRuby do not understand, and crash:

http://gist.github.com/514592

Going to stash this for other time:

http://gist.github.com/514593

Jon

unread,
Aug 8, 2010, 5:57:58 PM8/8/10
to rubyin...@googlegroups.com
> Thank you for the patch, however, it doesn't work. MRI do some things
> that JRuby do not understand, and crash:
>
> http://gist.github.com/514592

Sadly, yes http://groups.google.com/group/jruby-users/browse_thread/thread/b7552d4241f36a98


And IronRuby 1.1 doesn't even get that far :(

[C:\Users\Jon\Documents\RubyDev\rubyinstaller-trunk]rake ruby19 local="C:\Users\Jon\Documents\RubyDev\ruby-trunk"
(in C:/Users/Jon/Documents/RubyDev/rubyinstaller-trunk)
mkdir -p sandbox/extract_utils
rake aborted!
Zip end of central directory signature not found

I've lost my curiousity on this one....

Roger Pack

unread,
Aug 9, 2010, 7:13:18 AM8/9/10
to rubyin...@googlegroups.com
> Building RC2 on Win7 32-bit using MRI 1.9.2-RC1 works fine for me.

does "rake" work from the built RC2?
-r

Reply all
Reply to author
Forward
0 new messages