Skip to content

2.6.6 on ARM64 #1946

Dec 28, 2020 · 22 comments · 4 replies
Discussion options

You must be logged in to vote

I was also able to install Ruby 2.6.6 with this

RUBY_CFLAGS=-DUSE_FFI_CLOSURE_ALLOC rbenv install 2.6.6

Just wanted to chime in and confirm that this is safe to do... I didn't really understand what this would actually do so I dug in a bit... wanted to be sure this wouldn't cause unexpected issues down the line*

To cut to the chase...

You can see here that by setting the USE_FFI_CLOSURE_ALLOC macro, the offending function (ffi_prep_closure) is never referenced.

And to confirm that the macro makes sense (the ffi_closure_alloc function is indeed available):

irb(main):001:0> require 'mkmf'
=> true
irb(main):002:0> pkg_config('libffi')
=> ["", "", "-lffi"]
irb(main):003:0> have_library('ff…

Replies: 22 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@philicious
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@guizaols
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mislav
Comment options

Answer selected by mislav
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cilim
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #1699 on March 01, 2022 05:14.