Shiny new Mac Studio. Installed Erlang using kerl as usual. Noted crypto module (as well as unixodbc and the usual wx) failed. I could probably have coped with those omissions in the short term except that rebar3 requires the crypto module.
So, has anyone else trodden this path and have a recipe to follow to get OpenSSL built for darwin-arm64 and hence Erlang/OTP to build the crypto module?
Turns out all the work has been done by the OTP and kerl teams, all that is left is the OpenSSL install. I used the following runes:
git clone git://git.openssl.org/openssl.git
cd openssl
export MACOSX_DEPLOYMENT_TARGET=12
./Configure enable-rc5 zlib darwin64-arm64-cc no-asm
make
make test
sudo make install
wxWidgets 3.1.6 contains changes that broke Erlang’s wx binding. The issue was reported here and fixed here. So if you want wx you either need to apply that fix, or rollback your wxWidget version (or wait for a release that fixes the problem).