Ruby 3.2 (dev) のビルドに Bison 3 以上が必要になる

Ruby 3.2.0-dev のビルドで、手元の Bison が古いと以下のようなエラーになります。

% rbenv install 3.2.0-dev
rbenv: /Users/koic/.rbenv/versions/3.2.0-dev already exists
continue with installation? (y/N) y
To follow progress, use 'tail -f /var/folders/6j/5l8q3y250b97529_tcssrwlm0000gn/T/ruby-build.20221116140826.18556.log' or pass --verbose
Installing openssl-3.0.7...
Installed openssl-3.0.7 to /Users/koic/.rbenv/versions/3.2.0-dev

Cloning https://github.com/ruby/ruby.git...
dateInstalling ruby-master...
Building with YJIT by default because rustc 1.61.0 (fe5b13d68 2022-05-18) is installed; add RUBY_CONFIGURE_OPTS='--disable-yjit' to disable explicitly
ruby-build: using readline from homebrew
ruby-build: using gmp from homebrew

BUILD FAILED (Mac OS X 10.15.7 using ruby-build 20220324-102-g0080511)

Inspect or clean up the working tree at /var/folders/6j/5l8q3y250b97529_tcssrwlm0000gn/T/ruby-build.20221116140826.18556.oLJDwU
Results logged to /var/folders/6j/5l8q3y250b97529_tcssrwlm0000gn/T/ruby-build.20221116140826.18556.log

Last 10 log lines:
compiling regsyntax.c
compiling ruby.c
compiling scheduler.c
compiling shape.c
compiling signal.c
compiling sprintf.c
compiling st.c
parse.tmp.y:12.10-14: require bison 3.0, but have 2.3
make: *** [parse.c] Error 63
make: *** Waiting for unfinished jobs....

以下のように手元の Bison が古いようであれば、brew などで手元の Bison のバージョンを 3 以上にアップグレードしましょう。

% bison --version
bison (GNU Bison) 2.3
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

macOS 標準の Bison が古くて遭遇することがあるかもしれません。この Bison バージョン更新に関して詳しくは以下をどうぞ。

bugs.ruby-lang.org