Segmentation fault after update elixir and erlang

Thanks!
Yes, I did it yesterday, but this is a temporary solution, the problem of building with --enable-jit option remains the same.

We have updated Erlang(24.0.1 OTP) and Elixir (1.12.0) installed via Homebrew.
When running interactive mode (erl or iex) we got a segmentation fault error.
For correctly work Erlang/Elixir, we need to disable jit option in Erlang and update wxmac from version 3.0.5.1 to version 3.1.4 to make :observer.start() work properly
So, let’s do it…

STEPS:

  1. Edit Formula brew edit erlang
  2. Add --disable-jit option to def installargs list
  3. Save Formula
  4. Edit Formula brew edit wxmac
  5. Replace the lines url and sha256 with these
    url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.4/wxWidgets-3.1.4.tar.bz2"
    sha256 "3ca3a19a14b407d0cdda507a7930c2e84ae1c8e74f946e0144d2fa7d881f1a94"
  6. Comment bottle section
  # bottle do
  #   sha256 cellar: :any, arm64_big_sur: "f8d6ccae11c8d99b893e2605ca272a376a374faac8864304d1cdf544c6152421"
  #   sha256 cellar: :any, big_sur:       "95b66fefa42f869430da0597abb27500d551d5f99662e285c4f0d3a9e2800bdf"
  #   sha256 cellar: :any, catalina:      "110aa0b2134d8bff1647de0cd8500f160133794b347f789bba3e1894b991b788"
  #   sha256 cellar: :any, mojave:        "5f703423fc3f1e36d647a2d8be2d271a92f5d60f49ceba8e3478391bbd4f5303"
  #   sha256 cellar: :any, high_sierra:   "1de8aa03e1c50af387888ffa51cfa4e0c99d158f25edb0acbf312e10c629a31d"
  # end
  1. Add "--enable-compat28", option to def installargs list
  2. Save Formula
  3. brew upgrade wxmac

DONE

colibri@colibri-core ~ % iex
Erlang/OTP 24 [erts-12.0.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [dtrace]

Interactive Elixir (1.12.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 
1 Like