<div dir="ltr">Hi Dimitri<div><br></div><div>Update, hardcoding the following in the build-script-impl and building tool-chain</div><div><div>-DSWIFT_STDLIB_BUILD_TYPE="Debug"<br></div><div>-DSWIFT_STDLIB_ASSERTIONS=true</div></div><div>is working for me. </div><div>But any attempt to build lldb with -l or -lldb fails with the above error. I think this unblocks me for now. Will keep investigating </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 27, 2016 at 6:09 PM, David Liu <span dir="ltr"><<a href="mailto:david.yang.liu@gmail.com" target="_blank">david.yang.liu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>PBXCp /Users/dyl/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/lldb-macosx-x86_<wbr>64/CustomSwift-Debug/repl_<wbr>swift /Users/dyl/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/lldb-macosx-x86_<wbr>64/CustomSwift-Debug/LLDB.<wbr>framework/Resources/repl_swift</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span> cd /Users/dyl/Documents/swift-<wbr>source/lldb</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span> builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/dyl/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/lldb-macosx-x86_<wbr>64/CustomSwift-Debug/repl_<wbr>swift /Users/dyl/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/lldb-macosx-x86_<wbr>64/CustomSwift-Debug/LLDB.<wbr>framework/Resources</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';min-height:14px"><span></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span>** BUILD FAILED **</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';min-height:14px"><span></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';min-height:14px"><span></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span>The following build commands failed:</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span><span style="white-space:pre-wrap">        </span>PhaseScriptExecution Run\ Script /Users/dyl/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/lldb-macosx-x86_<wbr>64/lldb.build/CustomSwift-<wbr>Debug/lldb-server.build/<wbr>Script-<wbr>4C3326CA18B2A2B800EB5DD7.sh</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span><span style="white-space:pre-wrap">        </span>PhaseScriptExecution Run\ Script /Users/dyl/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/lldb-macosx-x86_<wbr>64/debugserver.build/<wbr>CustomSwift-Debug/debugserver.<wbr>build/Script-<wbr>4C3326CB18B2A2F600EB5DD7.sh</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span>(2 failures)</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono'"><span>./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>davids-Mac-Pro:swift-source dyl$ ./swift/utils/build-script -l</span></p></div><div><span><br></span></div><div><span><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>if [ "${CONFIGURATION}" != BuildAndIntegration ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> if [ -n "${DEBUGSERVER_USE_FROM_<wbr>SYSTEM}" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span><span style="white-space:pre-wrap">                </span>ditto "${DEVELOPER_DIR}/../<wbr>SharedFrameworks/LLDB.<wbr>framework/Resources/<wbr>debugserver" "${TARGET_BUILD_DIR}/${TARGET_<wbr>NAME}"</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> elif [ "${DEBUGSERVER_DISABLE_<wbr>CODESIGN}" == "" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> codesign -f -s lldb_codesign "${TARGET_BUILD_DIR}/${TARGET_<wbr>NAME}"</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>fi</span></p></div><div><span><br></span></div><div><p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>if [ "${CONFIGURATION}" != BuildAndIntegration ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> if [ "${DEBUGSERVER_USE_FROM_<wbr>SYSTEM}" == "" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> if [ "${DEBUGSERVER_DISABLE_<wbr>CODESIGN}" == "" ]</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> then</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> codesign -f -s lldb_codesign "${TARGET_BUILD_DIR}/${TARGET_<wbr>NAME}"</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span> fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>fi</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span></span><br></p></div></div><div class="HOEnZb"><div class="h5"><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>On Sat, Aug 27, 2016 at 2:12 PM, David Liu <<a href="mailto:david.yang.liu@gmail.com" target="_blank">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><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><div><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=<wbr>2;j<i;j++){if(!(i%j)){j=0;brea<wbr>k;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>