Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS update from version 25.0.4 bundled runtime edition #12

Open
cohawk opened this issue Apr 29, 2024 · 1 comment
Open

macOS update from version 25.0.4 bundled runtime edition #12

cohawk opened this issue Apr 29, 2024 · 1 comment

Comments

@cohawk
Copy link

cohawk commented Apr 29, 2024

Install Erlang-OTP (with openssl) in the same version 25.0.4 as the bundled runtime edition:

Is there a way to update the erlang version 25.0.4 as the bundled runtime edition?
Where is the bundled runtime version coming from to be able to update it?

Ive attempted for a day+ now attempting to get the iOS example running and cannot get erlang 25.0.4 to build on my machine with wxwidgets.

Intel macOS Ventura 13.6.6 (22G630)
Xcode Version 15.2 (15C500b)

I have attempted brew with multiple versions of wxwidgets and building wxwidgets from source - but I always get the same error when attempting with erlang version 25.0.4.

* wx : Can not link wx program are all developer packages installed?

While Im an a asdf novice and no build/release engineer - I think the issue is the same as this Elixir Forum Thread - “Can not link wx program” error when installing erlang where its an OTP / Xcode issue that was fixed / backported in later versions of OTP - but possibly not 25.0.4?

I thought I could try some later versions of OTP 25 and I can get everything to compile (also after relaxing the elixir 1.13 requirement for 1.14) - the iOS example app immediately crashes after launcing with:

elixir 1.14.3-otp-25
erlang 25.3.2.11

Bridge Server ready. Starting Elixir
setenv ELIXIR_DESKTOP_OS ios
setenv BRIDGE_PORT 23115
setenv HOME /Library/Developer/CoreSimulator/Devices/05A7AC5B-52E3-4336-8007-D882172C6FEC/data/Containers/Data/Application/F59D8C3F-E249-4A37-92CD-BE84876BE7D2/Library/net.cohawk.elixirdesktop.example
setenv BINDIR /Library/Developer/CoreSimulator/Devices/05A7AC5B-52E3-4336-8007-D882172C6FEC/data/Containers/Data/Application/F59D8C3F-E249-4A37-92CD-BE84876BE7D2/Library/net.cohawk.elixirdesktop.example/bin
Ret: ok

=SUPERVISOR REPORT==== 28-Apr-2024::13:19:33.108600 ===
    supervisor: {local,kernel_sup}
    errorContext: start_error
    reason: {{badmatch,{error,internal_error}},
             [{global,init,1,[{file,"global.erl"},{line,525}]},
              {gen_server,init_it,2,[{file,"gen_server.erl"},{line,851}]},
              {gen_server,init_it,6,[{file,"gen_server.erl"},{line,814}]},
              {proc_lib,init_p_do_apply,3,
                        [{file,"proc_lib.erl"},{line,240}]}]}
    offender: [{pid,undefined},
               {id,global_name_server},
               {mfargs,{global,start_link,[]}},
               {restart_type,permanent},
               {significant,false},
               {shutdown,2000},
               {child_type,worker}]

{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,global_name_server,{{badmatch,{error,internal_error}},[{global,init,1,[{file,\"global.erl\"},{line,525}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,851}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,814}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,240}]}]}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,global_name_server,{{badmatch,{error,internal_error}},[{global,init,1,[{file,"global.erl"},{line,525}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,851}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,814}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}}},{kernel,start,[normal,[]]}}})

Crash dump is being written to: erl_crash.dump...done

Desktop Example app works fine when standalone - crazy project you've got here.

@dominicletz
Copy link
Contributor

I hear you, I'm as well really unhappy with the Erlang binary compatibility. There is now additional strictness that they've introduced in 25 and higher, so versions have to match exactly or the runtime won't even boot as you see it.

Being stuck on the :wx dependency is double frustrating as Elixir-Desktop is actually not even using that when running on iOS.

Last but not least, the Erlang runtime is generated from this project: https://github.com/elixir-desktop/runtimes - and it should be possible to use it to build newer versions as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants