<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 Mar 30, 2017, at 4:22 PM, Michael Gottesman via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-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; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class=""><div class=""><br class="Apple-interchange-newline">On Mar 30, 2017, at 12:31 PM, Mohit Athwani via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="" style="font-size: 12.800000190734863px;"><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 class="" style="white-space: pre-wrap;"><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 class="" style="font-family: monospace, monospace;"><br class=""><br class="">+ make build-tests<br class="">/bin/bash ../libtool&nbsp; --tag=CC&nbsp;&nbsp; --mode=link /home/mohit/Documents/swift-<wbr class="">source/build/Ninja-<wbr class="">DebugAssert/llvm-linux-x86_64/<wbr class="">bin/clang -Wall -Wno-deprecated-declarations&nbsp; -fblocks -I/home/mohit/Documents/swift-<wbr class="">source/swift-corelibs-<wbr class="">libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY&nbsp;&nbsp; -g -O0 -rpath /home/mohit/Documents/swift-<wbr class="">source/build/Ninja-<wbr class="">DebugAssert/swift-linux-x86_<wbr class="">64/lib/swift/linux/x86_64&nbsp; -o dispatch_apply dispatch_apply.o&nbsp;<a href="http://libbsdtests.la/" target="_blank" class="">libbsdtests.la</a>&nbsp;../src/<a href="http://libdispatch.la/" target="_blank" class="">libdispatch.la</a>&nbsp; -lbsd -L/home/mohit/Documents/swift-<wbr class="">source/build/Ninja-<wbr class="">DebugAssert/swift-linux-x86_<wbr class="">64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread&nbsp;<br class="">libtool: link: /home/mohit/Documents/swift-<wbr class="">source/build/Ninja-<wbr class="">DebugAssert/llvm-linux-x86_64/<wbr class="">bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-<wbr class="">source/swift-corelibs-<wbr class="">libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -o .libs/dispatch_apply dispatch_apply.o&nbsp; ./.libs/libbsdtests.a ../src/.libs/libdispatch.so -lbsd -L/home/mohit/Documents/swift-<wbr class="">source/build/Ninja-<wbr class="">DebugAssert/swift-linux-x86_<wbr class="">64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux -Wl,-rpath -Wl,/home/mohit/Documents/<wbr class="">swift-source/build/Ninja-<wbr class="">DebugAssert/swift-linux-x86_<wbr class="">64/lib/swift/linux/x86_64<br class="">/home/mohit/Documents/swift-<wbr class="">source/build/Ninja-<wbr class="">DebugAssert/swift-linux-x86_<wbr class="">64/lib/swift/linux/x86_64/<wbr class="">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 class="" style="font-family: monospace, monospace;"><font face="arial,helvetica,sans-serif" class="">Looks like there is some undefined reference for&nbsp;<font face="monospace,monospace" class="">objc_release<font face="arial,helvetica,sans-serif" class="">&nbsp;in libswiftCore.<br class=""><br class=""></font></font></font></span></div><span class="" style="font-family: monospace, monospace;"><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&nbsp;<font face="monospace,monospace" class="">swift-corelibs-foundation<font face="arial,helvetica,sans-serif" class="">&nbsp;folder and tried to execute:<br class=""></font></font></font></font></font></span></div><span class="" style="font-family: monospace, monospace;"><br class="">ninja<br class=""><br class=""></span></div><span class="" style="font-family: monospace, monospace;"><font face="arial,helvetica,sans-serif" class="">Which tells me:<br class=""><br class=""></font></span></div><span class="" style="font-family: monospace, monospace;">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="Apple-converted-space">&nbsp;</span><a href="https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/2413/consoleFull" class="">https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/2413/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><br class=""></div><div>Let me elaborate, when I say misconfigured, I mean you are missing a dependency.</div><br class=""><blockquote type="cite" 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; -webkit-text-stroke-width: 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 class="" style="font-size: 12.800000190734863px;"><div class=""><div class=""><div class=""><span class="" style="font-family: monospace, monospace;"><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 class="" style="font-family: monospace, monospace;"><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 class="" style="font-family: monospace, monospace;"><font face="arial,helvetica,sans-serif" class="">Could somebody help me out here please.<br class=""><br class=""></font></span></div><span class="" style="font-family: monospace, monospace;"><font face="arial,helvetica,sans-serif" class="">Thanks,<br class=""><br class=""></font></span></div><span class="" style="font-size: 12.800000190734863px; font-family: monospace, monospace;"><font face="arial,helvetica,sans-serif" class="">Mohit</font></span><br class=""></div>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></blockquote></div><br class="" 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; -webkit-text-stroke-width: 0px;"><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; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" 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; -webkit-text-stroke-width: 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; -webkit-text-stroke-width: 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; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" 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; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.swift.org/mailman/listinfo/swift-users</a></div></blockquote></div><br class=""></body></html>