Skip to content

--> Burrito failed to wrap up your app! #70

Description

@Damirados

Failing to build using release-local on arch linux.

using following versions of erlang and elixir with asdf

$ asdf install                                                                                                                                                                                                                                                   
elixir 1.17.3-otp-27 is already installed
erlang 27.2 is already installed
$ zig version                                                                                                                                                                                                                                                    
0.14.1
Output
just release-local                                                                                                                                                                                                                                             [11:10:11 AM]
Resolving Hex dependencies...
Resolution completed in 0.042s
Unchanged:
  benchee 1.3.1
  bunt 1.0.0
  castore 1.0.12
  credo 1.7.12
  deep_merge 1.0.0
  dialyxir 1.4.5
  erlex 0.2.7
  file_system 1.1.0
  gen_lsp 0.11.0
  jason 1.4.4
  mime 2.0.6
  nimble_options 1.1.1
  nimble_parsec 1.2.3
  patch 0.15.0
  path_glob 0.2.0
  phoenix 1.7.21
  phoenix_html 4.2.1
  phoenix_live_view 1.0.9
  phoenix_pubsub 2.1.3
  phoenix_template 1.0.4
  plug 1.17.0
  plug_crypto 2.1.0
  refactorex 0.1.52
  schematic 0.2.1
  snowflake 1.0.4
  sourceror 1.10.0
  statistex 1.0.0
  stream_data 1.2.0
  telemetry 1.3.0
  typed_struct 0.3.0
  websock 0.5.3
  websock_adapter 0.5.8
Resolving Hex dependencies...
Resolution completed in 0.024s
Unchanged:
  bunt 1.0.0
  burrito 1.4.0
  credo 1.7.12
  dialyxir 1.4.5
  erlex 0.2.7
  file_system 1.1.0
  finch 0.20.0
  gen_lsp 0.11.0
  hpax 1.0.3
  jason 1.4.4
  logger_file_backend 0.0.14
  mime 2.0.7
  mint 1.7.1
  nimble_options 1.1.1
  nimble_parsec 1.2.3
  nimble_pool 1.1.0
  patch 0.15.0
  path_glob 0.2.0
  refactorex 0.1.52
  req 0.5.15
  schematic 0.2.1
  snowflake 1.0.4
  sourceror 1.10.0
  telemetry 1.3.0
  typed_struct 0.3.0
+ '[' linux_amd64 == unsupported ']'
+ MIX_ENV=prod
+ EXPERT_RELEASE_MODE=burrito
+ BURRITO_TARGET=linux_amd64
+ mix release --overwrite
==> forge
Generated forge app
==> expert
Compiling 48 files (.ex)
* assembling expert-0.1.0 on MIX_ENV=prod
* using config/runtime.exs to configure the release at runtime
Rewriting 18 app files
Rewriting .beam files
 Found 11 protocols
 Found 1223 app beam files
 Applying namespace: 100% complete
 done
Rewriting 3 scripts
Rebuilding 2 boot files
Rewriting 1 config scripts.
> Target is being overridden with BURRITO_TARGET linux_amd64
> Burrito is building target: linux_amd64
> Burrito will build for target:
	OS: linux
	CPU: x86_64
	Qualifiers: []
	Debug: false
----> PHASE: :fetch
--> Working directory: /tmp/burrito_build_804D2FFDD5A572AC
--> Fetching musl libc runtime binary for Linux...
--> Found matching cached musl runtime, using that
--> Wrote musl runtime file: /home/damir/Projects/expert/apps/expert/deps/burrito/src/musl-runtime.so
--> Resolving ERTS: {:precompiled, [version: "27.2"]}
--> Remote ERTS From Beam Machine: https://beam-machine-universal.b-cdn.net/OTP-27.2/linux/x86_64/any/otp_27.2_linux_any_x86_64.tar.gz?please-respect-my-bandwidth-costs=thank-you&openssl=3.5.1&musl=1.2.5
--> Found matching cached ERTS, using that
--> Unpacked ERTS to: /tmp/unpacked_erts_EE86D4BDB3449C38
----> PHASE: :patch
--> Replacing ERTS binaries...
--> Overwriting NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/asn1-5.3.1/priv/lib/asn1rt_nif.so with /tmp/unpacked_erts_EE86D4BDB3449C38/otp_x86_64_linux_27.2/lib/asn1-5.3.1/priv/lib/asn1rt_nif.so
--> Installed NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/asn1-5.3.1/priv/lib/asn1rt_nif.so
--> Overwriting NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/crypto-5.5.2/priv/lib/crypto.so with /tmp/unpacked_erts_EE86D4BDB3449C38/otp_x86_64_linux_27.2/lib/crypto-5.5.2/priv/lib/crypto.so
--> Installed NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/crypto-5.5.2/priv/lib/crypto.so
--> Overwriting NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/crypto-5.5.2/priv/lib/otp_test_engine.so with /tmp/unpacked_erts_EE86D4BDB3449C38/otp_x86_64_linux_27.2/lib/crypto-5.5.2/priv/lib/otp_test_engine.so
--> Installed NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/crypto-5.5.2/priv/lib/otp_test_engine.so
--> Overwriting NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/runtime_tools-2.1.1/priv/lib/dyntrace.so with /tmp/unpacked_erts_EE86D4BDB3449C38/otp_x86_64_linux_27.2/lib/runtime_tools-2.1.1/priv/lib/dyntrace.so
--> Installed NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/runtime_tools-2.1.1/priv/lib/dyntrace.so
--> Overwriting NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/runtime_tools-2.1.1/priv/lib/trace_file_drv.so with /tmp/unpacked_erts_EE86D4BDB3449C38/otp_x86_64_linux_27.2/lib/runtime_tools-2.1.1/priv/lib/trace_file_drv.so
--> Installed NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/runtime_tools-2.1.1/priv/lib/trace_file_drv.so
--> Overwriting NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/runtime_tools-2.1.1/priv/lib/trace_ip_drv.so with /tmp/unpacked_erts_EE86D4BDB3449C38/otp_x86_64_linux_27.2/lib/runtime_tools-2.1.1/priv/lib/trace_ip_drv.so
--> Installed NIF library /tmp/burrito_build_804D2FFDD5A572AC/lib/runtime_tools-2.1.1/priv/lib/trace_ip_drv.so
warning: using map.field notation (without parentheses) to invoke function Forge.MixProject.project() is deprecated, you must add parentheses instead: remote.function()
  (burrito 1.4.0) lib/steps/patch/recompile_nifs.ex:54: anonymous fn/3 in Burrito.Steps.Patch.RecompileNIFs.nif_sniff/0
  (mix 1.17.3) lib/mix/project.ex:463: Mix.Project.in_project/4
  (elixir 1.17.3) lib/file.ex:1665: File.cd!/2
  (elixir 1.17.3) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
  (elixir 1.17.3) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2

----> PHASE: :build
--> Generating wrapper metadata file...
--> Zig build env: [{"__BURRITO_IS_PROD", "1"}, {"__BURRITO_RELEASE_PATH", "/tmp/burrito_build_804D2FFDD5A572AC"}, {"__BURRITO_RELEASE_NAME", "expert"}, {"__BURRITO_PLUGIN_PATH", nil}, {"__BURRITO_MUSL_RUNTIME_PATH", "/tmp/libc-musl-71c35316aff45bbfd243d8eb9bfc4a58b6eb97cee09514cd2030e145b68107fb.so"}]
info: Zig is building an Elixir binary... ⚡
info: Generating and compressing release payload... 📦
info: 🔍 Files Packed: 4284
info: Archived 4284 files into payload! 📥
info: Building wrapper and embedding payload... 🌯
info: DONE 🚀
install
└─ install expert
   └─ zig build-exe expert ReleaseSmall x86_64-linux failure
error: the following command terminated unexpectedly:
/usr/bin/zig build-exe /home/damir/Projects/expert/apps/expert/deps/burrito/src/xz/xz_crc32.c /home/damir/Projects/expert/apps/expert/deps/burrito/src/xz/xz_dec_lzma2.c /home/damir/Projects/expert/apps/expert/deps/burrito/src/xz/xz_dec_stream.c -OReleaseSmall -target x86_64-linux -mcpu baseline -I /home/damir/Projects/expert/apps/expert/deps/burrito/src/xz --dep build_options --dep burrito_plugin -Mroot=/home/damir/Projects/expert/apps/expert/deps/burrito/src/wrapper.zig -Mbuild_options=/home/damir/Projects/expert/apps/expert/deps/burrito/.zig-cache/c/738fb136cbb6c2aee4856c28828b19cc/options.zig -Mburrito_plugin=/home/damir/Projects/expert/apps/expert/deps/burrito/_dummy_plugin.zig -lc --cache-dir /home/damir/Projects/expert/apps/expert/deps/burrito/.zig-cache --global-cache-dir /home/damir/.cache/zig --name expert --zig-lib-dir /usr/lib/zig/ --listen=-
Build Summary: 1/4 steps succeeded; 1 failed
install transitive failure
└─ install expert transitive failure
   └─ zig build-exe expert ReleaseSmall x86_64-linux failure
error: the following build command failed with exit code 1:
/home/damir/Projects/expert/apps/expert/deps/burrito/.zig-cache/o/490d86e53d99126c5713b44c00022bd2/build /usr/bin/zig /usr/lib/zig /home/damir/Projects/expert/apps/expert/deps/burrito /home/damir/Projects/expert/apps/expert/deps/burrito/.zig-cache /home/damir/.cache/zig --seed 0x458576f9 -Zaa49981f3a4dab12 -Dtarget=x86_64-linux
--> Cleaning up...
--> Burrito failed to wrap up your app! Check the logs for more information.
** (RuntimeError) Wrapper build failed
    (burrito 1.4.0) lib/steps/build/pack_and_build.ex:59: Burrito.Steps.Build.PackAndBuild.execute/1
    (burrito 1.4.0) lib/builder/builder.ex:140: anonymous fn/3 in Burrito.Builder.run_phase/2
    (elixir 1.17.3) lib/enum.ex:2531: Enum."-reduce/3-lists^foldl/2-0-"/3
    (elixir 1.17.3) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
    (burrito 1.4.0) lib/builder/builder.ex:88: Burrito.Builder.build/1
    (mix 1.17.3) lib/mix/tasks/release.ex:1090: Mix.Tasks.Release.run_steps/1
    (mix 1.17.3) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.17.3) lib/mix/cli.ex:96: Mix.CLI.run_task/2
error: Recipe `release-local` failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions