Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

args example Error in alias analysis #90

Open
Anton-4 opened this issue Jul 18, 2023 · 3 comments
Open

args example Error in alias analysis #90

Anton-4 opened this issue Jul 18, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Anton-4
Copy link
Collaborator

Anton-4 commented Jul 18, 2023

+ ./roc_nightly/roc build --linker=legacy ./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

This is a recent regression in roc, I should be able to bisect this soon.

@Anton-4 Anton-4 added the bug Something isn't working label Jul 18, 2023
@Anton-4 Anton-4 self-assigned this Jul 18, 2023
@Anton-4
Copy link
Collaborator Author

Anton-4 commented Jul 22, 2023

This was caused by roc-lang/roc#5576

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Jul 22, 2023

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.

@Anton-4
Copy link
Collaborator Author

Anton-4 commented Jul 28, 2023

Further discussion will happen in roc-lang/roc#5701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant