Thin and Puma fail with similar issues - ERROR: Failed to build gem native extension on Mac with [email protected]

The Puma team pointed me to a temporary solution for compiling puma.

gem install puma:4.3.5 -- --with-cflags="-Wno-error=implicit-function-declaration"

I used this variant for the latest version

gem install puma -- --with-cflags="-Wno-error=implicit-function-declaration"

I was also able to use this same technique to with thin, but I have not tested whether the gem works.

gem install thin -- --with-cflags="-Wno-error=implicit-function-declaration"

bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"

opened https://github.com/macournoyer/thin/issues/370 to get it fixed or documented in thin