<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 2:36 PM, Rex Fenley &lt;<a href="mailto:rex@remind101.com" class="">rex@remind101.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hey Todd, thanks for the info!<div class=""><br class=""></div><div class="">I was attempting to build from the LLDM scheme. The only errors were the two I provided, I'll post more information at the bottom. When trying the "desktop" scheme I get the following:</div></div></div></blockquote><div><br class=""></div><div>Okay - switch to the desktop scheme; otherwise, you’ll be missing some components. &nbsp;(That is not particularly well documented - the LLDB scheme is literally for the LLDB.framework, but not everything).</div><blockquote type="cite" class=""><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><p class="gmail-p1">"debugserver" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.</p><div class=""><br class=""></div></div></blockquote></div></div></blockquote><div><br class=""></div><div>You have a couple options there.</div><div><br class=""></div><div>1. If you follow the docs in lldb/docs/code-signing.txt, your debugserver will be usable regardless of that message.</div><div><br class=""></div><div>2. [Preferred] Alternatively, you can set the Xcode build variable DEBUGSERVER_USE_FROM_SYSTEM=1, either via an xcodebuild command line, or by setting it directly in your Xcode settings. &nbsp;It’s not enough for it to be an environment variable set. &nbsp;If you go with this, the debugserver will be copied from your Xcode into the built LLDB, which will then be an official Apple-signed debugserver. &nbsp;Unless you are changing debugserver, that is generally the way to go. &nbsp;A fair amount of the Swift CI runs in this configuration. &nbsp;(Although not everything, as we really do change debugserver and want to test those changes.)</div><div><br class=""></div><div>The xcodebuild line with that set would be:</div><div>$ cd your/lldb/source/root</div><div>$ xcodebuild -scheme desktop DEBUGSERVER_USE_FROM_SYSTEM=1</div><div><br class=""></div><div>Let me know if that gets you further.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><br class=""></div><div class="">I don't know if syncing is the issue, I simply git cloned swift-lldb from github and went to the tag "<b class="">swift-3.0-RELEASE"</b>&nbsp;and built.</div><div class=""><br class=""></div><div class="">more info from LLDB scheme errors:</div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><p class="gmail-p1">bootstrapping ninja...</p></div><div class=""><p class="gmail-p1">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><span class="Apple-converted-space">&nbsp;</span>will not affect your build.</p></div><div class=""><p class="gmail-p1">wrote build.ninja.</p></div><div class=""><p class="gmail-p1">bootstrap complete.&nbsp; rebuilding...</p></div><div class=""><p class="gmail-p1">+ popd</p></div><div class=""><p class="gmail-p1">+ env HOST_VARIABLE_macosx_x86_64__SWIFT_BENCHMARK_TARGETS=swift-benchmark-macosx-x86_64 HOST_VARIABLE_macosx_x86_64__SWIFT_RUN_BENCHMARK_TARGETS=check-swift-benchmark-macosx-x86_64 'HOST_VARIABLE_macosx_x86_64__SWIFT_SDKS=IOS IOS_SIMULATOR OSX TVOS TVOS_SIMULATOR WATCHOS WATCHOS_SIMULATOR' HOST_VARIABLE_macosx_x86_64__SWIFT_STDLIB_TARGETS=swift-test-stdlib-macosx-x86_64 HOST_VARIABLE_macosx_x86_64__SWIFT_TEST_TARGETS= caffeinate /Users/Rex/Documents/projects/swift-lldb/swift/utils/build-script-impl --workspace /Users/Rex/Documents/projects/swift-lldb --build-dir /Users/Rex/Documents/projects/swift-lldb/llvm-build/Ninja-RelWithDebInfoAssert --install-prefix /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr --host-target macosx-x86_64 --stdlib-deployment-targets 'macosx-x86_64 iphonesimulator-i386 iphonesimulator-x86_64 appletvsimulator-x86_64 watchsimulator-i386 iphoneos-armv7 iphoneos-armv7s iphoneos-arm64 appletvos-arm64 watchos-armv7k' --host-cc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --host-cxx /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ --darwin-xcrun-toolchain default --darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0 --darwin-deployment-version-tvos=9.0 --darwin-deployment-version-watchos=2.0 --cmake /usr/local/bin/cmake --cmark-build-type RelWithDebInfo --llvm-build-type RelWithDebInfo --swift-build-type RelWithDebInfo --swift-stdlib-build-type RelWithDebInfo --lldb-build-type RelWithDebInfo --foundation-build-type RelWithDebInfo --libdispatch-build-type RelWithDebInfo --xctest-build-type RelWithDebInfo --swift-enable-assertions true --swift-stdlib-enable-assertions true --swift-analyze-code-coverage false --cmake-generator Ninja --build-jobs 8 '--common-cmake-options=-G Ninja -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_MAKE_PROGRAM=/Users/Rex/Documents/projects/swift-lldb/llvm-build/Ninja-RelWithDebInfoAssert/ninja-build/ninja' --build-args=-j8 --cmark-cmake-options= '--llvm-cmake-options=-DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD=X86;ARM;AArch64;PowerPC;SystemZ' --swift-cmake-options= --build-stdlib-deployment-targets all --ninja-bin=/Users/Rex/Documents/projects/swift-lldb/llvm-build/Ninja-RelWithDebInfoAssert/ninja-build/ninja --skip-build-benchmarks --skip-build-foundation --skip-build-xctest --skip-build-lldb --skip-build-llbuild --skip-build-libdispatch --skip-build-swiftpm --skip-build-playgroundlogger --skip-build-playgroundsupport --build-swift-dynamic-stdlib --build-swift-dynamic-sdk-overlay --skip-build-ios-device --skip-build-ios-simulator --skip-build-tvos-device --skip-build-tvos-simulator --skip-build-watchos-device --skip-build-watchos-simulator --skip-build-android --skip-test-swift --skip-test-cmark --skip-test-lldb --skip-test-llbuild --skip-test-swiftpm --skip-test-xctest --skip-test-foundation --skip-test-libdispatch --skip-test-playgroundlogger --skip-test-playgroundsupport --skip-test-linux --skip-test-freebsd --skip-test-cygwin --skip-test-osx --skip-test-ios-host --skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator --skip-test-watchos-host --skip-test-watchos-simulator --skip-test-android-host --skip-test-benchmarks --skip-test-optimized --android-deploy-device-path /data/local/tmp --toolchain-prefix /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --install-destdir=/Users/Rex/Documents/projects/swift-lldb/llvm-build/ReleaseAssert/swift-macosx-x86_64 --llvm-lit-args=-sv</p></div><div class=""><p class="gmail-p1">error: unknown setting: cmark-cmake-options</p><div class=""><br class=""></div></div></blockquote></div></div></blockquote><div><br class=""></div><div>Two more things to check.</div><div><br class=""></div><div>1. Are you using a very recent version of cmake? &nbsp;I’d suggest going with the latest one available (should be at least 3.6.x).</div><div><br class=""></div><div>2. Blow away your lldb/llvm-build directory. &nbsp;You may have a stale cmake setup. &nbsp;We’ve had a few usage issues with cmake where our build isn’t properly handling modifications to the cmake files in a stable way. &nbsp;The net result is you can get cmake ninja setups that get confused.</div><div><br class=""></div><div>Otherwise, you may need to ping the swift-dev list, since this is a failure in the LLVM/clang/Swift build step as built with build-script from Swift.</div><div><br class=""></div><div>All the same, let me know if you get further with any of these.</div><div><br class=""></div><div>-Todd</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Wed, Oct 5, 2016 at 1:58 PM, Todd Fiala<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:tfiala@apple.com" target="_blank" class="">tfiala@apple.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><br class=""><div class=""><span class=""><blockquote type="cite" class=""><div class="">On Oct 5, 2016, at 1:50 PM, Todd Fiala &lt;<a href="mailto:tfiala@apple.com" target="_blank" class="">tfiala@apple.com</a>&gt; wrote:</div><br class=""><div class=""><div style="word-wrap: break-word;" 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" target="_blank" class="">swift-lldb-dev@swift.org</a>&gt; wrote:</div><br class=""><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/projects<wbr class="">/swift-lldb/llvm/tools/swift/<wbr class="">utils/build-script', '--preset=LLDB_Swift_ReleaseAs<wbr class="">sert', 'swift_install_destdir=/Users/<wbr class="">Rex/Documents/projects/swift-l<wbr class="">ldb/llvm-build/ReleaseAssert/s<wbr class="">wift-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 class=""><br class=""></div></span><div class="">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 class=""><br class=""></div><div class="">For the Xcode-driven build, the source layout looks like:</div><div class="">lldb/</div><div class="">lldb/llvm</div><div class="">lldb/llvm/tools/clang</div><div class=""><div class="">lldb/llvm/tools/cmark</div><div class=""><div class="">lldb/llvm/tools/swift</div></div><div class=""><br class=""></div><div class="">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><span class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word;" 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/" target="_blank" class="">in.cc</a><span class="Apple-converted-space">&nbsp;</span>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>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class=""><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/" target="_blank" style="text-decoration: none;" 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/" target="_blank" style="text-decoration: none;" 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" target="_blank" style="text-decoration: none;" 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" target="_blank" style="text-decoration: none;" class="">LIKE US</a></span></div></span></div></div></div>______________________________<wbr class="">_________________<br class="">swift-lldb-dev mailing list<br class=""><a href="mailto:swift-lldb-dev@swift.org" target="_blank" class="">swift-lldb-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-lldb-dev" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-lldb-<wbr class="">dev</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></span></div><br class=""></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="gmail_signature" data-smartmail="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/" target="_blank" style="text-decoration: none;" 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/" target="_blank" style="text-decoration: none;" 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" target="_blank" style="text-decoration: none;" 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" target="_blank" style="text-decoration: none;" class="">LIKE US</a></span></div></span></div></div></div></div></blockquote></div><br class=""></body></html>