-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby 2.5.0 #2143
Ruby 2.5.0 #2143
Conversation
It fails because
instead of
Continuing digging... |
Just tried to build ruby 2.5.0 on Termux, went well with the vanilla source (without any patch) and From the error it seems to be caused by the existing ruby installation on the build system? I tested without ruby installed, maybe I should test the other case... |
seems to be here it's defined: https://github.com/ruby/ruby/blob/5a06ce9e1fae64b10e3fd599c6a6dbbedf5bf3e5/lib/mkmf.rb#L2003 which in turn is defined here: https://github.com/ruby/ruby/blob/5a06ce9e1fae64b10e3fd599c6a6dbbedf5bf3e5/lib/mkmf.rb#L2621
|
Also builds fine with ruby 2.4.3 installed from Termux repo, with or without
|
@tomty89 yeah, it's cross compilation from linux that doesn't work with 2.5... which is required for building termux packages. |
@carlhoerberg it should not have
|
When cross compiling you must. That's how it has gone down before. See the
original Ruby package. It's just some args that has changed. But leaning
towards it being a Ruby build script bug.
…On Feb 16, 2018 15:23, "tomty89" ***@***.***> wrote:
@carlhoerberg <https://github.com/carlhoerberg> it should not have
/usr/bin/ruby at all (we don't need the system ruby to build ruby):
$ find ruby-2.5.0-shared/ -name exts.mk -exec grep 'ruby =' {} \; | uniq
ruby = $(topdir)/miniruby -I'$(topdir)' -I'$(top_srcdir)/lib' \
$ find ruby-2.5.0-shared/ -name Makefile -exec grep 'ruby =' {} \; | uniq
ruby = $(topdir)/miniruby -I'$(topdir)' -I'$(top_srcdir)/lib' -I'$(extout)/$(arch)' -I'$(extout)/common'
$ grep topdir ruby-2.5.0-shared/rbconfig.rb
CONFIG["topdir"] = File.dirname(__FILE__)
$ ./ruby-2.5.0-shared/miniruby --version
ruby 2.5.0p0 (2017-12-25 revision 61468) [aarch64-linux]
$
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2143 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK_Ti2EHJLOMfb55WIsXfKXemMf1cC_ks5tVY9cgaJpZM4SF_LU>
.
|
I guess it make sense. But isn't it supposed to be a requirement that the system ruby is of the same version we are going to build, as the error hinted? |
No
…On Feb 16, 2018 15:38, "tomty89" ***@***.***> wrote:
When cross compiling you must.
I guess it make sense. But isn't it supposed to be a requirement that the
system ruby is of the same version we are going to build, as the error
hinted?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2143 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK_Tq9Bfwf4zWpcGA6fv72vtSw_ybb-ks5tVZLmgaJpZM4SF_LU>
.
|
New clues. Printing out
In Ruby 2.5.0:
|
Found the bug! An argument to a template generator wasn't escaped. Then a second bug where the new capacity argument to String didn't work with old versions of ruby that was used in fileutil, by rbinstall, executed by our local ruby version. |
That is not a bug? That just mean we should build it with ruby 2.4+ (which might be even the case in @fornwall 's build environment) |
Maybe not. Anyway, patched against now.
…On Feb 18, 2018 08:14, "tomty89" ***@***.***> wrote:
Then a second bug where the new capacity argument to String didn't work
with old versions of ruby that was used in fileutil, by rbinstall, executed
by our local ruby version.
That is not a bug? That just mean we should build it with ruby 2.4+ (which
might be even the case in @fornwall <https://github.com/fornwall> 's
build environment)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2143 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK_TrJCARX7DUo6xOyob6xB_JX_T2ttks5tV83PgaJpZM4SF_LU>
.
|
Nice work and sorry for the late response! @carlhoerberg Could you update to ruby 2.5.1, after which I will merge it? |
done, thanks @fornwall |
Thanks! The updated package is now available for installation! Note that I had to build 32-bit variants (arm and i686) with gcc to avoid the following build error with clang:
This is the NDK issue android/ndk#294 which should be fixed in NDK r18. |
Started to implement ruby 2.5.0. But got some problems. It stops compiling at: