ruby / fiddle

A libffi wrapper for Ruby.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hsbt opened this issue · comments

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.

It seems that we need to wait a fix in upstream: libffi/libffi#571
But it seems that there is a workaround for it: Homebrew/homebrew-core#58092

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

libffi/libffi#565 may be related too.