<html><body><p>Hi,<br><br> my guess is you missed the git submodule init and update step in setting up your libdispatch checkout. If the libpwq directory is empty, this is certainly what happened (and is why it isn't invoking auotconf recursively on libpwq). Buried at the bottom of the INSTALL file:<br><br><font face="Menlo-Regular">Initialize git submodules:</font><br><font face="Menlo-Regular"> We are using git submodules to incorporate a specific revision of the</font><br><font face="Menlo-Regular"> upstream pthread_workqueue library into the build.</font><br><font face="Menlo-Regular"> git submodule init</font><br><font face="Menlo-Regular"> git submodule update</font><br><br>--dave<br><br><br><img width="16" height="16" src="cid:1__=4EBBF550DFCA45838f9e8a93df938690918c4EB@" border="0" alt="Inactive hide details for Brian Gesiak via swift-corelibs-dev ---05/30/2016 11:51:49 AM---Thanks for the quick responses! I had"><font color="#424282">Brian Gesiak via swift-corelibs-dev ---05/30/2016 11:51:49 AM---Thanks for the quick responses! I had tried the experimental/foundation branch as well, with no luck</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">Brian Gesiak via swift-corelibs-dev <swift-corelibs-dev@swift.org></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">Chris Bailey <BAILEYC@uk.ibm.com></font><br><font size="2" color="#5F5F5F">Cc: </font><font size="2">Swift Core Libs <swift-corelibs-dev@swift.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">05/30/2016 11:51 AM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?</font><br><font size="2" color="#5F5F5F">Sent by: </font><font size="2">swift-corelibs-dev-bounces@swift.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="4">Thanks for the quick responses!</font><br><br><font size="4">I had tried the experimental/foundation branch as well, with no luck. Here's the full output from a clean build I just attempted: </font><a href="https://gist.github.com/modocache/fcf0c78908b39834448c73ac3f50c110"><u><font size="4" color="#0000FF">https://gist.github.com/modocache/fcf0c78908b39834448c73ac3f50c110</font></u></a><font size="4"><br><br>Prior to the build I removed my entire build directory (which included both 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`).</font><br><br><font size="4">Looking at the build failure, it appears to be the same one that was reported in </font><a href="https://bugs.swift.org/browse/SR-1242"><u><font size="4" color="#0000FF">https://bugs.swift.org/browse/SR-1242</font></u></a><font size="4">. The author of that report indicates that </font><a href="https://github.com/apple/swift-corelibs-libdispatch/pull/64"><u><font size="4" color="#0000FF">https://github.com/apple/swift-corelibs-libdispatch/pull/64</font></u></a><font size="4"> fixes the problem. My checkout includes the commits from that pull request, but the problem remains.</font><br><font size="4"><br>In any case, thanks for all your help! I'll keep trying. Any and all advice would be much appreciated!</font><br><br><font size="4">- Brian Gesiak</font><br><br><br><font size="4">On Mon, May 30, 2016 at 10:22 AM, Chris Bailey <</font><a href="mailto:BAILEYC@uk.ibm.com" target="_blank"><u><font size="4" color="#0000FF">BAILEYC@uk.ibm.com</font></u></a><font size="4">> wrote:</font><ul>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 size="4"> <br></font><br>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 size="4"> <br></font><br>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 size="4"> <br></font><br>Chris<font size="4"><br><br><br><br></font><font size="2" color="#5F5F5F"><br>From: </font><font size="2">Rob Allen via swift-corelibs-dev <</font><a href="mailto:swift-corelibs-dev@swift.org" target="_blank"><u><font size="2" color="#0000FF">swift-corelibs-dev@swift.org</font></u></a><font size="2">></font><font size="4"> </font><font size="2" color="#5F5F5F"><br>To: </font><font size="2">Brian Gesiak <</font><a href="mailto:modocache@gmail.com" target="_blank"><u><font size="2" color="#0000FF">modocache@gmail.com</font></u></a><font size="2">></font><font size="4"> </font><font size="2" color="#5F5F5F"><br>Cc: </font><font size="2">Swift Core Libs <</font><a href="mailto:swift-corelibs-dev@swift.org" target="_blank"><u><font size="2" color="#0000FF">swift-corelibs-dev@swift.org</font></u></a><font size="2">></font><font size="4"> </font><font size="2" color="#5F5F5F"><br>Date: </font><font size="2">30/05/2016 08:08</font><font size="4"> </font><font size="2" color="#5F5F5F"><br>Subject: </font><font size="2">Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?</font><font size="4"> </font><font size="2" color="#5F5F5F"><br>Sent by: </font><a href="mailto:swift-corelibs-dev-bounces@swift.org" target="_blank"><u><font size="2" color="#0000FF">swift-corelibs-dev-bounces@swift.org</font></u></a><font size="4"> <br></font><hr width="100%" size="2" align="left" noshade><br><font size="4"><br><br><br>Hi, <br><br>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. <br><br>Regards, <br><br>Rob.... <br><br><br>On 30 May 2016, at 05:28, Brian Gesiak via swift-corelibs-dev <</font><a href="mailto:swift-corelibs-dev@swift.org" target="_blank"><u><font size="4" color="#0000FF">swift-corelibs-dev@swift.org</font></u></a><font size="4">> wrote: <br><br>Hello all! <br><br>I'm working on </font><a href="https://bugs.swift.org/browse/SR-710" target="_blank"><u><font size="4" color="#0000FF">https://bugs.swift.org/browse/SR-710</font></u></a><font size="4">, which involves porting SourceKit to Linux. SourceKit contains a handful of references to libdispatch symbols.<br><br>I have two questions:<br><br>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"><u><font size="4" color="#0000FF">https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20151207/000122.html</font></u></a><font size="4">). 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"><u><font size="4" color="#0000FF">https://gist.github.com/modocache/8389d5d64e39ca5a4281500f84e9ce11</font></u></a><font size="4">). Any tips? <br><br>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"><u><font size="4" color="#0000FF">https://bugs.swift.org/browse/SR-1639</font></u></a><font size="4">. For those familiar with both C++ and libdispatch: do you think it's a good idea to migrate to C++, at least for now? <br><br>Any advice would be appreciated. Thanks!! <br><br>- Brian Gesiak <br><br><br>-- <br>Development thoughts at </font><a href="http://akrabat.com/" target="_blank"><u><font size="4" color="#0000FF">http://akrabat.com</font></u></a><font size="4"><br>Daily Jotter for Mac OS X at </font><a href="http://dailyjotter.com/" target="_blank"><u><font size="4" color="#0000FF">http://dailyjotter.com</font></u></a><font size="4"> </font><br><tt>_______________________________________________<br>swift-corelibs-dev mailing list</tt><tt><u><font color="#0000FF"><br></font></u></tt><a href="mailto:swift-corelibs-dev@swift.org" target="_blank"><tt><u><font color="#0000FF">swift-corelibs-dev@swift.org</font></u></tt></a><u><font size="4" color="#0000FF"><br></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" target="_blank"><tt><u><font color="#0000FF">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></u></tt></a><font size="4"><br><br></font></ul><tt>_______________________________________________<br>swift-corelibs-dev mailing list<br>swift-corelibs-dev@swift.org<br></tt><tt><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></tt><tt><br></tt><br><br><BR>
</body></html>