roc: Error in alias analysis
This only happens with the basic-cli args example, not with the similar args example in the roc repo.
RUST_BACKTRACE=1 ./target/release/roc build --linker=legacy /home/username/gitrepos/basic-cli/examples/args.roc
🔨 Rebuilding platform...
thread 'main' panicked at 'Error in alias analysis: error in module ModName("UserApp"), function definition FuncName("\x1b\x00\x00\x00\x12\x00\x00\x00\xbe\xd12$b\x077\x15"), definition of value binding ValueId(59): could not find func in module ModName("UserApp") with name FuncName("\x8c\x00\x00\x00\x12\x00\x00\x00\x1d\xca$\xf15\xe8\xd8\x98")', crates/compiler/gen_llvm/src/llvm/build.rs:5094:19
stack backtrace:
0: rust_begin_unwind
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/panicking.rs:64:14
2: roc_gen_llvm::llvm::build::build_procedures_help
3: roc_gen_llvm::llvm::build::build_procedures
4: roc_build::program::gen_from_mono_module
5: roc_build::program::build_loaded_file
6: roc_build::program::build_file
7: roc_cli::build
8: roc::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
This error was introduced by PR #5576
@ayazhafiz would it help if I try to minimize the args example or do you already know what’s going wrong?
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 16 (14 by maintainers)
Commits related to this issue
- Introduce Parser type This approach is currently blocked on this issue: https://github.com/roc-lang/roc/issues/5701 — committed to jwoudenberg/rvn by jwoudenberg 3 months ago
Nice @jwoudenberg! Thanks for this compact reproduction 😃
Yes please!
On Tue, Aug 1, 2023 at 9:57 AM Anton-4 @.***> wrote:
Yes please, minimizing would help a lot.