[Lldb-commits] [PATCH] Avoid Python "UnboundedLocalError: local variable 'strErrMsgProgFail' referenced before assignment"

Stephan Bergmann via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 11 04:14:13 PST 2015


An attempt at building lldb from recent trunk source failed for me with 
a Python error

> UnboundedLocalError: local variable 'strErrMsgProgFail' referenced before assignment

in tools/lldb/scripts/Python/buildSwigPython.py.  I have not much of an 
idea about Python, but from 
<http://stackoverflow.com/questions/423379/using-global-variables-in-a-function-other-than-the-one-that-created-them> 
it looks like there is "global strErrMsgProgFail" missing, and the 
attached lldb-buildSwigPython.patch indeed fixed the problem for me.

(I have no commit rights, so would ask for this to get pushed by 
somebody if acceptable.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldb-buildSwigPython.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151111/ca2a0d31/attachment.bin>


More information about the lldb-commits mailing list