<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body 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><br>On Mar 29, 2017, at 6:29 PM, Mohit Athwani via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org">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-source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -o dispatch_apply dispatch_apply.o <a href="http://libbsdtests.la">libbsdtests.la</a> ../src/<a href="http://libdispatch.la">libdispatch.la</a> -lbsd -L/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread <br>libtool: link: /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-source/swift-corelibs-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-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux -Wl,-rpath -Wl,/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64<br>/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64/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><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-corelibs-dev mailing list</span><br><span><a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></span><br></div></blockquote></body></html>