Stream: ideas

Topic: ✔ SIGILL with inkwell and LLVM 12.0.1-4


view this post on Zulip Locria Cyber (Nov 04 2021 at 06:10):

.

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:11):

Is there a way to move message to another topic?

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:11):

@Brendan Hansknecht

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:11):

(lldb) bt
error: need to add support for DW_TAG_base_type '()' encoded with DW_ATE = 0x7, bit_size = 0
* thread #1, name = 'roc', stop reason = signal SIGILL: illegal instruction operand
  * frame #0: 0x000055555a06d2ca roc`llvm::getTimeTraceProfilerInstance() + 26
    frame #1: 0x0000555559f81887 roc`llvm::FPPassManager::runOnFunction(llvm::Function&) + 343
    frame #2: 0x0000555559f81d54 roc`llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 68
    frame #3: 0x0000555559eefb0a roc`LLVMRunFunctionPassManager + 10
    frame #4: 0x00005555586c27c1 roc`_$LT$inkwell..values..fn_value..FunctionValue$u20$as$u20$inkwell..passes..PassManagerSubType$GT$::run_in_pass_manager::hf158b27b5c9280b8 + 49
    frame #5: 0x0000555558635f21 roc`inkwell::passes::PassManager$LT$T$GT$::run_on::h0e0a4b6cc296424b + 33
    frame #6: 0x000055555865b473 roc`roc_gen_llvm::llvm::build::build_procedures_help::hd7936a1433650514 + 4115
    frame #7: 0x000055555865a34a roc`roc_gen_llvm::llvm::build::build_procedures::h11dd8d485d3665eb + 154
    frame #8: 0x00005555573a5aa7 roc`roc_build::program::gen_from_mono_module_llvm::hb2a89d3986309751 + 4743
    frame #9: 0x0000555556db66c7 roc`roc_cli::build::build_file::hbfae9be24785155e(arena=0x00007fffffffcce8, target=0x00007fffffffccc0, src_dir=PathBuf @ 0x00007fffffffcf10, roc_file_path=PathBuf @ 0x00007fffffffcf30, opt_level=Normal, emit_debug_info=false, emit_timings=false, link_type=Executable, surgically_link=false, precompiled=false) at build.rs:183:50
    frame #10: 0x0000555556df730d roc`roc_cli::build::hb8530f8b31329c67 + 2445
    frame #11: 0x0000555556d944a0 roc`roc::main::hf457907f5b810a73 at main.rs:33:21
    frame #12: 0x0000555556d90d3b roc`core::ops::function::FnOnce::call_once::h81444e85f5d175fc((null)=(roc`roc::main::hf457907f5b810a73 at main.rs:24), (null)=<unavailable>) at function.rs:227:5
    frame #13: 0x0000555556d9520e roc`std::sys_common::backtrace::__rust_begin_short_backtrace::h51cec3589b318156(f=(roc`roc::main::hf457907f5b810a73 at main.rs:24)) at backtrace.rs:125:18
    frame #14: 0x0000555556d8e3b1 roc`std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h044556a257435c29 at rt.rs:63:18
    frame #15: 0x000055555af9542a roc`std::rt::lang_start_internal::h5b6340f286fc0787 + 778
    frame #16: 0x0000555556d8e380 roc`std::rt::lang_start::ha2de484019adee23(main=(roc`roc::main::hf457907f5b810a73 at main.rs:24), argc=2, argv=0x00007fffffffeaf8) at rt.rs:62:5
    frame #17: 0x0000555556d951fc roc`main + 28
    frame #18: 0x00007ffff79afb25 libc.so.6`__libc_start_main + 213
    frame #19: 0x0000555556d8e27e roc`_start + 46

view this post on Zulip Brendan Hansknecht (Nov 04 2021 at 06:12):

I know Richard can move messages, but I'm not sure regular users can.

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:12):

I can't even move my own messages

view this post on Zulip Brendan Hansknecht (Nov 04 2021 at 06:12):

Yeah, it's silly. That's something zullip should improve

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:13):

I searched on LLVM bug tracker for getTimeTraceProfilerInstance

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:13):

no result

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:13):

so probably inkwell issue?

view this post on Zulip Brendan Hansknecht (Nov 04 2021 at 06:14):

That is a very different message than i have seen before. Is your system standard x86_64?

view this post on Zulip Brendan Hansknecht (Nov 04 2021 at 06:15):

Also, what llvm version?

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:16):

12.0.1-4

view this post on Zulip Locria Cyber (Nov 04 2021 at 06:16):

You can reproduce the error with my instructions in https://roc.zulipchat.com/#narrow/stream/304641-ideas/topic/Faster.20builds.20and.20reproducible.20development.20environment

view this post on Zulip Brendan Hansknecht (Nov 04 2021 at 06:17):

Ok. I'll try to debug that. Probably should have some time to look at it tomorrow.

view this post on Zulip Brendan Hansknecht (Nov 05 2021 at 01:30):

The issue looks to be a problem with mold. Taking your install file and removing mold, hello world works for me.

view this post on Zulip Brendan Hansknecht (Nov 05 2021 at 01:34):

Need to cargo clean as well.

view this post on Zulip Locria Cyber (Nov 08 2021 at 06:04):

So can't build Roc with mold then

view this post on Zulip Locria Cyber (Nov 08 2021 at 06:05):

Thanks

view this post on Zulip Notification Bot (Nov 08 2021 at 06:15):

Locria Cyber has marked this topic as resolved.

view this post on Zulip Brendan Hansknecht (Nov 08 2021 at 07:47):

You can, just not in vagrant apparently.

view this post on Zulip Brendan Hansknecht (Nov 08 2021 at 07:47):

Or maybe it is an issue with the aur version of mold. I have built roc with mold on my Ubuntu Linux setup.

view this post on Zulip Locria Cyber (Nov 11 2021 at 02:41):

Brendan Hansknecht said:

Or maybe it is an issue with the aur version of mold. I have built roc with mold on my Ubuntu Linux setup.

I'll try it out

view this post on Zulip Locria Cyber (Nov 11 2021 at 02:44):

So roc -h will run, but running Roc program will SIGILL

view this post on Zulip Locria Cyber (Nov 11 2021 at 02:44):

Seems to related to how roc uses mold linker

view this post on Zulip Richard Feldman (Nov 11 2021 at 03:54):

the roc executable itself doesn't invoke mold

view this post on Zulip Richard Feldman (Nov 11 2021 at 03:54):

or do you have ld replaced with mold on your system?

view this post on Zulip Brendan Hansknecht (Nov 11 2021 at 04:24):

Ah, so the issue isn't compiling roc with mold, the issue is compiling a roc platform and/or application with mold? Is that correct?


Last updated: Jun 16 2026 at 16:19 UTC