Skip to content

macOS update from version 25.0.4 bundled runtime edition #12

@cohawk

Description

@cohawk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions