[llvm-dev] opt: undefined symbol: _ZN4llvm9DebugFlagE

Irini via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 2 08:23:20 PST 2015


*On 10/30/2015 10:02 PM, Krzysztof Parzyszek via llvm-dev*wrote: 
<mailto:llvm-dev%40lists.llvm.org?Subject=Re%3A%20%5Bllvm-dev%5D%20opt%3A%20undefined%20symbol%3A%20_ZN4llvm9DebugFlagE&In-Reply-To=%3C5633A294.8080506%40codeaurora.org%3E> 

------------------------------------------------------------------------

On 10/30/2015 11:01 AM, Irini via llvm-dev wrote:
>>
/
/>/> I try to run my pass by executing:
/>/>  opt -load ../../../Release+Asserts/lib/MyPass.so -MyPassName
/>>
>>/  But I get this error:
/>>/
/>/> Error opening '../../../Release+Asserts/lib/MyPass.so':
/>/> ../../../Release+Asserts/lib/MyPass.so: undefined symbol://  _ZN4llvm9DebugFlagE
/>/> -load request ignored.
/>>/   opt: Unknown command line argument '-MyPassName'. Try: 'opt -help'
/>
>
> Is your "opt" built with NDEBUG?
>
> -Krzysztof

I run clang with DNDEBUG.
and opt with -module-debuginfo
but error is still here.
(I still need the debug flag though, is there any other way?)

-Irini

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151102/c5ba7f27/attachment.html>


More information about the llvm-dev mailing list