Skip to content

Unable to run atomvm.packbeam #57

@code-monad

Description

@code-monad

Following the guide provided in README, when I run mix atomvm.packbeam, it says:

** (ErlangError) Erlang error: :data_error
    :zlib.inflate_nif(#Reference<0.1871733751.2667708417.80571>, 8192, 16384, 0)
    :zlib.dequeue_all_chunks_1/3
    :zlib.inflate/3
    :zlib.uncompress/1
    (exatomvm 0.1.0) lib/packbeam.ex:20: ExAtomVM.PackBEAM.uncompress_literals/1
    (exatomvm 0.1.0) lib/packbeam.ex:38: ExAtomVM.PackBEAM.transform/1
    (exatomvm 0.1.0) lib/packbeam.ex:73: ExAtomVM.PackBEAM.pack_module/2
    (exatomvm 0.1.0) lib/packbeam.ex:136: anonymous fn/2 in ExAtomVM.PackBEAM.pack_files

what can be wrong?

 ls -l avm_deps/
.rw-r--r--  12k code 12 8月  07:41  alisp.avm
.rw-r--r-- 391k code 12 8月  07:51  atomvmlib.avm
.rw-r--r-- 146k code 12 8月  07:42  estdlib.avm
.rw-r--r-- 7.2k code 12 8月  07:42  etest.avm
.rw-r--r-- 166k code 12 8月  07:42  exavmlib.avm
.rw-r--r--  432 code 12 8月  07:42  gleam_avm.avm

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