<div dir="ltr">Hi Michael,<div><br></div><div>I just submitted my pull request: <a href="https://github.com/apple/swift-corelibs-foundation/pull/928">https://github.com/apple/swift-corelibs-foundation/pull/928</a></div><div>Now waiting for an admin to initiate tests.</div><div><br></div><div>Thanks so much for your help!</div><div><br></div><div>Cheers!</div><div>Mohit</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 2, 2017 at 12:36 PM, Michael Gottesman <span dir="ltr"><<a href="mailto:mgottesman@apple.com" target="_blank">mgottesman@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 style="word-wrap:break-word">No worries. Just trying to be helpful = ).<span class="HOEnZb"><font color="#888888"><div><br></div><div>Michael</div></font></span><div><div class="h5"><div><br><div><blockquote type="cite"><div>On Apr 2, 2017, at 12:27 PM, Mohit Athwani <<a href="mailto:mohit.athwani@gmail.com" target="_blank">mohit.athwani@gmail.com</a>> wrote:</div><br class="m_6876921015859064700Apple-interchange-newline"><div>
<div>
<div name="messageBodySection">Hi Michael,<br>
<br>
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"><br>
Cheers!<br>
<br>
<br>
--<br>
Mohit Athwani<br>
<a href="http://about.me/mohitathwani" target="_blank">http://about.me/mohitathwani</a></div>
<div name="messageReplySection"><br>
On Apr 2, 2017, 12:59 AM -0700, Michael Gottesman <<a href="mailto:mgottesman@apple.com" target="_blank">mgottesman@apple.com</a>>, wrote:<br>
<blockquote type="cite">Hey Mohit!
<div><br></div>
<div>Were you able to build successfully?</div>
<div><br></div>
<div>Michael</div>
<div><br>
<div>
<blockquote type="cite">
<div>On Mar 30, 2017, at 4:29 PM, Michael Gottesman <<a href="mailto:mgottesman@apple.com" target="_blank">mgottesman@apple.com</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<div>
<div style="word-wrap:break-word">I was just informed that swift-corelibs-foundation is actually using ninja! My bad!
<div><br></div>
<div>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><br></div>
<div>Michael</div>
<div><br>
<div>
<blockquote type="cite">
<div>On Mar 30, 2017, at 4:25 PM, Michael Gottesman <<a href="mailto:mgottesman@apple.com" target="_blank">mgottesman@apple.com</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<div>
<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">
<div><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">swift-users@swift.org</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<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">
<blockquote type="cite">
<div><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">swift-users@swift.org</a>> wrote:</div>
<br class="m_6876921015859064700Apple-interchange-newline">
<div>
<div dir="ltr">
<div style="font-size:12.800000190734863px">
<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 style="white-space:pre-wrap"><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-so<wbr>urce/build/Ninja-DebugAssert/<wbr>llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-<wbr>source/swift-corelibs-libdispa<wbr>tch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath /home/mohit/Documents/swift-so<wbr>urce/build/Ninja-DebugAssert/<wbr>swift-linux-x86_64/lib/swift/<wbr>linux/x86_64 -o dispatch_apply dispatch_apply.o <a href="http://libbsdtests.la/" target="_blank">libbsdtests.<wbr>la</a> ../src/<a href="http://libdispatch.la/" target="_blank">libdispatch.la</a> -lbsd -L/home/mohit/Documents/swift-<wbr>source/build/Ninja-DebugAssert<wbr>/swift-linux-x86_64/lib/swift/<wbr>linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread <br>
libtool: link: /home/mohit/Documents/swift-so<wbr>urce/build/Ninja-DebugAssert/<wbr>llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-<wbr>source/swift-corelibs-libdispa<wbr>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>source/build/Ninja-DebugAssert<wbr>/swift-linux-x86_64/lib/swift/<wbr>linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux -Wl,-rpath -Wl,/home/mohit/Documents/swif<wbr>t-source/build/Ninja-DebugAsse<wbr>rt/swift-linux-x86_64/lib/<wbr>swift/linux/x86_64<br>
/home/mohit/Documents/swift-so<wbr>urce/build/Ninja-DebugAssert/<wbr>swift-linux-x86_64/lib/swift/<wbr>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"> <wbr>folder and tried to execute:<br></font></font></font></font></font></span></div>
<span style="font-family:monospace,monospace"><br>
ninja<br>
<br></span></div>
<span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Which tells me:<br>
<br></font></span></div>
<span style="font-family:monospace,monospace">ninja: error: loading 'build.ninja': No such file or directory<br></span></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br></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></div>
<div>Specifically:</div>
<div><br></div>
<div>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">https://ci.swift.org/job/<wbr>oss-swift-incremental-RA-<wbr>linux-ubuntu-16_04/2413/<wbr>consoleFull</a></div>
<div><br></div>
<div>Preset: buildbot_incremental_linux</div>
<div><br></div>
<div>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"><br></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">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">
<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">
<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">
<div><br></div>
<div>Also I wouldn't use --clone-with-ssh it is unnecessary.</div>
<div><br></div>
<br>
<blockquote type="cite">
<div>
<div dir="ltr">
<div style="font-size:12.800000190734863px">
<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>
<span style="font-family: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></span></div>
<span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Could somebody help me out here please.<br>
<br></font></span></div>
<span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Thanks,<br>
<br></font></span></div>
<span style="font-size:12.800000190734863px;font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Mohit</font></span><br></div>
______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br></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">
<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">______________________________<wbr>_________________</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">
<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">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">
<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">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">
<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">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a></div>
</blockquote>
</div>
</blockquote>
</div>
<br></div>
</div>
</div>
</blockquote>
</div>
<br></div>
</blockquote>
</div>
</div>
</div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>