<div dir="ltr"><div dir="ltr"><br><div>Thank you for your response. I don't use any "::dump()" method in my application.<br></div><div><br></div><div>I found that removing compiler optimization parameter "-O2" resolved the issue. Any optimization parameter, such O1, O2 or O3 causes the same issue, not sure why.<br></div><div><br></div>Any ideas?</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 10, 2020 at 1:34 PM Fangrui Song <<a href="mailto:maskray@google.com">maskray@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 2020-09-09, Aaron via llvm-dev wrote:<br>
>Hello,<br>
><br>
>I recently updated LLVM from version 6.0.0 to 10.0.0.<br>
><br>
>I see the following issue when I compile an application only with code<br>
>coverage compiler options. Thes issue does not appear in any other build<br>
>type.<br>
><br>
>*...:(__llvm_prf_data[__profv__**ZNK4llvm3cfg6UpdateIPNS_**10BasicBlockEE4dumpEv]+0x18):<br>
>**undefined reference to `llvm::cfg::Update<llvm::**BasicBlock*>::dump()<br>
>const'*<br>
><br>
>I see this issue only when I compile the app with the following compiler<br>
>options:<br>
><br>
>*-g -O2 -fprofile-instr-generate -fcoverage-mapping*<br>
><br>
>I don't use any special flags when I build LLVM. I used g++-7 (or<br>
>clang++-9) to compile LLVM static libs. The issue does not appear with LLVM<br>
>6.0.0.<br>
><br>
>I included all LLVM libraries in the same order whatever *llvm-config<br>
>--libs *outputs.<br>
><br>
>What lib am I missing? Or is this a known issue?<br>
><br>
>Thank you,<br>
>Aaron<br>
<br>
llvm::cfg::Update<llvm::**BasicBlock*>::dump() is guarded by <br>
!defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)<br>
<br>
I cannot find anywhere it is referenced.<br>
It seems that you call this function but do not provide the definition.<br>
</blockquote></div>