Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Rob Allen via swift-corelibs-dev
Hi, 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. Regards, Rob > On 30 May 2016, at 05:28, Brian Gesiak via swift-corelibs-dev > wrote: > > Hello all! > > I'm working on https://bugs.swift.org/browse/SR-7

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Chris Bailey via swift-corelibs-dev
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. Whilst I've been building Dispatch either independently

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Brian Gesiak via swift-corelibs-dev
Thanks for the quick responses! I had tried the experimental/foundation branch as well, with no luck. Here's the full output from a clean build I just attempted: https://gist.github.com/modocache/fcf0c78908b39834448c73ac3f50c110 Prior to the build I removed my entire build directory (which includ

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Brian Croom via swift-corelibs-dev
I've noticed that there is a submodule reference to libpwq (see https://github.com/apple/swift-corelibs-libdispatch/blob/master/.gitmodules). Is it possible that the submodule hasn't been initialized in your clone? måndag 30 maj 2016 skrev Brian Gesiak via swift-corelibs-dev < swift-corelibs-dev@s

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Rob Allen via swift-corelibs-dev
The steps that I use are: $ cd /vagrant $ git clone --recursive -b experimental/foundation https://github.com/apple/swift-corelibs-libdispatch.git $ cd swift-corelibs-libdispatch $ sh ./autogen.sh $ ./configure --with-swift-toolchain=/home/vagrant/swiftenv/versions/DEVELOPMENT-SNAPSHOT-2016-05-0

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Chris Bailey via swift-corelibs-dev
The missing reference is to 'pthread_workqueue_signal_np()' which was added to libpwq via PR #10: https://github.com/mheily/libpwq/pull/10 I suspect that you don't have the libpwq submodule checked out in swift-corelibs-libdispatch. Is there any contents in swift-corelibs-libdispatch/li

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread David P Grove via swift-corelibs-dev
Hi, 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: Initiali

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Brian Gesiak via swift-corelibs-dev
Gah, thanks Brian and Chris -- yes, I had forgotten. I initialized it once on a separate development environment and forgot to do so again. Thanks everyone! I managed to build the project. :) I'll try getting SourceKit to link against my built libdispatch. Does anyone have any thoughts on my seco

[swift-corelibs-dev] unable to build swift core foundation

2016-05-30 Thread Rajeev Jeyaraj via swift-corelibs-dev
Hi All, I am trying to build the swift-corelibs-foundation I followed the instructions from here: https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md At step 3, I am getting the following errors below. 1. Run Xcode with the latest toolchain. Follow the instr

Re: [swift-corelibs-dev] unable to build swift core foundation

2016-05-30 Thread Philippe Hausler via swift-corelibs-dev
The toolcahins are in a bit of flux right now so you may need to build your own custom one. If you want you can build one via the easy command of ./swift/utils/build-toolchain or if you need to be a bit more fancy (or want to only build partial slices of the toolchain) I posted a version of a sc

Re: [swift-corelibs-dev] libdispatch on Linux, or C++ std::async?

2016-05-30 Thread Brian Croom via swift-corelibs-dev
I have no hands-on experience with it itself, but my understanding is that the std::async API in the current standards is pretty severely flawed and makes it awfully easy to shoot yourself in the foot. On the other hand, the libdispatch usage here does appear to be pretty basic. Hopefully someone