Irini via llvm-dev
2015-Oct-30 16:01 UTC
[llvm-dev] opt: undefined symbol: _ZN4llvm9DebugFlagE
Hi list, 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' I've googled this error but everything I find is about 'enabling assertions' that I've already done. This error seems quite weird to me as I was running successfully my pass until I changed the src folder. After adapting accordingly the paths on the makefile, I get the above error. I'd really appreciate any help on this. Thanks in advance, -- --Irini -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151030/3094690e/attachment.html>
Krzysztof Parzyszek via llvm-dev
2015-Oct-30 17:02 UTC
[llvm-dev] opt: undefined symbol: _ZN4llvm9DebugFlagE
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 -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation