GetFirefly / firefly

An alternative BEAM implementation, designed for WebAssembly
Apache License 2.0
3.61k stars 104 forks source link

Need help for applying lumen #700

Closed Just1ceP4rtn3r closed 2 years ago

Just1ceP4rtn3r commented 2 years ago

I got the lumen-0.1.0 from release and want to compile example/spawn-chain/cli from https://github.com/lumen/examples/tree/develop/spawn-chain/cli for a test. But I got some errors, did i miss something? Thanks!

mkdir  bin
mkdir _build
lumen compile --output bin/spawn-chain --output-dir _build src
   Compiling src/init.erl
error: type mismatch for bb argument #0 of successor #1
  ┌─ src/init.erl:5:1
  │
5 │ ╭ ╭ start() ->
6 │ │ │   [_Program | Args] = init:get_plain_arguments(),
  │ ╰─│^ problem during codegen related to this source code
  │   ╰' see current operation: "eir.cond_br"(%5, %5)[^bb2, ^bb20] {operand_segment_sizes = dense<[1, 0, 1]> : vector<3xi32>} : (!eir.bool, !eir.bool) -> ()
error: module verification failed for init