Sorry if this is duplicated, but I couldn't find any issue with this specific error.
I'm getting this error when I try to install OTP 24 through asdf. I've tried any solution for any problem reported with OTP 24 on macOS Big Sur that I could find, but nothing works. I've tried installing version 24.0.1 as well, with no success.
asdf_24.0 is not a kerl-managed Erlang/OTP installation
The asdf_24.0 build has been deleted
Extracting source code
Building Erlang/OTP 24.0 (asdf_24.0), please wait...
APPLICATIONS DISABLED (See: /Users/leandro/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_build_24.0.log)
* jinterface : No Java compiler found
* odbc : ODBC library - link check failed
DOCUMENTATION INFORMATION (See: /Users/leandro/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_build_24.0.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Build failed.
make[3]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 45821 Segmentation fault: 11 erlc -W -Werror +debug_info -DUSE_ESOCK=true -I/Users/leandro/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/lib/stdlib/include -Werror -o../ebin yecc.erl
make[3]: *** [../ebin/yecc.beam] Error 139
/bin/sh: line 1: 45824 Segmentation fault: 11 erlc -W -Werror +debug_info -DUSE_ESOCK=true -I/Users/leandro/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/lib/stdlib/include -Werror -o../ebin yeccparser.erl
make[3]: *** [../ebin/yeccparser.beam] Error 139
/bin/sh: line 1: 45820 Segmentation fault: 11 erlc -W -Werror +debug_info -DUSE_ESOCK=true -I/Users/leandro/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/lib/stdlib/include -Werror -o../ebin leex.erl
make[3]: *** [../ebin/leex.beam] Error 139
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [secondary_bootstrap_build] Error 2
Looks like this is related to https://github.com/kerl/kerl/issues/371, which is in turn related to https://github.com/erlang/otp/issues/4821.
A temporary fix is suggested in this comment: https://github.com/erlang/otp/issues/4821#issuecomment-840342780 though I'm not yet clear on how to apply the patch (I'm not seeing Kerl present on my machine…)
@LeandroLM I was able to find the Kerl script in ~/.asdf/plugins/erlang/kerl and then just searched for the relevant lines based on the suggested patch. After changing those lines, I was able to successfully run asdf install erlang 24.0.1 on Mac OS 10.15.7.
Note that you _don't_ need to downgrade autoconf as they mention in step #1 of the suggested fix—so long as you're installing erlang 24.0.1.
@bencoppock I've tried these steps and still got the same error. I'm suspecting this is something specific to my machine, since I didn't find anyone else with the same error. Thanks for the help anyway!
@LeandroLM did you manage to work around this? I'm getting the same error with 24.0.2.
@neilberkman Unfortunately I did not. Nothing works here, even installing through brew doesn't work.
Thanks @LeandroLM, I'll comment here if I figure anything out.
@neilberkman and for anyone with the same issue, the problem was that I was using a M1 with configuration transfered from my old Intel machine. I restored my mac and made a fresh installation (for another reasons). After this I was able to install OTP 24 without any problems. You can also try to set homebrew path as pointed out on this comment, but it didn't work for me.
Most helpful comment
Thanks @LeandroLM, I'll comment here if I figure anything out.