<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="">The steps that I use are:<div class=""><br class=""></div><div class=""><div class=""><div class="">$ cd /vagrant</div><div class="">$ git clone --recursive -b experimental/foundation <a href="https://github.com/apple/swift-corelibs-libdispatch.git" class="">https://github.com/apple/swift-corelibs-libdispatch.git</a></div><div class="">$ cd swift-corelibs-libdispatch</div><div class="">$ sh ./autogen.sh</div><div class="">$ ./configure --with-swift-toolchain=/home/vagrant/swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-05-03-a/usr --prefix=/home/vagrant/swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-05-03-a/usr</div><div class="">$ make</div><div class="">$ make install</div></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Regards,</div><div class=""><br class=""></div><div class="">Rob...</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 30 May 2016, at 16:50, Brian Gesiak &lt;<a href="mailto:modocache@gmail.com" class="">modocache@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks for the quick responses!<div class=""><br class=""></div><div class="">I had tried the experimental/foundation branch as well, with no luck. Here's the full output from a clean build I just attempted:&nbsp;<a href="https://gist.github.com/modocache/fcf0c78908b39834448c73ac3f50c110" class="">https://gist.github.com/modocache/fcf0c78908b39834448c73ac3f50c110</a><br class=""><br class="">Prior to the build I removed my entire build directory (which included both&nbsp;libdispatch-linux-x86_64 and swift-linux-x86_64) and removed all build artifacts from my libdispatch directory (I used `git clean -fxd` -- Make tells me there's no target `distclean`).</div><div class=""><br class=""></div><div class="">Looking at the build failure, it appears to be the same one that was reported in&nbsp;<a href="https://bugs.swift.org/browse/SR-1242" class="">https://bugs.swift.org/browse/SR-1242</a>. The author of that report indicates that&nbsp;<a href="https://github.com/apple/swift-corelibs-libdispatch/pull/64" class="">https://github.com/apple/swift-corelibs-libdispatch/pull/64</a> fixes the problem. My checkout includes the commits from that pull request, but the problem remains.</div><div class=""><br class="">In any case, thanks for all your help! I'll keep trying. Any and all advice would be much appreciated!</div><div class=""><br class=""></div><div class="">- Brian Gesiak</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, May 30, 2016 at 10:22 AM, Chris Bailey <span dir="ltr" class="">&lt;<a href="mailto:BAILEYC@uk.ibm.com" target="_blank" class="">BAILEYC@uk.ibm.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="sans-serif" class="">I'd certainly recommend picking up the
experimental/foundation branch as Rob recommends. Its where we've been
doing some additional work to get properly built into the Swift toolchain
and to open up some internal APIs needed by Foundation.</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">Whilst I've been building Dispatch either
independently or as part of a full toolchain using the buildbot_linux preset
(with dispatch and install-dispatch added), I've just checked your build
line and its working fine for me. It might be worth cleaning out any partial
build you might have of libdispatch in your build directory, and running
'make distclean' from your libdispatch source directory.</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">FYI, we've got some further changes
to the experimental/foundation branch of libdispatch with should land in
the next couple of days. This fixes some issues with the Swift overlay,
and resolves a crash that we've found in the underlying libkqueue implementation.</font>
<br class="">
<br class=""><font size="2" face="sans-serif" class="">Chris<br class="">
</font>
<br class="">
<br class="">
<br class="">
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif" class="">Rob Allen via swift-corelibs-dev
&lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>&gt;</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif" class="">Brian Gesiak &lt;<a href="mailto:modocache@gmail.com" target="_blank" class="">modocache@gmail.com</a>&gt;</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif" class="">Swift Core Libs &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>&gt;</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif" class="">30/05/2016 08:08</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size="1" face="sans-serif" class="">Re: [swift-corelibs-dev]
libdispatch on Linux, or C++ std::async?</font>
<br class=""><font size="1" color="#5f5f5f" face="sans-serif" class="">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size="1" face="sans-serif" class=""><a href="mailto:swift-corelibs-dev-bounces@swift.org" target="_blank" class="">swift-corelibs-dev-bounces@swift.org</a></font>
<br class="">
<hr noshade="" class=""><div class=""><div class="h5">
<br class="">
<br class="">
<br class=""><font size="3" class="">Hi,</font>
<br class="">
<br class=""><font size="3" class="">For what it's worth, I can't get the master branch to
build either, but I can get the experimental/foundation branch to build.</font>
<br class="">
<br class=""><font size="3" class="">Regards,</font>
<br class="">
<br class=""><font size="3" class="">Rob....</font>
<br class="">
<br class="">
<br class=""><font size="3" class="">On 30 May 2016, at 05:28, Brian Gesiak via swift-corelibs-dev
&lt;</font><a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class=""><font size="3" color="blue" class=""><u class="">swift-corelibs-dev@swift.org</u></font></a><font size="3" class="">&gt;
wrote:</font>
<br class="">
<br class=""><font size="3" class="">Hello all!</font>
<br class="">
<br class=""><font size="3" class="">I'm working on </font><a href="https://bugs.swift.org/browse/SR-710" target="_blank" class=""><font size="3" color="blue" class=""><u class="">https://bugs.swift.org/browse/SR-710</u></font></a><font size="3" class="">,
which involves porting SourceKit to Linux. SourceKit contains a handful
of references to libdispatch symbols.<br class="">
<br class="">
I have two questions:<br class="">
<br class="">
1. Could someone share a set of instructions to build swift-corelibs-libdispatch
on Linux? I'm using Ubuntu 15.10 and have installed [the dependencies listed
here](</font><a href="https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20151207/000122.html" target="_blank" class=""><font size="3" color="blue" class=""><u class="">https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20151207/000122.html</u></font></a><font size="3" class="">).
I have tried using both `swift/utils/build-script --libdispatch` as well
as the instructions in the swift-corelibs-libdispatch `INSTALL` file. Both
fail with the [same errors](</font><a href="https://gist.github.com/modocache/8389d5d64e39ca5a4281500f84e9ce11" target="_blank" class=""><font size="3" color="blue" class=""><u class="">https://gist.github.com/modocache/8389d5d64e39ca5a4281500f84e9ce11</u></font></a><font size="3" class="">).
Any tips?</font>
<br class="">
<br class=""><font size="3" class="">2. I don't know much about C++, but from what I understand
the C++ stdlib provides tools for asynchronous programming. I list SourceKit's
uses of libdispatch in a comment on </font><a href="https://bugs.swift.org/browse/SR-1639" target="_blank" class=""><font size="3" color="blue" class=""><u class="">https://bugs.swift.org/browse/SR-1639</u></font></a><font size="3" class="">.
For those familiar with both C++ and libdispatch: do you think it's a good
idea to migrate to C++, at least for now?</font>
<br class="">
<br class=""><font size="3" class="">Any advice would be appreciated. Thanks!!</font>
<br class="">
<br class=""><font size="3" class="">- Brian Gesiak</font>
<br class="">
<br class="">
<br class=""><font size="3" class="">-- <br class="">
Development thoughts at </font><a href="http://akrabat.com/" target="_blank" class=""><font size="3" color="blue" class=""><u class="">http://akrabat.com</u></font></a><font size="3" class=""><br class="">
Daily Jotter for Mac OS X at </font><a href="http://dailyjotter.com/" target="_blank" class=""><font size="3" color="blue" class=""><u class="">http://dailyjotter.com</u></font></a>
<br class=""></div></div><tt class=""><font size="2" class="">_______________________________________________<br class="">
swift-corelibs-dev mailing list<br class="">
<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a><br class="">
</font></tt><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" target="_blank" class=""><tt class=""><font size="2" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></tt></a><tt class=""><font size="2" class=""><br class="">
</font></tt>
<br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--&nbsp;<br class="">Development thoughts at <a href="http://akrabat.com" class="">http://akrabat.com</a><br class="">Daily Jotter for Mac OS X at <a href="http://dailyjotter.com" class="">http://dailyjotter.com</a></div>

</div>
<br class=""></div></body></html>