OmegaNalphA

OmegaNalphA

Asdf install erlang 25.2 failing, unsure of cause, on Mac OSX Monterey 12.5.1 M1 Pro

Hi all,

We recently upgraded from erlang 23.2.7 to 25.2, the rest of the team had no issue running asdf install, but I’ve been consistently running into errors. Most recently I tried setting the kerl flags, and now getting a rather cryptic output. Would love any help you’d be able to provide.

The output:

[aaggarwal:...roadcast-work/broadcast-api]$ export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@1.1)"                                                                                                          
asdf install erlang 25.2
elixir 1.13.4-otp-25 is already installed
asdf_25.2 is not a kerl-managed Erlang/OTP installation
The asdf_25.2 build has been deleted
Extracting source code
Building Erlang/OTP 25.2 (asdf_25.2), please wait...
APPLICATIONS DISABLED (See: /Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_build_25.2.log)
 * jinterface     : Java compiler disabled by user

Build failed.
gmake[5]: Leaving directory '/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/lib/megaco/src/flex'
gmake[4]: *** [/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/make/run_make.mk:35: opt] Error 2
gmake[4]: Leaving directory '/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/lib/megaco/src/flex'
gmake[3]: *** [/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/make/otp_subdir.mk:29: opt] Error 2
gmake[3]: Leaving directory '/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/lib/megaco/src'
gmake[2]: *** [/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/make/otp_subdir.mk:29: opt] Error 2
gmake[2]: Leaving directory '/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/lib/megaco'
gmake[1]: *** [/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/make/otp_subdir.mk:29: opt] Error 2
gmake[1]: Leaving directory '/Users/aaggarwal/.asdf/plugins/erlang/kerl-home/builds/asdf_25.2/otp_src_25.2/lib'
gmake: *** [Makefile:518: libs] Error 2

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

The build log doesn’t add much more information, can post that in the thread if it helps.

Running this on MacOSX Monterey 12.5.1 on Apple M1. The terminal is a rosetta terminal and should have everything linked and installed. Here is a list of the brew formulae currently on the machine.

[aaggarwal:...roadcast-work/broadcast-api]$ brew list                                                                                                                                                                                        (main)
==> Formulae
asdf			elasticsearch-full	glib			krb5			libreadline-java	libxdmcp		little-cms2		openssl@3		railway
autoconf		fontconfig		gmp			libffi			libtiff			libxext			lz4			pcre			readline
automake		fop			graphite2		libgcrypt		libtool			libxml2			lzo			pcre2			unixodbc
ca-certificates		freetype		harfbuzz		libgpg-error		libx11			libxrender		m4			pixman			xorgproto
cairo			gettext			icu4c			libical			libxau			libxslt			openjdk			postgresql		xz
coreutils		giflib			jpeg-turbo		libpng			libxcb			libyaml			openssl@1.1		postgresql@14		zstd

Any help would be appreciated, thank you!

Marked As Solved

OmegaNalphA

OmegaNalphA

@Nicd was correct, our team was trying to use Rosetta as much as we could but unfortunately asdf does not play nice with rosetta terminals. deleteing asdf, brew, and anything downloaded by either, then reinstalling on an arm terminal fixed the issue. Hope this helps!

Also Liked

adamu

adamu

asdf-erlang is great until it breaks, then it’s a huge timesink to debug.

You will probably have more success using kerl directly.

For example:

Set KERL_DEFAULT_INSTALL_DIR (I use ~/.kerl/installs/), then:

kerl build 25.2 25.2
kerl install 25.2

Then put this in your profile:

. $(kerl path 25.2)/activate
egze

egze

From personal experience - ARM is pretty smooth sailing for my team. We don’t do anything special and it works for folks on Intel as well. Only thing we do is - find docker images that are built with both architectures for things like Postgres, Rabbit, etc.

Where Next?

Popular in Questions Top

bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement