Skip to content

ICE: moon build #970

@illusory0x0

Description

@illusory0x0

(Your description on the reproducing steps or environment)

Code

  • Target: (wasm, wasm-gc, js)

Github commit URL: https://github.com/moonbit-community/jscore/tree/2ea7a99e06a17eaac0f594880ef583354327c0f9

Environment

  • OS: (macOS)
  • OS distribution and/or version: (macOS 14.6 (23G80))
  • CPU Architecture: (arm64)
moon 0.1.20250902 (c84faf1 2025-09-02) ~/.moon/bin/moon
moonc v0.6.26+4cdee97dd-dev (2025-09-03) ~/.moon/bin/moonc
moonrun 0.1.20250902 (c84faf1 2025-09-02) ~/.moon/bin/moonrun
moon-pilot 0.0.1-20c439c (2025-09-04) ~/.moon/bin/moon-pilot

Error output

failed: moonc link-core /Users/cici/.moon/lib/core/target/js/release/bundle/abort/abort.core /Users/cici/.moon/lib/core/target/js/release/bundle/core.core /Users/cici/dev.mbt/jscore/target/js/release/build/jscore/jscore.core /Users/cici/dev.mbt/jscore/target/js/release/build/test/test.core -main illusory0x0/jscore/test -o /Users/cici/dev.mbt/jscore/target/js/release/build/test/test.js -pkg-config-path /Users/cici/dev.mbt/jscore/src/test/moon.pkg.json -pkg-sources illusory0x0/jscore/jscore:/Users/cici/dev.mbt/jscore/src/jscore -pkg-sources illusory0x0/jscore/test:/Users/cici/dev.mbt/jscore/src/test -pkg-sources moonbitlang/core:/Users/cici/.moon/lib/core -target js -exported_functions=entry_test,catch_panic -js-format esm
         --  -- 
       /  //  / __--------_
      /  //  /_/            \
   ---      -                \ __
  / X        /        ____   /   )
  *_________/__/_____/______/ `--
Oops, the compiler has encountered an unexpected situation.
This is a bug in the compiler.
A bug report containing the error description and relevant code would be
greatly appreciated. You can submit the bug report here:
  https://github.com/moonbitlang/moonbit-docs/issues/new?template=ice.md
Error: (Key_not_found
 @illusory0x0/jscore/jscore.Js::to_any|@illusory0x0/jscore/jscore.Array|)
Backtrace:
Raised at Moonc.Basic_hashf.Make.find_exn in file "moonc.ml", line 3879, characters 17-42
Called from Moonc.Monofy_worklist.find_new_binder_exn in file "moonc.ml", line 244155, characters 15-47
Called from Moonc.Monofy.generate_trait_method in file "moonc.ml", line 244827, characters 12-63
Called from Moonc.Monofy.monofy_obj.object#visit_Cexpr_apply in file "moonc.ml", line 244902, characters 12-187
Called from Moonc.Basic_lst.map in file "moonc.ml", line 244, characters 44-48
Called from Moonc.Monofy.monofy_obj.object#visit_Cexpr_apply in file "moonc.ml", line 244917, characters 21-55
Called from Moonc.Monofy.monofy_generate.generate_fn in file "moonc.ml", line 245026, characters 14-53
Called from Moonc.Monofy.monofy_generate.generate_fun_decl.(fun) in file "moonc.ml", line 245060, characters 30-65
Called from Moonc.Basic_vec.iter in file "moonc.ml", line 1740, characters 60-72
Called from Moonc.Basic_lst.iter in file "moonc.ml", line 613, characters 39-43
Called from Moonc.Monofy.monofy_generate in file "moonc.ml", line 245178, characters 2-27
Called from Moonc.Monofy.monofy in file "moonc.ml", line 245196, characters 5-91
Called from Moonc.Driver_util.monofy_core_link in file "moonc.ml", line 280852, characters 5-116
Called from Moonc.Driver_util.link_core in file "moonc.ml", line 280932, characters 6-174
Called from Moonc.run_main in file "moonc.ml", line 286861, characters 18-28
Called from Moonc.Ice_catcher.run_with_protection in file "moonc.ml", line 284343, characters 6-10
Compiler args: moonc link-core /Users/cici/.moon/lib/core/target/js/release/bundle/abort/abort.core /Users/cici/.moon/lib/core/target/js/release/bundle/core.core /Users/cici/dev.mbt/jscore/target/js/release/build/jscore/jscore.core /Users/cici/dev.mbt/jscore/target/js/release/build/test/test.core -main illusory0x0/jscore/test -o /Users/cici/dev.mbt/jscore/target/js/release/build/test/test.js -pkg-config-path /Users/cici/dev.mbt/jscore/src/test/moon.pkg.json -pkg-sources illusory0x0/jscore/jscore:/Users/cici/dev.mbt/jscore/src/jscore -pkg-sources illusory0x0/jscore/test:/Users/cici/dev.mbt/jscore/src/test -pkg-sources moonbitlang/core:/Users/cici/.moon/lib/core -target js -exported_functions=entry_test,catch_panic -js-format esm
moonc version: v0.6.26+4cdee97dd-dev
Failed with 0 warnings, 0 errors.
error: failed to run build for target Js

Caused by:
    failed when building project

Metadata

Metadata

Assignees

No one assigned

    Labels

    ICEInternal Compiler ErrorbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions