Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erlang 26.2.1 fails on M1 Sonoma 14.1.2 - linker command failed #297

Open
belgoros opened this issue Jan 10, 2024 · 3 comments
Open

Erlang 26.2.1 fails on M1 Sonoma 14.1.2 - linker command failed #297

belgoros opened this issue Jan 10, 2024 · 3 comments

Comments

@belgoros
Copy link

I got previous version (25) installed without problems:

asdf list elixir
 *1.15.6-otp-25
  1.16.0-otp-25
➜  ~ asdf list erlang
 *25.3.2.6

I tried all the options provided in README as follows:

export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"

but it sill fails with:

asdf install erlang 26.2.1
asdf_26.2.1 is not a kerl-managed Erlang/OTP installation
The asdf_26.2.1 build has been deleted
Extracting source code
Building Erlang/OTP 26.2.1 (asdf_26.2.1), please wait...
APPLICATIONS DISABLED (See: /Users/serguei/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_build_26.2.1.log)
 * jinterface     : Java compiler disabled by user
 * odbc           : ODBC library - link check failed

Build failed.
      _gen_digest in libei.a[2](ei_connect.o)
      _gen_digest in libei.a[2](ei_connect.o)
      _recv_challenge_ack in libei.a[2](ei_connect.o)
      _recv_challenge_ack in libei.a[2](ei_connect.o)
      ...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Users/serguei/.asdf/plugins/erlang/kerl-home/builds/asdf_26.2.1/otp_src_26.2.1/lib/erl_interface/bin/aarch64-apple-darwin23.1.0/erl_call] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [erl_interface] Error 2
@eric-hostalery
Copy link

Seems like the issue is in OTP, should be fixed in the next patch release: erlang/otp#7987

@belgoros
Copy link
Author

belgoros commented Jan 25, 2024

A tiny note to the above issue, - I installed with no problems Erlang 26.2.1 on a fresh & new MacBook Pro M2. So, not sure if uninstalling the previously installed Erlang version(s) could fix that and if M2 installation differs from the M1 chip's one. I also tried the options suggested at the elixirforum without success.

@kernel-io
Copy link

check if you have binutils installed with brew, and if you do, uninstall them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants