asdf-vm / asdf-erlang

Erlang plugin for asdf version manager

Home Page:https://github.com/asdf-vm/asdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mkdir error when installing on Monterey with M1

bpardee opened this issue · comments

Using mac version 12.5.1 with an M1 Max chip, I get the following error during install:

~> export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@1.1)"
~> asdf install erlang 25.1
asdf_25.1 is not a kerl-managed Erlang/OTP installation
No build named asdf_25.1
Extracting source code
Building Erlang/OTP 25.1 (asdf_25.1), please wait...
APPLICATIONS DISABLED (See: /Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/otp_build_25.1.log)
 * jinterface     : Java compiler disabled by user
 * odbc           : ODBC library - link check failed

Building docs...
Release of docs failed.
/usr/bin/install -c -d "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/tools-3.5.3/doc"
/usr/bin/install -c -d "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/tools-3.5.3/doc/chunks"
install: mkdir /Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/tools-3.5.3/doc: File exists
make[4]: *** [/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/tools-3.5.3/doc] Error 71
make[4]: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644 -p ../chunks/* "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/tools-3.5.3/doc/chunks"
make[3]: *** [release_docs] Error 2
make[2]: *** [release_docs] Error 2
make[1]: *** [release_docs] Error 2
make: *** [release_docs] Error 2

Please see /Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/otp_build_25.1.log for full details.

The actual lib that it fails in seems random as the error has occurred for the following libs: tools-3.5.3, debugger-5.3, reltool-0.9, crypto-5.1.2, etc. In one attempt a particular library seems to succeed while a subsequent attempt will fail for that same library.

=== Entering application debugger
/Applications/Xcode.app/Contents/Developer/usr/bin/make - --jobserver-fds=3,13 -j RELEASE_PATH="/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1"   release_docs_spec
make[4]: Nothing to be done for `release_docs_spec'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make - --jobserver-fds=3,13 -j RELEASE_PATH="/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1"   release_docs_spec
make[4]: Nothing to be done for `release_docs_spec'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make - --jobserver-fds=3,13 -j RELEASE_PATH="/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1"   release_docs_spec
/usr/bin/install -c -d "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3/doc"
/usr/bin/install -c -d "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3/doc/chunks"
/usr/bin/install -c -m 644 -p ../chunks/* "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3/doc/chunks"
/usr/bin/install -c -m 644 -p ../../info /Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3
=== Leaving application debugger
=== Entering application debugger
/Applications/Xcode.app/Contents/Developer/usr/bin/make - --jobserver-fds=3,13 -j RELEASE_PATH="/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1"   release_docs_spec
make[4]: Nothing to be done for `release_docs_spec'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make - --jobserver-fds=3,13 -j RELEASE_PATH="/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1"   release_docs_spec
make[4]: Nothing to be done for `release_docs_spec'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make - --jobserver-fds=3,13 -j RELEASE_PATH="/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1"   release_docs_spec
/usr/bin/install -c -d "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3/doc"
/usr/bin/install -c -d "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3/doc/chunks"
install: mkdir /Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3: File exists
make[4]: *** [/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3/doc] Error 71
make[4]: *** Waiting for unfinished jobs....
/usr/bin/install -c -m 644 -p ../chunks/* "/Users/C22986A/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1/release_25.1/lib/debugger-5.3/doc/chunks"
make[3]: *** [release_docs] Error 2
make[2]: *** [release_docs] Error 2
make[1]: *** [release_docs] Error 2
make: *** [release_docs] Error 2

Any help resolving this would be much appreciated!

I ran into an almost identical kind of error albeit on macOS Sonoma 14.4.1, installing OTP 25.3.2.10, and using mise.

The solution ended up being setting this environment variable:

KERL_DOC_TARGETS="chunks"

This removed the error and suffices for my use-case, as I was only looking to include the docs in iex.

I don't have this issue with OTP 26 however.