<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=&quot;Debug&quot;<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">&lt;<a href="mailto:david.yang.liu@gmail.com" target="_blank">david.yang.liu@gmail.com</a>&gt;</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:&#39;Andale Mono&#39;"><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:&#39;Andale Mono&#39;"><span>    cd /Users/dyl/Documents/swift-<wbr>source/lldb</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:&#39;Andale Mono&#39;"><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:&#39;Andale Mono&#39;;min-height:14px"><span></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:&#39;Andale Mono&#39;"><span>** BUILD FAILED **</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:&#39;Andale Mono&#39;;min-height:14px"><span></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:&#39;Andale Mono&#39;;min-height:14px"><span></span><br></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:&#39;Andale Mono&#39;"><span>The following build commands failed:</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:&#39;Andale Mono&#39;"><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:&#39;Andale Mono&#39;"><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:&#39;Andale Mono&#39;"><span>(2 failures)</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:&#39;Andale Mono&#39;"><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:&#39;Andale Mono&#39;"><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 [ &quot;${CONFIGURATION}&quot; != 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 &quot;${DEBUGSERVER_USE_FROM_<wbr>SYSTEM}&quot; ]</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 &quot;${DEVELOPER_DIR}/../<wbr>SharedFrameworks/LLDB.<wbr>framework/Resources/<wbr>debugserver&quot; &quot;${TARGET_BUILD_DIR}/${TARGET_<wbr>NAME}&quot;</span></p>
<p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>    elif [ &quot;${DEBUGSERVER_DISABLE_<wbr>CODESIGN}&quot; == &quot;&quot; ]</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 &quot;${TARGET_BUILD_DIR}/${TARGET_<wbr>NAME}&quot;</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 [ &quot;${CONFIGURATION}&quot; != 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 [ &quot;${DEBUGSERVER_USE_FROM_<wbr>SYSTEM}&quot; == &quot;&quot; ]</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 [ &quot;${DEBUGSERVER_DISABLE_<wbr>CODESIGN}&quot; == &quot;&quot; ]</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 &quot;${TARGET_BUILD_DIR}/${TARGET_<wbr>NAME}&quot;</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">&lt;<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>&gt;</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 &lt;<a href="mailto:david.yang.liu@gmail.com" target="_blank">david.yang.liu@gmail.com</a>&gt; wrote:<br>
&gt; Hi Dimitri,<br>
&gt;<br>
&gt; So i have built using ./utils/build-script -R --debug-swift-stdlib how ever<br>
&gt; the REPL no longer has line numbers and i can not set a breakpoint via `:b`<br>
&gt; and am unable to get to lldb to set breakpoints.<br>
&gt; Thanks again for your help.<br>
<br>
</span>This build does not include LLDB, only the components that I mentioned:<br>
<span><br>
&gt; This will build the compiler, the standard library, and SDK overlays.<br>
<br>
</span>Add &#39;--lldb&#39; if you need the debugger.  (Note that you&#39;d need to start<br>
the REPL from the LLDB build dir, or install everything.  Running<br>
&#39;swift&#39; 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&lt;i;j++){if(!(i%j)){j=0;brea<wbr>k;}}if<br>
(j){printf(&quot;%d\n&quot;,i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>&gt;*/<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>