Skip to content

Unable to build app that uses erlang's :gl and :wx modules under the hood for seemingly any platform #183

@begedin

Description

@begedin

Host

Tell us about your Host OS (the machine you're building burrito apps on)

Host OS: MacOS 15.2
Host CPU: arm64

Please run zig version in your Burrito project directory and write the version here: 0.14.0

Please run elixir -v in your Burrito project directory and write the version here: 1.18.3


Target

Any target. My current targets are

macos: [os: :darwin, cpu: :x86_64],
linux: [os: :linux, cpu: :x86_64],
windows: [os: :windows, cpu: :x86_64]

Each fails when I comment out the other two


I'm not sure if this is a bug, or just not supported, so open to any shape of answer.

The wrap step fails with

/{repo}/.asdf/installs/zig/0.14.0/zig build-exe 
/{repo}/deps/burrito/src/xz/xz_crc32.c 
/{repo}/deps/burrito/src/xz/xz_dec_lzma2.c 
/{repo}/deps/burrito/src/xz/xz_dec_stream.c -OReleaseSmall -target x86_64-macos -mcpu baseline -I /{repo}/deps/burrito/src/xz --dep build_options --dep burrito_plugin -Mroot=/{repo}/deps/burrito/src/wrapper.zig -Mbuild_options=/{repo}/deps/burrito/.zig-cache/c/731648c14730179a955a2b3ee874337f/options.zig -Mburrito_plugin=/{repo}/burrito/_dummy_plugin.zig -lc --cache-dir {repo}/deps/burrito/.zig-cache --global-cache-dir /{username}/.cache/zig --name snake --zig-lib-dir /{username}/.asdf/installs/zig/0.14.0/lib/ --listen=- 
Build Summary: 1/4 steps succeeded; 1 failed
install transitive failure
└─ install snake transitive failure
   └─ zig build-exe snake ReleaseSmall x86_64-macos failure
error: the following build command failed with exit code 1:
/{repo}/deps/burrito/.zig-cache/o/fb7ed7dc04b446b6f39a6963a0c9a034/build /{username}/.asdf/installs/zig/0.14.0/zig /{username}/.asdf/installs/zig/0.14.0/lib /{repo}/deps/burrito /{repo}/deps/burrito/.zig-cache /{username}/.cache/zig --seed 0xa167b8d -Z9131173d854aad96 -Dtarget=x86_64-macos
--> Cleaning up...
--> Burrito failed to wrap up your app! Check the logs for more information.
** (RuntimeError) Wrapper build failed
    (burrito 1.3.0) lib/steps/build/pack_and_build.ex:59: Burrito.Steps.Build.PackAndBuild.execute/1
    (burrito 1.3.0) lib/builder/builder.ex:140: anonymous fn/3 in Burrito.Builder.run_phase/2
    (elixir 1.18.3) lib/enum.ex:2546: Enum."-reduce/3-lists^foldl/2-0-"/3
    (elixir 1.18.3) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
    (burrito 1.3.0) lib/builder/builder.ex:88: Burrito.Builder.build/1
    (mix 1.18.3) lib/mix/tasks/release.ex:1079: Mix.Tasks.Release.run_steps/1
    (mix 1.18.3) lib/mix/task.ex:495: anonymous fn/3 in Mix

Where can I get the logs it's telling me to look at?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions