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

Chris Bailey BAILEYC at uk.ibm.com
Mon May 30 09:22:36 CDT 2016


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 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.

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.

Chris




From:   Rob Allen via swift-corelibs-dev <swift-corelibs-dev at swift.org>
To:     Brian Gesiak <modocache at gmail.com>
Cc:     Swift Core Libs <swift-corelibs-dev at swift.org>
Date:   30/05/2016 08:08
Subject:        Re: [swift-corelibs-dev] libdispatch on Linux, or C++ 
std::async?
Sent by:        swift-corelibs-dev-bounces at swift.org



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 <
swift-corelibs-dev at swift.org> wrote:

Hello all!

I'm working on https://bugs.swift.org/browse/SR-710, which involves 
porting SourceKit to Linux. SourceKit contains a handful of references to 
libdispatch symbols.

I have two questions:

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](
https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20151207/000122.html
). 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](
https://gist.github.com/modocache/8389d5d64e39ca5a4281500f84e9ce11). Any 
tips?

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 https://bugs.swift.org/browse/SR-1639. For 
those familiar with both C++ and libdispatch: do you think it's a good 
idea to migrate to C++, at least for now?

Any advice would be appreciated. Thanks!!

- Brian Gesiak


-- 
Development thoughts at http://akrabat.com
Daily Jotter for Mac OS X at http://dailyjotter.com
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev at swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160530/7f3d6b8e/attachment.html>


More information about the swift-corelibs-dev mailing list