<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 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 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&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 style="font-family:monospace,monospace" class=""><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 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&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 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><br class=""></div><div>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><br class=""></div><div>Specifically:</div><div><br class=""></div><div>URL: <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><br class=""></div><div>Preset: buildbot_incremental_linux</div><div><br class=""></div><div>If that does not work on your system, then something is misconfigured.</div><div><br class=""></div><div>Also I wouldn't use --clone-with-ssh it is unnecessary.</div><div><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>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>