colibri
Hi,
MacBook Pro (13-inch, M1, 2020)
MacOS Big Sur 11.3.1
Homebrew (all updated to the latest version)
After updating to erlang (24.0 OTP) and elixir (1.12)
colibri@colibri-core ~ % erl
zsh: segmentation fault erl
colibri@colibri-core ~ % iex
zsh: segmentation fault iex
colibri@colibri-core ~ % mix local.rebar
zsh: segmentation fault mix local.rebar
colibri@colibri-core ~ % mix local.hex
zsh: segmentation fault mix local.hex
colibri@colibri-core ~ % mix archive.install hex phx_new
zsh: segmentation fault mix archive.install hex phx_new
after a while
colibri@colibri-core ~ % iex
Erlang/OTP 24 [erts-12.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]
Interactive Elixir (1.12.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo
(l)oaded (v)ersion (k)ill (D)b-tables (d)istribution
a
colibri@colibri-core ~ % iex
zsh: segmentation fault iex
Trending in Questions
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hello,
I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind.
However, when I launch mix phx.server, I get an error...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m working on a small exercise involving update_in/3, and I came up with this solution:
data = %{
name: "Periodic Table",
category:...
New
I’ve got trouble wrapping my head around the order in which functions are called in this snippet (from Phoenix’s authentication):
toke...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
benwilson512
How did you install Erlang / Elixir?
dmitrykleymenov
I see
[jit], could it be related that support of M1 is only in development? https://twitter.com/josevalim/status/1395702461776728064colibri
brew install erlang(elixir) - еverything was working fine beforeupdated yesterday -
brew update && brew upgrade- and this problem appearedP.S I always have fresh erlang/elixir updates on M1, previous versions worked fine, earlier there was a problem with
:observer.start(), I fixed it.colibri
Yes, the problem is only on the M1
iMac 3,5 GHz Intel Core i5, works great after the upgrade erlang/elixir
dmitrykleymenov
So, just turn it off
colibri
Thanks!Yes, I did it yesterday, but this is a temporary solution, the problem of building with
--enable-jitoption remains the same.We have updated Erlang(24.0.1 OTP) and Elixir (1.12.0) installed via Homebrew.
When running interactive mode (
erloriex) we got asegmentation faulterror.For correctly work Erlang/Elixir, we need to disable
jitoption in Erlang and update wxmac from version3.0.5.1to version3.1.4to make:observer.start()work properlySo, let’s do it…
STEPS:brew edit erlang--disable-jitoption todef install→argslistbrew edit wxmacurlandsha256with theseurl "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.4/wxWidgets-3.1.4.tar.bz2"sha256 "3ca3a19a14b407d0cdda507a7930c2e84ae1c8e74f946e0144d2fa7d881f1a94"bottlesection"--enable-compat28",option todef install→argslistbrew upgrade wxmacDONEbjorng
I can’t reproduce your problem.
It should not be possible to have the JIT enabled in OTP 24 on an M1 Mac, because the
configurescript will complain if you try to enable the JIT:If you run ./configure without any other options, the JIT will be automatically disabled unless the platform is x86_64.
I can only assume that something very weird happened when homebrew upgraded the version of Erlang to OTP 24. I can’t reproduce the problem myself, because I have never used homebrew before and can’t do the same update and upgrade that you did. When I downloaded homebrew for the first time and installed Erlang on my M1 Mac, it worked immediately without any problems.
I would recommend that you remove the
--disable-jitline from the homebrew formula and force homebrew to rebuild Erlang from scratch. That should work. If not, I would be very interested in build logs to see what parameters homebrew passed toconfigureand which environment variables that were set. If it happens to be a bug in theconfigurescript for the OTP that would incorrectly enable the JIT on a M1 under some circumstances, I would want to fix it.colibri
Where do I send the installation log(
01.configureand if needed02.make)?bjorng
No need to send any more files. I see the problem:
The build system type is determined as
x86_64-apple-darwin20.4.0, not asaarch64-apple-darwin20.4.0as it should be on an M1 Mac. That will causeconfigureto enable the JIT.So it seems that on your M1 Mac homebrew is running under Rosetta emulation (emulating an Intel Mac), at least when the
configurescript is run. I don’t know why that is happening. Did the first versions of homebrew for M1 Macs run under emulation and you are still using that version? With my recently installed homebrew, theconfigurescript correctly determines the build type to beaarch64-apple-darwin20.4.0.colibri
I got this laptop in December 2020.
Installed Homebrew right away, it was only rosette-enabled at the time.
Thank you very muchfor pointing out this problem and for pointing out a solution.STEPS:Homebrew/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"Homebrew/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"DONEP.S It’s hard to be among the pioneers