<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 16, 2020, at 2:28 PM, Ted Woodward via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><a href="http://lldb.llvm.org/resources/build.html" style="color: rgb(5, 99, 193); text-decoration: underline;" class="">http://lldb.llvm.org/resources/build.html</a><span class="Apple-converted-space"> </span>Says we need swig 2 or later:<o:p class=""></o:p></div><p style="margin-left: 13.5pt; line-height: 16.8pt; background-color: white; background-position: initial initial; background-repeat: initial initial;" class=""><span style="font-family: Georgia, serif; color: rgb(62, 67, 73);" class="">If you want to run the test suite, you’ll need to build LLDB with Python scripting support.<o:p class=""></o:p></span></p><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -0.25in; line-height: 16.8pt; background-color: white;" class=""><span style="font-size: 10pt; font-family: Symbol; color: rgb(62, 67, 73);" class=""><span class="">·<span style="font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-family: Georgia, serif; color: rgb(62, 67, 73);" class=""><a href="http://www.python.org/" style="color: rgb(5, 99, 193); text-decoration: underline;" class=""><span style="color: rgb(0, 75, 107);" class="">Python</span></a><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt 0.5in; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -0.25in; line-height: 16.8pt; background-color: white;" class=""><span style="font-size: 10pt; font-family: Symbol; color: rgb(62, 67, 73);" class=""><span class="">·<span style="font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";" class=""> <span class="Apple-converted-space"> </span></span></span></span><span style="font-family: Georgia, serif; color: rgb(62, 67, 73);" class=""><a href="http://swig.org/" style="color: rgb(5, 99, 193); text-decoration: underline;" class=""><span style="color: rgb(0, 75, 107);" class="">SWIG</span></a> 2 or later.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">I don’t think this is correct anymore.<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">test/API/python_api/sbenvironment/TestSBEnvironment.py has this line:<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""> env.Set("FOO", "bar", overwrite=True)<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">lldb built with swig 2.0.11 fails this test with the error:<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""> env.Set("FOO", "bar", overwrite=True)<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">TypeError: Set() got an unexpected keyword argument 'overwrite'<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">It works when lldb is built with swig 3.0.8.<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div></div></div></blockquote><br class=""></div><div>Yes, we bumped the swig requirements.</div><div>Swig-2, among others, don’t support python 3 correctly.</div><div><br class=""></div><div>Feel free to submit a patch.</div><div><br class=""></div><div>—</div><div>D</div></body></html>