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
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
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
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
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
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
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
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
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 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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #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
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










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