<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 5, 2016, at 1:50 PM, Todd Fiala &lt;<a href="mailto:tfiala@apple.com" class="">tfiala@apple.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 5, 2016, at 1:41 PM, Rex Fenley via swift-lldb-dev &lt;<a href="mailto:swift-lldb-dev@swift.org" class="">swift-lldb-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="font-size:12.8px" class="">Hey swift lldb team!</span><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">I tried building the LLDB target from within Xcode. However, I get the following error during compilation:</div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px" class=""><p class="">subprocess.CalledProcessError: Command '['python', '/Users/Rex/Documents/<wbr class="">projects/swift-lldb/llvm/<wbr class="">tools/swift/utils/build-<wbr class="">script', '--preset=LLDB_Swift_<wbr class="">ReleaseAssert', 'swift_install_destdir=/Users/<wbr class="">Rex/Documents/projects/swift-<wbr class="">lldb/llvm-build/ReleaseAssert/<wbr class="">swift-macosx-x86_64']' returned non-zero exit status 1</p></blockquote><div style="font-size:12.8px" class=""></div></div></div></blockquote><div class=""><br class=""></div><div class="">That message indicates that the LLVM/clang/Swift build portion of the Xcode-driven build failed. &nbsp;There should be actual failure content from build-script somewhere above the ‘exit status 1’ portion. &nbsp;You might need to go to your build log (the Report Navigator, right-most speech-bubble-like icon from the left pane of Xcode). &nbsp;There should be a build log that details everything the Xcode build did, of which running the build-script is one stage.</div><div class=""><br class=""></div><div class="">Just to verify, what Xcode scheme and/or configuration are you building? &nbsp;It should be the ‘desktop’ scheme, which will default to the DebugClang (or maybe Debug) configuration.</div></div></div></div></blockquote><div><br class=""></div><div>The other thing that might be the issue may be the state of the llvm, clang, swift and cmark repositories. &nbsp;If your original check-out was via lldb, then it will automatically do a git clone of the relevant dependent projects for you. &nbsp;However, it will not update them. &nbsp;So, if you allowed the lldb build to sync those, then did a refresh of lldb much later, and didn’t manually update the llvm, clang, swift or cmark directory, you will have an out-of-sync composite source tree.</div><div><br class=""></div><div>For the Xcode-driven build, the source layout looks like:</div><div>lldb/</div><div>lldb/llvm</div><div>lldb/llvm/tools/clang</div><div><div>lldb/llvm/tools/cmark</div><div class=""><div>lldb/llvm/tools/swift</div></div><div><br class=""></div><div>There will be symlinks in the lldb/ directory to the clang and swift directories.</div><div class=""><br class=""></div><div class="">You’ll want to make sure you update all of those at roughly the same time. &nbsp;That might be a good place to start if this sounds like it might be your scenario.</div></div><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div style="font-size:12.8px" class=""><p class="">And much further up I see</p></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px" class=""><p class="">warning: A compatible version of re2c (&gt;= 0.11.3) was not found; changes to src/*.<a href="http://in.cc/" class="">in.cc</a> will not affect your build.</p></blockquote><div style="font-size:12.8px" class=""><p class=""><b class=""></b></p><p class="">and</p></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px" class=""><p class="">error: unknown setting: cmark-cmake-options</p></blockquote><div style="font-size:12.8px" class=""><p class="">How may I fix this/these issues to build and run lldb from Xcode?</p><p class="">Thanks :)</p></div><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><span class=""><div style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;" class=""><span style="font-size:16px;font-family:arial;background-color:transparent;font-style:italic;vertical-align:baseline;white-space:pre-wrap" class="">Rex Fenley</span><span style="font-size:16px;font-family:arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""> &nbsp;</span><span style="font-size:11px;font-family:arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">|</span><span style="line-height:1.15;font-family:arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""> &nbsp;</span><span style="font-size:11px;font-family:arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">IOS DEVELOPER</span><br class=""></div></span><span class=""><br class=""><div style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;" class=""><span style="font-size:11px;font-family:arial;color:rgb(153,153,153);vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class=""><img src="https://lh5.googleusercontent.com/xMgzw3JkFL3DLkdwyq0WxJzKs_XP57gVVCaBMvgi1FKCjSeue0xdx3JZeCWBlxN4KRHhHOfdvJbc1N-AjTwXcKIq4cjJg9H7iaFpQ8WbO4N3c9Y5dzi19cPOs_owPquuqw" width="250px;" height="53px;" style="border: none;" class=""></span></div><div style="line-height: 1.15; margin-top: 0pt; margin-bottom: 0pt;" class=""><a href="https://www.remind.com/" style="text-decoration:none" target="_blank" class=""><span style="font-size:11px;font-family:arial;color:rgb(17,85,204);font-weight:bold;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class="">Remind.com</span></a><span style="font-family:arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class=""> </span><span style="font-size:11px;font-family:arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class="">| &nbsp;</span><a href="http://blog.remind.com/" style="text-decoration:none" target="_blank" class=""><span style="font-size:11px;font-family:arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class="">BLOG</span></a><span style="font-size:11px;font-family:arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class=""> &nbsp;| &nbsp;</span><a href="https://twitter.com/remindhq" style="text-decoration:none" target="_blank" class=""><span style="font-size:11px;font-family:arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class="">FOLLOW US</span></a><span style="font-size:11px;font-family:arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class=""> &nbsp;| </span><span style="font-family:arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class="">&nbsp;</span><span style="text-decoration:underline;font-size:11px;font-family:arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent" class=""><a href="https://www.facebook.com/remindhq" style="text-decoration:none" target="_blank" class="">LIKE US</a></span></div></span></div></div>
</div>
_______________________________________________<br class="">swift-lldb-dev mailing list<br class=""><a href="mailto:swift-lldb-dev@swift.org" class="">swift-lldb-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" class="">https://lists.swift.org/mailman/listinfo/swift-lldb-dev</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></body></html>