[swift-corelibs-dev] libdispatch prep for integration to the rest of swift-corelibs

Philippe Hausler phausler at apple.com
Wed Jan 13 13:11:22 CST 2016


Splitting this off to it’s own thread since this is not per-se networking related

> On Jan 13, 2016, at 11:07 AM, David P Grove <groved at us.ibm.com> wrote:
> 
> phausler at apple.com wrote on 01/13/2016 01:43:17 PM:
> > 
> > Getting GCD up and rolling is definitely a bottleneck for a few 
> > things (not just NSURLSession). 
> 
> Thanks Philippe!  I was looking for things to do :)
>  
> > 
> > There are a few things that we need as checkpoints:
> > A set of build instructions tailored for the swift project
> > GCD needs to be able to build on Ubuntu 14 as well as Ubuntu 15
> 
> I can take a look at Ubuntu 14.  I know that one of the issues was the old version of libpthread_workqueue (under discussion for other reasons; we need fixes that aren't in the Ubuntu 15 version).  I'll see if there is anything else standing in the way for Ubuntu 14. 
> 

I am getting a build failure on 14:

/bin/bash ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I../config  -I.. -I.. -I../private -I../os -DDISPATCH_USE_DTRACE=0 -Wall -fvisibility=hidden -momit-leaf-frame-pointer  -I/usr/include/kqueue   -isystem /usr/include/bsd -DLIBBSD_OVERLAY   -fblocks -g -O2 -c -o queue.lo queue.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../config -I.. -I.. -I../private -I../os -DDISPATCH_USE_DTRACE=0 -Wall -fvisibility=hidden -momit-leaf-frame-pointer -I/usr/include/kqueue -isystem /usr/include/bsd -DLIBBSD_OVERLAY -fblocks -g -O2 -c queue.c  -fPIC -DPIC -o .libs/queue.o
queue.c:216:22: error: use of undeclared identifier 'WORKQ_BG_PRIOQUEUE'
                .dgq_wq_priority = WORKQ_BG_PRIOQUEUE,
                                   ^
queue.c:227:22: error: use of undeclared identifier 'WORKQ_BG_PRIOQUEUE'
                .dgq_wq_priority = WORKQ_BG_PRIOQUEUE,
                                   ^
queue.c:928:18: error: invalid application of 'sizeof' to an incomplete type 'struct dispatch_root_queue_context_s []'

> 
> > We need to move Availability.h and friends down underneath both GCD 
> > and Foundation since they both use them
> > We need to move the blocks runtime out of Foundation and underneath 
> > or inside of GCD.
> > The master build script in swift/utils/build-script needs to be able
> > to build GCD
> > The master build script in swift/utils/build-script to ensure GCD 
> > and all required components are built before Foundation and the 
> > appropriate linker paths are passed to Foundation (see how XCTest is handled)
> > 
> 
> --dave
> 

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


More information about the swift-corelibs-dev mailing list