<div dir="ltr"><div><div><div>Hi Philippe,<br><br></div>That doesn't solve the issue either!<br><br></div>Cheers!<br><br></div>Mohit<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 7:21 PM, Philippe Hausler <span dir="ltr"><<a href="mailto:phausler@apple.com" target="_blank">phausler@apple.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="auto"><div>You need to also pass --libdispatch but I am not quite sure that will fully fix the problem at hand.<br><br>Sent from my iPhone</div><div><div class="h5"><div><br>On Mar 29, 2017, at 6:29 PM, Mohit Athwani via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>I'm trying to get back to work starting from scratch on Swift Foundation on my Ubuntu 16.04 LTS system.<br><br></div>I cloned the main swift repo and all of it's dependencies via ssh<br><pre><code>./swift/utils/update-checkout --clone-with-ssh</code></pre>and after running (taken from instructions from the Foundation site):<br><br></div><font face="monospace,monospace">swift/utils/build-script --xctest --foundation -t</font><br><br></div>I get the following error:<span style="font-family:monospace,monospace"><br><br>+ make build-tests<br>/bin/bash ../libtool --tag=CC --mode=link /home/mohit/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/llvm-linux-x86_64/<wbr>bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-<wbr>source/swift-corelibs-<wbr>libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath /home/mohit/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/swift-linux-x86_<wbr>64/lib/swift/linux/x86_64 -o dispatch_apply dispatch_apply.o <a href="http://libbsdtests.la" target="_blank">libbsdtests.la</a> ../src/<a href="http://libdispatch.la" target="_blank">libdispatch.la</a> -lbsd -L/home/mohit/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/swift-linux-x86_<wbr>64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread <br>libtool: link: /home/mohit/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/llvm-linux-x86_64/<wbr>bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-<wbr>source/swift-corelibs-<wbr>libdispatch/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>source/build/Ninja-<wbr>DebugAssert/swift-linux-x86_<wbr>64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux -Wl,-rpath -Wl,/home/mohit/Documents/<wbr>swift-source/build/Ninja-<wbr>DebugAssert/swift-linux-x86_<wbr>64/lib/swift/linux/x86_64<br>/home/mohit/Documents/swift-<wbr>source/build/Ninja-<wbr>DebugAssert/swift-linux-x86_<wbr>64/lib/swift/linux/x86_64/<wbr>libswiftCore.so: undefined reference to `objc_release'<br>clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)<br>Makefile:1123: recipe for target 'dispatch_apply' failed<br>make: *** [dispatch_apply] Error 1<br>swift/utils/build-script: fatal error: command terminated with a non-zero exit status 2, aborting<br><br></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Looks like there is some undefined reference for <font face="monospace,monospace">objc_release<font face="arial,helvetica,sans-serif"> in libswiftCore.<br><br></font></font></font></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif">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">swift-corelibs-foundation<font face="arial,helvetica,sans-serif"> folder and tried to execute:<br></font></font></font></font></font></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><br>ninja<br><br></font></font></font></font></font></font></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif">Which tells me:<br><br></font></font></font></font></font></font></font></span></div><span style="font-family:monospace,monospace">ninja: error: loading 'build.ninja': No such file or directory<br><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><br></font></font></font></font></font></font></font></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif">Given my lack of experience here, I'm not quite sure how to go about resolving these issues.<br><br></font></font></font></font></font></font></font></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif">Could somebody help me out here please.<br><br></font></font></font></font></font></font></font></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif">Thanks,<br><br></font></font></font></font></font></font></font></span></div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif">Mohit<br></font></font></font></font></font></font></font></span><div><div><div><div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><font face="monospace,monospace"><font face="arial,helvetica,sans-serif"><br></font></font></font></font></font></font></font></span><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>______________________________<wbr>_________________</span><br><span>swift-corelibs-dev mailing list</span><br><span><a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>corelibs-dev</a></span><br></div></blockquote></div></blockquote></div><br></div>