<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Thanks so much Lang.<div>I will give it a try and let you know!<br><br><div dir="ltr"><div>-</div><div>Best Regards,</div><div>Igor</div>Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Jun 19, 2020, at 1:12 PM, Lang Hames <lhames@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Igor,</div><div><br></div><div>Thank you for that debugging output, and my apologies for the delayed reply -- I'm afraid this got buried. I see from the output that the text section contains a single block of zero size. I have not encountered this before in my test cases, but it is perfectly legal -- I see no problem with the input object itself. It tripped that assertion in JITLink because the assertion required symbols to start before the end of the block, which is impossible in an empty block. I've relaxed that assertion in 22d7a01dd72 to require that symbols end on or before the end of their blocks. This allows for the possibility of zero-sized symbols at the end of blocks (and at the start of empty blocks).</div><div><br></div><div>I believe this should fix your issue, but if it does not please let me know and we can dig in further.</div><div><br></div><div>Regards,</div><div>Lang.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 6, 2020 at 9:06 AM Igor Gomon <<a href="mailto:igomonv@gmail.com">igomonv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Lang,<div><br></div><div>Please see below is the trace.</div><div><br></div><div>--</div><div>Thanks,</div><div>Igor</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>2020-06-06 12:05:21.016705-0400 CppDevProCompiler[6613:3000073] Running...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>jitLink_MachO: magic = 0xfeedfacf, identifier = "llvm-link.submodule-jitted-objectbuffer"</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>jitLink_MachO: cputype = 0x0100000c, cpusubtype = 0x00000000</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Creating normalized sections...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __text: 0x0000000000000000 -- 0x0000000000000064, align: 4, index: 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __compact_unwind: 0x0000000000000068 -- 0x0000000000000088, align: 8, index: 1</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Creating normalized symbols...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  ltmp0: value = 0x0000000000000000, type = 0x0e, desc = 0x0000, sect = 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  ltmp1: value = 0x0000000000000068, type = 0x0e, desc = 0x0000, sect = 1</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  _main: value = 0x0000000000000000, type = 0x0f, desc = 0x0000, sect = 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPFRS3_S4_E: value = 0x0000000000000000, type = 0x01, desc = 0x0000, sect = none</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __ZNSt3__14coutE: value = 0x0000000000000000, type = 0x01, desc = 0x0000, sect = none</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: value = 0x0000000000000000, type = 0x01, desc = 0x0000, sect = none</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc: value = 0x0000000000000000, type = 0x01, desc = 0x0000, sect = none</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  ___orc_lcl..str.0: value = 0x0000000000000000, type = 0x01, desc = 0x0000, sect = none</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Creating graph symbols...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  Processing section __text...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    Creating block for 0x0000000000000000 -- 0x0000000000000064: __text + 0x0000000000000000 with 2 symbol(s)...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000064: _main</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000064: ltmp0 [non-canonical]</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  Processing section __compact_unwind...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    Creating block for 0x0000000000000068 -- 0x0000000000000088: __compact_unwind + 0x0000000000000000 with 1 symbol(s)...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000068 -- 0x0000000000000088: ltmp1</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing Branch26 relocation at 0x000000000000004c</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x000000000000004c: 0x0000000000000000 + 76 -- Branch26 -> <__ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPFRS3_S4_E: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing Branch26 relocation at 0x0000000000000044</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x0000000000000044: 0x0000000000000000 + 68 -- Branch26 -> <__ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing PageOffset12 relocation at 0x0000000000000024</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x0000000000000024: 0x0000000000000000 + 36 -- PageOffset12 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing Page21 relocation at 0x0000000000000020</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x0000000000000020: 0x0000000000000000 + 32 -- Page21 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing PageOffset12 relocation at 0x000000000000001c</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x000000000000001c: 0x0000000000000000 + 28 -- PageOffset12 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing Page21 relocation at 0x0000000000000018</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x0000000000000018: 0x0000000000000000 + 24 -- Page21 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing GOTPageOffset12 relocation at 0x0000000000000014</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x0000000000000014: 0x0000000000000000 + 20 -- GOTPageOffset12 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing GOTPage21 relocation at 0x0000000000000010</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x0000000000000010: 0x0000000000000000 + 16 -- GOTPage21 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Processing Pointer64Anon relocation at 0x0000000000000068</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>edge@0x0000000000000068: 0x0000000000000068 + 0 -- Pointer64Anon -> <_main: flags = SD-, size = 0x00000064, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000 __text)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Link graph "llvm-link.submodule-jitted-objectbuffer" pre-pruning:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Symbols:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <_main: flags = SD+, size = 0x00000064, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000 __text)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x000000000000004c: 0x0000000000000000 + 76 -- Branch26 -> <__ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPFRS3_S4_E: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000044: 0x0000000000000000 + 68 -- Branch26 -> <__ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000024: 0x0000000000000000 + 36 -- PageOffset12 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000020: 0x0000000000000000 + 32 -- Page21 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x000000000000001c: 0x0000000000000000 + 28 -- PageOffset12 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000018: 0x0000000000000000 + 24 -- Page21 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000014: 0x0000000000000000 + 20 -- GOTPageOffset12 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000010: 0x0000000000000000 + 16 -- GOTPage21 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <ltmp0: flags = SL-, size = 0x00000064, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000 __text)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x000000000000004c: 0x0000000000000000 + 76 -- Branch26 -> <__ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPFRS3_S4_E: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000044: 0x0000000000000000 + 68 -- Branch26 -> <__ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000024: 0x0000000000000000 + 36 -- PageOffset12 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000020: 0x0000000000000000 + 32 -- Page21 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x000000000000001c: 0x0000000000000000 + 28 -- PageOffset12 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000018: 0x0000000000000000 + 24 -- Page21 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000014: 0x0000000000000000 + 20 -- GOTPageOffset12 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000010: 0x0000000000000000 + 16 -- GOTPage21 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000068: <ltmp1: flags = SL-, size = 0x00000020, addr = 0x0000000000000068 (0x0000000000000068 + 0x00000000 __compact_unwind)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000068: 0x0000000000000068 + 0 -- Pointer64Anon -> <_main: flags = SD+, size = 0x00000064, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000 __text)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Absolute symbols:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>External symbols:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPFRS3_S4_E: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Dead-stripping symbols:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  <ltmp0: flags = SL-, size = 0x00000064, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000 __text)>...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  <ltmp1: flags = SL-, size = 0x00000020, addr = 0x0000000000000068 (0x0000000000000068 + 0x00000000 __compact_unwind)>...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Dead-stripping blocks:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000068 -- 0x0000000000000088: content, align = 8, align-ofs = 0, section = __compact_unwind...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Link graph "llvm-link.submodule-jitted-objectbuffer" post-pruning:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Symbols:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <_main: flags = SD+, size = 0x00000064, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000 __text)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x000000000000004c: 0x0000000000000000 + 76 -- Branch26 -> <__ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPFRS3_S4_E: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000044: 0x0000000000000000 + 68 -- Branch26 -> <__ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000024: 0x0000000000000000 + 36 -- PageOffset12 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000020: 0x0000000000000000 + 32 -- Page21 -> <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x000000000000001c: 0x0000000000000000 + 28 -- PageOffset12 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000018: 0x0000000000000000 + 24 -- Page21 -> <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000014: 0x0000000000000000 + 20 -- GOTPageOffset12 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    edge@0x0000000000000010: 0x0000000000000000 + 16 -- GOTPage21 -> <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)> + 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Absolute symbols:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>External symbols:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__14coutE: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <___orc_lcl..str.0: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__14endlIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  0x0000000000000000: <__ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEPFRS3_S4_E: flags = SD-, size = 0x00000000, addr = 0x0000000000000000 (0x0000000000000000 + 0x00000000)></b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Segment ordering:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  Segment R-X:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    content block:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000064: content, align = 4, align-ofs = 0, section = __text</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000008: content, align = 1, align-ofs = 0, section = $__STUBS</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000008: content, align = 1, align-ofs = 0, section = $__STUBS</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    zero-fill block:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  Segment R--:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    content block:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000008: content, align = 8, align-ofs = 0, section = $__GOT</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000008: content, align = 8, align-ofs = 0, section = $__GOT</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000008: content, align = 8, align-ofs = 0, section = $__GOT</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    zero-fill block:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>JIT linker requesting: { R-X: alignment = 4, content size = 116, zero-fill size = 0; R--: alignment = 8, content size = 24, zero-fill size = 0 }</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>JIT linker got working memory:</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  R-X: 0x1235dc000</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  R--: 0x1235e0000</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>jitLink_MachO: magic = 0xfeedfacf, identifier = "llvm-link.submodule-jitted-objectbuffer"</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>jitLink_MachO: cputype = 0x0100000c, cpusubtype = 0x00000000</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Creating normalized sections...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __text: 0x0000000000000000 -- 0x0000000000000000, align: 1, index: 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  __const: 0x0000000000000000 -- 0x000000000000000d, align: 1, index: 1</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Creating normalized symbols...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  ltmp0: value = 0x0000000000000000, type = 0x0e, desc = 0x0000, sect = 0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  ltmp1: value = 0x0000000000000000, type = 0x0e, desc = 0x0000, sect = 1</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  ___orc_lcl..str.0: value = 0x0000000000000000, type = 0x1f, desc = 0x0000, sect = 1</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Creating graph symbols...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>  Processing section __text...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>    Creating block for 0x0000000000000000 -- 0x0000000000000000: __text + 0x0000000000000000 with 1 symbol(s)...</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>      0x0000000000000000 -- 0x0000000000000000: ltmp0</b></p>
<p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>Assertion failed: (Offset < Base.getSize() && "Symbol offset is outside block"), function constructNamedDef, file /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h, line 366.</b></p></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 2, 2020 at 12:07 PM Lang Hames <<a href="mailto:lhames@gmail.com" target="_blank">lhames@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Igor,<div><br></div><div>The -debug-only option should be provided to your tool's main function, rather than to the JIT'd main. As long as you're calling:</div><div><br></div><div><font face="monospace">cl::ParseCommandLineOptions(argc, argv, "<tool name>");</font></div><div><br></div><div>in your tool's code that should handle the '-debug-only' option.</div><div><br></div><div>Regards,</div><div>Lang.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 1, 2020 at 9:03 PM Igor Gomon <<a href="mailto:igomonv@gmail.com" target="_blank">igomonv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Lang,<div><br></div><div>Sure. Please find attached is the bitcode file along with the source cpp.</div><div>I also followed your suggestion and provided the '-debug-only=jitlink' option to the orc::runAsMain() function call but I didn't see any meaningful output produced other than:</div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(31,31,36)"><b>Assertion failed: (Offset < Base.getSize() && "Symbol offset is outside block"), function constructNamedDef, file /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h, line 366.</b></p></div></div><div><br></div><div>Thanks for your help!</div><div><br></div><div>--</div><div>Best Regards,</div><div>Igor</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 1, 2020 at 2:01 PM Lang Hames <<a href="mailto:lhames@gmail.com" target="_blank">lhames@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Igor,<div><br></div><div>Thanks for the walkthrough! This sounds like it might be a JITLink MachO parser bug. Are you able to share the module that causes the failure? It may also be interesting to run your tool with '-debug-only=jitlink' and capture the output.</div><div><br></div><div>Regards,</div><div>Lang.</div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 31, 2020 at 2:08 PM Igor Gomon <<a href="mailto:igomonv@gmail.com" target="_blank">igomonv@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello Lang,<div><br></div><div>I was just wondering if you had a chance to look at my issue or maybe have an idea what may have caused it. </div><div>Thanks!</div><div><br><br><div dir="ltr"><div>—</div><div>Best Regards,</div><div>Igor Gomon</div>Sent from my iPad</div><div dir="ltr"><br><blockquote type="cite">On May 25, 2020, at 5:48 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">+Lang for ORC stuff<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 25, 2020 at 2:35 PM Igor Gomon via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I am trying to run this basic C++ hello-world code in my iOS app that has LLVM libraries linked in (the app runs on the actual device - iPad Pro, iOS 13.4.1). </div><div><br></div><div>#include <iostream></div><div>int main (int argh, char *argv[]) {<br></div><div>     std::cout << "Hello World!" << std::endl;</div><div>     return 0;</div><div>}</div><div><br></div><div>So below is the break down of the steps that I do:</div><div><font face="arial, sans-serif">First I compile this code to an instance of <span style="font-size:13px;color:rgba(0,0,0,0.85)">llvm::Module by using the logic borrowed from the lli tool.</span><br></font></div><div><font face="arial, sans-serif">Once I have the Module instance I construct an instance of <span style="color:rgba(0,0,0,0.85);font-size:13px">orc::LLLazyJIT (J), configure it (again closely following the logic in lli tool) </span></font></div><div><span style="color:rgba(0,0,0,0.85);font-size:13px"><font face="arial, sans-serif">to which I then add the module like this:</font></span></div><div><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(93,108,121)">    // Add the main module.</p>
<p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">    ExitOnErr(J->addLazyIRModule(orc::ThreadSafeModule(std::move(MainModule), TSCtx)));</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><br></p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">Finally the module is executed like this:</font></p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(93,108,121)">    // Run main.</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><span style="color:rgb(155,35,147)">    auto</span> MainSym = ExitOnErr(J->lookup(<span style="color:rgb(196,26,22)">"main"</span>));</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85);min-height:15px"><span style="color:rgb(155,35,147)"><br></span></p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85);min-height:15px"><span style="color:rgb(155,35,147)">    typedef</span> <span style="color:rgb(155,35,147)">int</span> (*MainFnPtr)(<span style="color:rgb(155,35,147)">int</span>, <span style="color:rgb(155,35,147)">char</span> *[]);<br></p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><span style="color:rgb(155,35,147)">    auto</span> Result = orc::runAsMain(</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><span style="white-space:pre-wrap">   </span>jitTargetAddressToFunction<MainFnPtr>(MainSym.getAddress()), Args,</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><span style="white-space:pre-wrap"> </span>StringRef(<span style="color:rgb(196,26,22)">"lli"</span>));</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><br></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">The Xcode halts the execution when an assertion is triggered in <span style="color:rgb(0,0,0)">llvm::jitlink::Symbol::constructNamedDef (the full call stack is below).</span></font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><span style="color:rgb(0,0,0)"><font face="arial, sans-serif">The line that triggers the assertion is this:</font></span></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><span style="color:rgb(0,0,0)"><font face="arial, sans-serif"><br></font></span></p><p style="margin:0px;font-stretch:normal;line-height:normal"><span style="color:rgba(0,0,0,0.85);font-family:Menlo;font-size:13px">    assert(Offset < Base.getSize() && <span style="color:rgb(196,26,22)">"Symbol offset is outside block"</span>);</span></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif"><br></font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">because both Offset and Base.getSize() evaluate to 0).</font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">The data referred to by the Base block is "Hello World!".</font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif"><br></font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">I don't understand why this assertion happens. Should the Base block size be > 0 ?</font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">I am relatively new to LLVM, I did read the documentation on OCR Design and Implementation - but still can't figure out what's going on.</font></p><p style="margin:0px;font-stretch:normal;line-height:normal"><font face="arial, sans-serif"><span style="color:rgba(0,0,0,0.85)">If there is </span><span style="color:rgba(0,0,0,0.85)">any additional</span><span style="color:rgba(0,0,0,0.85)"> documentation I can read on </span><span style="color:rgba(0,0,0,0.85)">running</span><span style="color:rgba(0,0,0,0.85)"> code using ORC/JIT APIs that would shed more light on the internals/</span><span style="color:rgba(0,0,0,0.85)">implementation</span><span style="color:rgba(0,0,0,0.85)">?</span></font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif"><br></font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">Any help would be greatly appreciated.</font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">Thank you.</font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif"><br></font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">--</font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">Best,</font></p><p style="margin:0px;font-stretch:normal;line-height:normal;color:rgba(0,0,0,0.85)"><font face="arial, sans-serif">Igor</font></p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><br></p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)"><br></p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#4<span style="white-space:pre-wrap">  </span>0x0000000106696d70 in llvm::jitlink::Symbol::constructNamedDef(void*, llvm::jitlink::Block&, unsigned long long, llvm::StringRef, unsigned long long, llvm::jitlink::Linkage, llvm::jitlink::Scope, bool, bool) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h:366</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#5<span style="white-space:pre-wrap">   </span>0x0000000106691e8c in llvm::jitlink::LinkGraph::addDefinedSymbol(llvm::jitlink::Block&, unsigned long long, llvm::StringRef, unsigned long long, llvm::jitlink::Linkage, llvm::jitlink::Scope, bool, bool) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h:897</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#6<span style="white-space:pre-wrap">        </span>0x000000010668f654 in llvm::jitlink::MachOLinkGraphBuilder::graphifyRegularSymbols() at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp:502</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#7<span style="white-space:pre-wrap">   </span>0x000000010668d16c in llvm::jitlink::MachOLinkGraphBuilder::buildGraph() at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp:36</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#8<span style="white-space:pre-wrap">        </span>0x000000010666cd08 in llvm::jitlink::MachOJITLinker_arm64::buildGraph(llvm::MemoryBufferRef) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp:493</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#9<span style="white-space:pre-wrap">     </span>0x00000001066236bc in llvm::jitlink::JITLinkerBase::linkPhase1(std::__1::unique_ptr<llvm::jitlink::JITLinkerBase, std::__1::default_delete<llvm::jitlink::JITLinkerBase> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp:28</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#10<span style="white-space:pre-wrap">       </span>0x000000010665fc10 in void llvm::jitlink::JITLinker<llvm::jitlink::MachOJITLinker_arm64>::link<std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >, llvm::jitlink::PassConfiguration>(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >&&, llvm::jitlink::PassConfiguration&&) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h:139</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#11<span style="white-space:pre-wrap">       </span>0x000000010665f93c in llvm::jitlink::jitLink_MachO_arm64(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp:685</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#12<span style="white-space:pre-wrap">     </span>0x000000010665e604 in llvm::jitlink::jitLink_MachO(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/MachO.cpp:69</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#13<span style="white-space:pre-wrap">  </span>0x0000000106616f58 in llvm::jitlink::jitLink(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp:306</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#14<span style="white-space:pre-wrap">     </span>0x00000001063db144 in llvm::orc::ObjectLinkingLayer::emit(llvm::orc::MaterializationResponsibility, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp:343</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#15<span style="white-space:pre-wrap">     </span>0x00000001064044f4 in llvm::orc::ObjectTransformLayer::emit(llvm::orc::MaterializationResponsibility, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectTransformLayer.cpp:35</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#16<span style="white-space:pre-wrap">  </span>0x000000010638e9c8 in llvm::orc::IRCompileLayer::emit(llvm::orc::MaterializationResponsibility, llvm::orc::ThreadSafeModule) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/IRCompileLayer.cpp:35</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#17<span style="white-space:pre-wrap">      </span>0x000000010638ff64 in llvm::orc::IRTransformLayer::emit(llvm::orc::MaterializationResponsibility, llvm::orc::ThreadSafeModule) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp:25</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#18<span style="white-space:pre-wrap">  </span>0x00000001062b2b5c in llvm::orc::CompileOnDemandLayer::emitPartition(llvm::orc::MaterializationResponsibility, llvm::orc::ThreadSafeModule, std::__1::map<llvm::orc::SymbolStringPtr, llvm::GlobalValue*, std::__1::less<llvm::orc::SymbolStringPtr>, std::__1::allocator<std::__1::pair<llvm::orc::SymbolStringPtr const, llvm::GlobalValue*> > >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp:320</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#19<span style="white-space:pre-wrap">        </span>0x00000001062b8470 in llvm::orc::PartitioningIRMaterializationUnit::materialize(llvm::orc::MaterializationResponsibility) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp:86</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#20<span style="white-space:pre-wrap">   </span>0x00000001062e2844 in llvm::orc::MaterializationUnit::doMaterialize(llvm::orc::JITDylib&) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h:563</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#21<span style="white-space:pre-wrap">       </span>0x00000001062db744 in llvm::orc::ExecutionSession::materializeOnCurrentThread(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h:1212</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#22<span style="white-space:pre-wrap">       </span>0x00000001062eaf98 in decltype(std::__1::forward<void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>(fp)(std::__1::forward<llvm::orc::JITDylib&>(fp0), std::__1::forward<std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> > >(fp0))) std::__1::__invoke<void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> > >(void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4425</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#23<span style="white-space:pre-wrap">     </span>0x00000001062eaef8 in void std::__1::__invoke_void_return_wrapper<void>::__call<void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> > >(void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__functional_base:348</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#24<span style="white-space:pre-wrap">   </span>0x00000001062eae94 in std::__1::__function::__alloc_func<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), std::__1::allocator<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>, void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1533</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#25<span style="white-space:pre-wrap">   </span>0x00000001062e980c in std::__1::__function::__func<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), std::__1::allocator<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>, void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1707</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#26<span style="white-space:pre-wrap"> </span>0x00000001062e2314 in std::__1::__function::__value_func<void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1860</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#27<span style="white-space:pre-wrap">  </span>0x00000001062e2198 in std::__1::function<void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2419</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#28<span style="white-space:pre-wrap">    </span>0x00000001062d76b4 in llvm::orc::ExecutionSession::dispatchMaterialization(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h:1198</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#29<span style="white-space:pre-wrap">  </span>0x00000001062d955c in llvm::orc::ExecutionSession::runOutstandingMUs() at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:2161</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#30<span style="white-space:pre-wrap">    </span>0x00000001062d623c in llvm::orc::ExecutionSession::lookup(llvm::orc::LookupKind, std::__1::vector<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags>, std::__1::allocator<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags> > > const&, llvm::orc::SymbolLookupSet, llvm::orc::SymbolState, llvm::unique_function<void (llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::JITEvaluatedSymbol, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::JITEvaluatedSymbol> > >)>, std::__1::function<void (llvm::DenseMap<llvm::orc::JITDylib*, llvm::DenseSet<llvm::orc::SymbolStringPtr, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr> >, llvm::DenseMapInfo<llvm::orc::JITDylib*>, llvm::detail::DenseMapPair<llvm::orc::JITDylib*, llvm::DenseSet<llvm::orc::SymbolStringPtr, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr> > > > const&)>) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:2058</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#31<span style="white-space:pre-wrap">    </span>0x00000001063e5128 in llvm::orc::ObjectLinkingLayerJITLinkContext::lookup(llvm::DenseMap<llvm::StringRef, llvm::jitlink::SymbolLookupFlags, llvm::DenseMapInfo<llvm::StringRef>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::jitlink::SymbolLookupFlags> > const&, std::__1::unique_ptr<llvm::jitlink::JITLinkAsyncLookupContinuation, std::__1::default_delete<llvm::jitlink::JITLinkAsyncLookupContinuation> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp:87</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#32<span style="white-space:pre-wrap">     </span>0x0000000106623bac in llvm::jitlink::JITLinkerBase::linkPhase1(std::__1::unique_ptr<llvm::jitlink::JITLinkerBase, std::__1::default_delete<llvm::jitlink::JITLinkerBase> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp:77</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#33<span style="white-space:pre-wrap">       </span>0x000000010665fc10 in void llvm::jitlink::JITLinker<llvm::jitlink::MachOJITLinker_arm64>::link<std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >, llvm::jitlink::PassConfiguration>(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >&&, llvm::jitlink::PassConfiguration&&) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.h:139</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#34<span style="white-space:pre-wrap">       </span>0x000000010665f93c in llvm::jitlink::jitLink_MachO_arm64(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp:685</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#35<span style="white-space:pre-wrap">     </span>0x000000010665e604 in llvm::jitlink::jitLink_MachO(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/MachO.cpp:69</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#36<span style="white-space:pre-wrap">  </span>0x0000000106616f58 in llvm::jitlink::jitLink(std::__1::unique_ptr<llvm::jitlink::JITLinkContext, std::__1::default_delete<llvm::jitlink::JITLinkContext> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/JITLink/JITLink.cpp:306</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#37<span style="white-space:pre-wrap">     </span>0x00000001063db144 in llvm::orc::ObjectLinkingLayer::emit(llvm::orc::MaterializationResponsibility, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp:343</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#38<span style="white-space:pre-wrap">     </span>0x00000001064044f4 in llvm::orc::ObjectTransformLayer::emit(llvm::orc::MaterializationResponsibility, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ObjectTransformLayer.cpp:35</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#39<span style="white-space:pre-wrap">  </span>0x000000010638e9c8 in llvm::orc::IRCompileLayer::emit(llvm::orc::MaterializationResponsibility, llvm::orc::ThreadSafeModule) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/IRCompileLayer.cpp:35</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#40<span style="white-space:pre-wrap">      </span>0x000000010638ff64 in llvm::orc::IRTransformLayer::emit(llvm::orc::MaterializationResponsibility, llvm::orc::ThreadSafeModule) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp:25</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#41<span style="white-space:pre-wrap">  </span>0x00000001062b2b5c in llvm::orc::CompileOnDemandLayer::emitPartition(llvm::orc::MaterializationResponsibility, llvm::orc::ThreadSafeModule, std::__1::map<llvm::orc::SymbolStringPtr, llvm::GlobalValue*, std::__1::less<llvm::orc::SymbolStringPtr>, std::__1::allocator<std::__1::pair<llvm::orc::SymbolStringPtr const, llvm::GlobalValue*> > >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp:320</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#42<span style="white-space:pre-wrap">        </span>0x00000001062b8470 in llvm::orc::PartitioningIRMaterializationUnit::materialize(llvm::orc::MaterializationResponsibility) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp:86</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#43<span style="white-space:pre-wrap">   </span>0x00000001062e2844 in llvm::orc::MaterializationUnit::doMaterialize(llvm::orc::JITDylib&) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h:563</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#44<span style="white-space:pre-wrap">       </span>0x00000001062db744 in llvm::orc::ExecutionSession::materializeOnCurrentThread(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h:1212</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#45<span style="white-space:pre-wrap">       </span>0x00000001062eaf98 in decltype(std::__1::forward<void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>(fp)(std::__1::forward<llvm::orc::JITDylib&>(fp0), std::__1::forward<std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> > >(fp0))) std::__1::__invoke<void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> > >(void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4425</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#46<span style="white-space:pre-wrap">     </span>0x00000001062eaef8 in void std::__1::__invoke_void_return_wrapper<void>::__call<void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> > >(void (*&)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__functional_base:348</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#47<span style="white-space:pre-wrap">   </span>0x00000001062eae94 in std::__1::__function::__alloc_func<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), std::__1::allocator<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>, void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1533</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#48<span style="white-space:pre-wrap">   </span>0x00000001062e980c in std::__1::__function::__func<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >), std::__1::allocator<void (*)(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>, void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1707</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#49<span style="white-space:pre-wrap"> </span>0x00000001062e2314 in std::__1::__function::__value_func<void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >&&) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1860</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#50<span style="white-space:pre-wrap">  </span>0x00000001062e2198 in std::__1::function<void (llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >)>::operator()(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2419</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#51<span style="white-space:pre-wrap">    </span>0x00000001062d76b4 in llvm::orc::ExecutionSession::dispatchMaterialization(llvm::orc::JITDylib&, std::__1::unique_ptr<llvm::orc::MaterializationUnit, std::__1::default_delete<llvm::orc::MaterializationUnit> >) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h:1198</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#52<span style="white-space:pre-wrap">  </span>0x00000001062d955c in llvm::orc::ExecutionSession::runOutstandingMUs() at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:2161</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#53<span style="white-space:pre-wrap">    </span>0x00000001062d623c in llvm::orc::ExecutionSession::lookup(llvm::orc::LookupKind, std::__1::vector<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags>, std::__1::allocator<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags> > > const&, llvm::orc::SymbolLookupSet, llvm::orc::SymbolState, llvm::unique_function<void (llvm::Expected<llvm::DenseMap<llvm::orc::SymbolStringPtr, llvm::JITEvaluatedSymbol, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr>, llvm::detail::DenseMapPair<llvm::orc::SymbolStringPtr, llvm::JITEvaluatedSymbol> > >)>, std::__1::function<void (llvm::DenseMap<llvm::orc::JITDylib*, llvm::DenseSet<llvm::orc::SymbolStringPtr, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr> >, llvm::DenseMapInfo<llvm::orc::JITDylib*>, llvm::detail::DenseMapPair<llvm::orc::JITDylib*, llvm::DenseSet<llvm::orc::SymbolStringPtr, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr> > > > const&)>) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:2058</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#54<span style="white-space:pre-wrap">    </span>0x00000001062dc4b0 in llvm::orc::ExecutionSession::lookup(std::__1::vector<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags>, std::__1::allocator<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags> > > const&, llvm::orc::SymbolLookupSet const&, llvm::orc::LookupKind, llvm::orc::SymbolState, std::__1::function<void (llvm::DenseMap<llvm::orc::JITDylib*, llvm::DenseSet<llvm::orc::SymbolStringPtr, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr> >, llvm::DenseMapInfo<llvm::orc::JITDylib*>, llvm::detail::DenseMapPair<llvm::orc::JITDylib*, llvm::DenseSet<llvm::orc::SymbolStringPtr, llvm::DenseMapInfo<llvm::orc::SymbolStringPtr> > > > const&)>) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:2095</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#55<span style="white-space:pre-wrap">       </span>0x00000001062dc6f8 in llvm::orc::ExecutionSession::lookup(std::__1::vector<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags>, std::__1::allocator<std::__1::pair<llvm::orc::JITDylib*, llvm::orc::JITDylibLookupFlags> > > const&, llvm::orc::SymbolStringPtr) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp:2120</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#56<span style="white-space:pre-wrap">     </span>0x0000000106392c40 in llvm::orc::LazyCallThroughManager::callThroughToSymbol(unsigned long long) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp:54</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#57<span style="white-space:pre-wrap">   </span>0x00000001063a07a8 in llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)::operator()(unsigned long long) const at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/LazyReexports.h:120</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#58<span style="white-space:pre-wrap">  </span>0x00000001063a0760 in decltype(std::__1::forward<llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)&>(fp)(std::__1::forward<unsigned long long>(fp0))) std::__1::__invoke<llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)&, unsigned long long>(llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)&, unsigned long long&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4425</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#59<span style="white-space:pre-wrap">    </span>0x00000001063a06f4 in unsigned long long std::__1::__invoke_void_return_wrapper<unsigned long long>::__call<llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)&, unsigned long long>(llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)&, unsigned long long&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__functional_base:317</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#60<span style="white-space:pre-wrap">  </span>0x00000001063a06a8 in std::__1::__function::__alloc_func<llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long), std::__1::allocator<llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)>, unsigned long long (unsigned long long)>::operator()(unsigned long long&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1533</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#61<span style="white-space:pre-wrap">       </span>0x000000010639f038 in std::__1::__function::__func<llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long), std::__1::allocator<llvm::Error llvm::orc::LocalLazyCallThroughManager::init<llvm::orc::OrcAArch64>()::'lambda'(unsigned long long)>, unsigned long long (unsigned long long)>::operator()(unsigned long long&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1707</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#62<span style="white-space:pre-wrap">     </span>0x0000000106349f94 in std::__1::__function::__value_func<unsigned long long (unsigned long long)>::operator()(unsigned long long&&) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1860</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#63<span style="white-space:pre-wrap">  </span>0x0000000106349f30 in std::__1::function<unsigned long long (unsigned long long)>::operator()(unsigned long long) const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2419</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#64<span style="white-space:pre-wrap">    </span>0x0000000106349858 in llvm::orc::LocalTrampolinePool<llvm::orc::OrcAArch64>::reenter(void*, void*) at /Users/igorgomon/dev/third-party/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h:111</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#65<span style="white-space:pre-wrap">        </span>0x0000000117634090 in 0x117634090 ()</p><p style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgba(0,0,0,0.85)">#66<span style="white-space:pre-wrap">  </span>0x0000000106323a08 in llvm::orc::runAsMain(int (*)(int, char**), llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, llvm::Optional<llvm::StringRef>) at /Users/igorgomon/dev/third-party/llvm-project/llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp:45</p></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
</div></blockquote></div></div></blockquote></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</div></blockquote></div></body></html>