<div dir="ltr">Hi Dimitri,<div><br></div><div>Thanks again for the help but unfortunately i am still stuck. </div><div>I added the --lldb flag and built it and ran in to some errors with this command./utils/build-script -R --debug-swift-stdlib --lldb</div><div>So i decided to start clean and re clone everything and start on fresh slate and try it with just the -l option ./utils/build-script -l<br></div><div>I got the same error both times, it looks like both of the scripts have to do with code signing. I did not see any code sign related entry in the README.md</div><div><br></div><div>Cheers</div><div><br></div><div>Dave </div><div><br></div><div><br></div><div><p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style="">PBXCp /Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/repl_swift /Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/LLDB.framework/Resources/repl_swift</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style=""> cd /Users/dyl/Documents/swift-source/lldb</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style=""> builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/repl_swift /Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/LLDB.framework/Resources</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';min-height:14px"><span style=""></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style="">** BUILD FAILED **</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';min-height:14px"><span style=""></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';min-height:14px"><span style=""></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style="">The following build commands failed:</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style=""><span class="" style="white-space:pre">        </span>PhaseScriptExecution Run\ Script /Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/lldb.build/CustomSwift-Debug/lldb-server.build/Script-4C3326CA18B2A2B800EB5DD7.sh</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style=""><span class="" style="white-space:pre">        </span>PhaseScriptExecution Run\ Script /Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/debugserver.build/CustomSwift-Debug/debugserver.build/Script-4C3326CB18B2A2F600EB5DD7.sh</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style="">(2 failures)</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style="">./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 65, aborting</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span style="">davids-Mac-Pro:swift-source dyl$ ./swift/utils/build-script -l</span></p></div><div><span style=""><br></span></div><div><span style=""><br></span></div><div><span style="font-family:Menlo;font-size:13px">#!/bin/sh -x</span><br></div><div>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style="">if [ "${CONFIGURATION}" != BuildAndIntegration ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style="">then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> if [ -n "${DEBUGSERVER_USE_FROM_SYSTEM}" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""><span class="" style="white-space:pre">                </span>ditto "${DEVELOPER_DIR}/../SharedFrameworks/LLDB.framework/Resources/debugserver" "${TARGET_BUILD_DIR}/${TARGET_NAME}"</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> elif [ "${DEBUGSERVER_DISABLE_CODESIGN}" == "" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> codesign -f -s lldb_codesign "${TARGET_BUILD_DIR}/${TARGET_NAME}"</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style="">fi</span></p></div><div><span style=""><br></span></div><div><p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style="">if [ "${CONFIGURATION}" != BuildAndIntegration ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style="">then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> if [ "${DEBUGSERVER_USE_FROM_SYSTEM}" == "" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> if [ "${DEBUGSERVER_DISABLE_CODESIGN}" == "" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> codesign -f -s lldb_codesign "${TARGET_BUILD_DIR}/${TARGET_NAME}"</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style=""> fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style="">fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style=""></span><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 27, 2016 at 2:17 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Aug 27, 2016 at 2:12 PM, David Liu <<a href="mailto:david.yang.liu@gmail.com">david.yang.liu@gmail.com</a>> wrote:<br>
> Hi Dimitri,<br>
><br>
> So i have built using ./utils/build-script -R --debug-swift-stdlib how ever<br>
> the REPL no longer has line numbers and i can not set a breakpoint via `:b`<br>
> and am unable to get to lldb to set breakpoints.<br>
> Thanks again for your help.<br>
<br>
</span>This build does not include LLDB, only the components that I mentioned:<br>
<span class=""><br>
> This will build the compiler, the standard library, and SDK overlays.<br>
<br>
</span>Add '--lldb' if you need the debugger. (Note that you'd need to start<br>
the REPL from the LLDB build dir, or install everything. Running<br>
'swift' from the build directory will always run the integrated REPL<br>
without LLDB.)<br>
<div class="HOEnZb"><div class="h5"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=<wbr>2;j<i;j++){if(!(i%j)){j=0;<wbr>break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br></div>