xlive

xlive

Hey there!

I’m testing MacOS Sonoma 14.0 Beta (currently in a M1 MBPro) as I wanted to get hands on it for some future projects..
After the upgrade, I’ve discovered I cannot use iex, mix or any erlang related command anymore :scream:
I’ve tried with my current installation (asdf) and also installing elixir with brew. Any of them works unfortunately..

The error I get is the following:

mix compile
[1]    69035 bus error  mix compile

But I can still run python, ruby and the rest of my usual tools.

Has anyone run into the same problem?
Or do you know a way how could I debug better the error maybe?

Thanks a lot community!

Showing Posts 1 to 10

dimitarvp

dimitarvp

Shenanigans of ARM vs. Intel processor instructions, maybe? :thinking: You got Rosetta installed? If so, have you made sure you’re running the ARM version of Erlang/Elixir?

xlive

xlive OP

thanks for answering!!
I don’t have Rosetta nope :confused: (or at least I wasn’t aware of it)
I was lucky enough that when I got the laptop this was already solved :+1:

Edit: running pgrep oahd returns me an int, so looks like I have it.. the problem is that I haven’t changed anything about the versions installed (aside from MacOS) recently, so that’s why I was wondering if the update was the problem..

Raf1

Raf1

I am experiencing exactly the same problem…
Any updates on a potential fix?

Thanks!

xlive

xlive OP

Not yet.. Looks like not many people is upgrading so we don’t have much visibility..
I hope someone gives us some light on this soon :crossed_fingers:

jhogberg

jhogberg

Erlang Core Team

We don’t test under Rosetta (we only test native Intel JIT or native ARM JIT), so it’s possible that we missed something.

If someone could build from source and run bin/cerl -lldb and give us a view of the crash, that would be of great help.

xlive

xlive OP

Hey @jhogberg ! Thanks for trying to help us :+1:
I’ve just installed Erlang from source and it works correctly and without any errors (even in the smoke test).
Looks like this error could be coming then from ASDF and brew binaries maybe?
I will try now installing Elixir from source too!

Edit: Same for Elixir! Installing from source makes it work as expected.
@Raf1 you could do the same as a workaround for now :+1:

xlive

xlive OP

Let me know if I can do something to give you insights about non-source installations :pray:

Pasting here the smoke test results

Nicd

Nicd

asdf also builds Erlang from sources.

jhogberg

jhogberg

Erlang Core Team

If you could attach lldb to the binaries that crash that’d also be helpful.

Yes, so it’s rather strange that one works and the other does not. Perhaps asdf runs under Rosetta for some reason?

xlive

xlive OP

How could I do that?
When I run bin/cerl -lldb as you said before, I don’t get any error, just the following:

$ bin/cerl -lldb

(lldb) target create "beam.smp"
Current executable set to 'beam.smp' (arm64).
(lldb) settings set -- target.run-args  "--" "-root" "/Users/xavierrodriguez/Downloads/otp_src_26.0" "-bindir" "/Users/xavierrodriguez/Downloads/otp_src_26.0/bin/aarch64-apple-darwin23.0.0" "-progname" "/Users/xavierrodriguez/Downloads/otp_src_26.0/bin/cerl" "--" "-home" "/Users/xavierrodriguez" "--"
(lldb) command source -s 0 '/tmp/.cerllldb.44427'
Executing commands in '/tmp/.cerllldb.44427'.
(lldb) env TERM=dumb
(lldb) command script import /Users/xavierrodriguez/Downloads/otp_src_26.0/erts/etc/unix/etp.py

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews