<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></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 Apr 2, 2017, at 1:17 PM, Mohit Athwani <<a href="mailto:mohit.athwani@gmail.com" class="">mohit.athwani@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Michael,<div class=""><br class=""></div><div class="">I just submitted my pull request: <a href="https://github.com/apple/swift-corelibs-foundation/pull/928" class="">https://github.com/apple/swift-corelibs-foundation/pull/928</a></div><div class="">Now waiting for an admin to initiate tests.</div><div class=""><br class=""></div><div class="">Thanks so much for your help!</div></div></div></blockquote><div><br class=""></div><div>HTH!</div><div><br class=""></div><div>Michael</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Cheers!</div><div class="">Mohit</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Apr 2, 2017 at 12:36 PM, Michael Gottesman <span dir="ltr" class=""><<a href="mailto:mgottesman@apple.com" target="_blank" class="">mgottesman@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">No worries. Just trying to be helpful = ).<span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">Michael</div></font></span><div class=""><div class="h5"><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 2, 2017, at 12:27 PM, Mohit Athwani <<a href="mailto:mohit.athwani@gmail.com" target="_blank" class="">mohit.athwani@gmail.com</a>> wrote:</div><br class="m_6876921015859064700Apple-interchange-newline"><div class="">
<div class="">
<div name="messageBodySection" class="">Hi Michael,<br class="">
<br class="">
Thanks for checking up on me. I'm actually working on it right now. Will give you an update in an hour or so...</div>
<div name="messageSignatureSection" class=""><br class="">
Cheers!<br class="">
<br class="">
<br class="">
--<br class="">
Mohit Athwani<br class="">
<a href="http://about.me/mohitathwani" target="_blank" class="">http://about.me/mohitathwani</a></div>
<div name="messageReplySection" class=""><br class="">
On Apr 2, 2017, 12:59 AM -0700, Michael Gottesman <<a href="mailto:mgottesman@apple.com" target="_blank" class="">mgottesman@apple.com</a>>, wrote:<br class="">
<blockquote type="cite" class="">Hey Mohit!
<div class=""><br class=""></div>
<div class="">Were you able to build successfully?</div>
<div class=""><br class=""></div>
<div class="">Michael</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Mar 30, 2017, at 4:29 PM, Michael Gottesman <<a href="mailto:mgottesman@apple.com" target="_blank" class="">mgottesman@apple.com</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<div class="">
<div style="word-wrap:break-word" class="">I was just informed that swift-corelibs-foundation is actually using ninja! My bad!
<div class=""><br class=""></div>
<div class="">Still I would use the preset from the bots. It should just work. Otherwise, you are missing a dependency or have differing versions/etc.</div>
<div class=""><br class=""></div>
<div class="">Michael</div>
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Mar 30, 2017, at 4:25 PM, Michael Gottesman <<a href="mailto:mgottesman@apple.com" target="_blank" class="">mgottesman@apple.com</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<div class="">
<blockquote type="cite" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<div class=""><br class="m_6876921015859064700Apple-interchange-newline">
On Mar 30, 2017, at 4:22 PM, Michael Gottesman via swift-users <<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<div class="">
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<blockquote type="cite" class="">
<div class=""><br class="m_6876921015859064700Apple-interchange-newline">
On Mar 30, 2017, at 12:31 PM, Mohit Athwani via swift-users <<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div style="font-size:12.800000190734863px" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">I'm trying to get back to work starting from scratch on Swift Foundation on my Ubuntu 16.04 LTS system.<br class="">
<br class=""></div>
I cloned the main swift repo and all of it's dependencies via ssh<br class="">
<pre style="white-space:pre-wrap" class=""><code class="">./swift/utils/update-checkout --clone-with-ssh</code>
</pre>
and after running (taken from instructions from the Foundation site):<br class="">
<br class=""></div>
<font face="monospace,monospace" class="">swift/utils/build-script --xctest --foundation -t</font><br class="">
<br class=""></div>
I get the following error:<span style="font-family:monospace,monospace" class=""><br class="">
<br class="">
+ make build-tests<br class="">
/bin/bash ../libtool --tag=CC --mode=link /home/mohit/Documents/swift-so<wbr class="">urce/build/Ninja-DebugAssert/<wbr class="">llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-<wbr class="">source/swift-corelibs-libdispa<wbr class="">tch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath /home/mohit/Documents/swift-so<wbr class="">urce/build/Ninja-DebugAssert/<wbr class="">swift-linux-x86_64/lib/swift/<wbr class="">linux/x86_64 -o dispatch_apply dispatch_apply.o <a href="http://libbsdtests.la/" target="_blank" class="">libbsdtests.<wbr class="">la</a> ../src/<a href="http://libdispatch.la/" target="_blank" class="">libdispatch.la</a> -lbsd -L/home/mohit/Documents/swift-<wbr class="">source/build/Ninja-DebugAssert<wbr class="">/swift-linux-x86_64/lib/swift/<wbr class="">linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread <br class="">
libtool: link: /home/mohit/Documents/swift-so<wbr class="">urce/build/Ninja-DebugAssert/<wbr class="">llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-<wbr class="">source/swift-corelibs-libdispa<wbr class="">tch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -o .libs/dispatch_apply dispatch_apply.o ./.libs/libbsdtests.a ../src/.libs/libdispatch.so -lbsd -L/home/mohit/Documents/swift-<wbr class="">source/build/Ninja-DebugAssert<wbr class="">/swift-linux-x86_64/lib/swift/<wbr class="">linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux -Wl,-rpath -Wl,/home/mohit/Documents/swif<wbr class="">t-source/build/Ninja-DebugAsse<wbr class="">rt/swift-linux-x86_64/lib/<wbr class="">swift/linux/x86_64<br class="">
/home/mohit/Documents/swift-so<wbr class="">urce/build/Ninja-DebugAssert/<wbr class="">swift-linux-x86_64/lib/swift/<wbr class="">linux/x86_64/libswiftCore.so: undefined reference to `objc_release'<br class="">
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)<br class="">
Makefile:1123: recipe for target 'dispatch_apply' failed<br class="">
make: *** [dispatch_apply] Error 1<br class="">
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 2, aborting<br class="">
<br class=""></span></div>
<span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Looks like there is some undefined reference for <font face="monospace,monospace" class="">objc_release<font face="arial,helvetica,sans-serif" class=""> in libswiftCore.<br class="">
<br class=""></font></font></font></span></div>
<span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class=""><font face="monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">From the looks of the message it looks like swift was actually built but it's just that test cases weren't built. On this hunch, I went into my <font face="monospace,monospace" class="">swift-corelibs-foundation<font face="arial,helvetica,sans-serif" class=""> <wbr class="">folder and tried to execute:<br class=""></font></font></font></font></font></span></div>
<span style="font-family:monospace,monospace" class=""><br class="">
ninja<br class="">
<br class=""></span></div>
<span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Which tells me:<br class="">
<br class=""></font></span></div>
<span style="font-family:monospace,monospace" class="">ninja: error: loading 'build.ninja': No such file or directory<br class=""></span></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div class=""><br class=""></div>
<div class="">swift-corelibs-foundation does not use ninja. I would use the build-script line from the bots. That way you know you are doing the right thing.</div>
<div class=""><br class=""></div>
<div class="">Specifically:</div>
<div class=""><br class=""></div>
<div class="">URL:<span class="m_6876921015859064700Apple-converted-space"> </span><a href="https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/2413/consoleFull" target="_blank" class="">https://ci.swift.org/job/<wbr class="">oss-swift-incremental-RA-<wbr class="">linux-ubuntu-16_04/2413/<wbr class="">consoleFull</a></div>
<div class=""><br class=""></div>
<div class="">Preset: buildbot_incremental_linux</div>
<div class=""><br class=""></div>
<div class="">If that does not work on your system, then something is misconfigured.</div>
</div>
</div>
</blockquote>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br class=""></div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Let me elaborate, when I say misconfigured, I mean you are missing a dependency.</div>
<br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<blockquote type="cite" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<div class="">
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<div class=""><br class=""></div>
<div class="">Also I wouldn't use --clone-with-ssh it is unnecessary.</div>
<div class=""><br class=""></div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div style="font-size:12.800000190734863px" class="">
<div class="">
<div class="">
<div class=""><span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class=""><font face="monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class=""><font face="monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class=""><font face="monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class=""><br class=""></font></font></font></font></font></font></font></span></div>
<span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Given my lack of experience here, I'm not quite sure how to go about resolving these issues.<br class="">
<br class=""></font></span></div>
<span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Could somebody help me out here please.<br class="">
<br class=""></font></span></div>
<span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Thanks,<br class="">
<br class=""></font></span></div>
<span style="font-size:12.800000190734863px;font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Mohit</font></span><br class=""></div>
______________________________<wbr class="">_________________<br class="">
swift-users mailing list<br class="">
<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a><br class="">
<a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-users</a><br class=""></div>
</blockquote>
</div>
<br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">______________________________<wbr class="">_________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">swift-users mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<a href="mailto:swift-users@swift.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">swift-users@swift.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">
<a href="https://lists.swift.org/mailman/listinfo/swift-users" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-users</a></div>
</blockquote>
</div>
</blockquote>
</div>
<br class=""></div>
</div>
</div>
</blockquote>
</div>
<br class=""></div>
</blockquote>
</div>
</div>
</div></blockquote></div><br class=""></div></div></div></div>
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>