ruby / fiddle

A libffi wrapper for Ruby.
BSD 2-Clause "Simplified" License
154 stars 34 forks source link

Build error with `--enable-bundled-libffi` on Apple DTK(arm64) #46

Closed hsbt closed 1 year ago

hsbt commented 4 years ago

I got the following error with the master branch of ruby/ruby repo and --enable-bundled-liffi option on Apple DTK(arm64, Big Sur beta6)

https://gist.github.com/hsbt/c4a6cf7dfaf3839998378e9d55faa330

I have no idea to resolve it yet. I will add the additional comment when I find the solution.

kou commented 4 years ago

It seems that we need to wait a fix in upstream: https://github.com/libffi/libffi/issues/571 But it seems that there is a workaround for it: https://github.com/Homebrew/homebrew-core/pull/58092

We may need to upgrade our bundled libffi to 3.3 to use the workaround.

kou commented 4 years ago

https://github.com/libffi/libffi/pull/565 may be related too.

hsbt commented 1 year ago

same as https://github.com/ruby/fiddle/pull/98#issuecomment-1268187869