<html><body><p>It would probably be simplest to disable it until it is really ready. <br><br>I hadn't really thought anyone would be trying to build dispatch and foundation together who wasn't working on fixing it.  Just commenting out that block in build.py would do it.<br><br>--dave<br><br><img width="16" height="16" src="cid:1__=0ABBF5F5DFFF32EF8f9e8a93df938690918c0AB@" border="0" alt="Inactive hide details for Philippe Hausler ---02/27/2016 02:06:17 PM---Do we need to disable this in swift-corelibs-foundation "><font color="#424282">Philippe Hausler ---02/27/2016 02:06:17 PM---Do we need to disable this in swift-corelibs-foundation until we have everything for dispatch landed</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Philippe Hausler &lt;phausler@apple.com&gt;</font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">David P Grove/Watson/IBM@IBMUS</font><br><font size="2" color="#5F5F5F">Cc:        </font><font size="2">Drew Crawford &lt;drew@sealedabstract.com&gt;, swift-dev &lt;swift-dev@swift.org&gt;</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">02/27/2016 02:06 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [swift-dev] build failure: DISPATCH_QUEUE_OVERCOMMIT</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">phausler@apple.com</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="4">Do we need to disable this in swift-corelibs-foundation until we have everything for dispatch landed?</font><br>
<ul><ul><font size="4">On Feb 26, 2016, at 9:00 AM, David P Grove via swift-dev &lt;</font><a href="mailto:swift-dev@swift.org"><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></a><font size="4">&gt; wrote:</font><br>
<p><font size="4">Hi Drew,<br><br>I suspect you are getting caught in some work-in-progress to enable CoreFoundation for using libdispatch on Linux. If both --foundation and --libdispatch are given to the invocation of build-script (or are in the same preset), then the build attempts to build CoreFoundation with libdispatch dependent functionality enabled. Right now, this doesn't compile, so the build fails. <br><br>As a workaround, in swift-corelibs-foundation/build.py around line 66 disable this block:<br></font><font size="4" color="#C200FF"><br>if</font><font size="4"> </font><font size="4" color="#813F62">&quot;LIBDISPATCH_SOURCE_DIR&quot;</font><font size="4"> </font><font size="4" color="#C200FF">in</font><font size="4"> Configuration.current.variables:</font><font size="4" color="#E26200"><br>foundation.CFLAGS</font><font size="4"> += </font><font size="4" color="#813F62">&quot; &quot;</font><font size="4">+</font><font size="4" color="#813F62">&quot; &quot;</font><font size="4">.join([</font><font size="4" color="#813F62"><br>'-DDEPLOYMENT_ENABLE_LIBDISPATCH'</font><font size="4">,</font><font size="4" color="#813F62"><br>'-I'</font><font size="4">+Configuration.current.variables[</font><font size="4" color="#813F62">&quot;LIBDISPATCH_SOURCE_DIR&quot;</font><font size="4">],</font><font size="4" color="#813F62"><br>'-I'</font><font size="4">+Configuration.current.variables[</font><font size="4" color="#813F62">&quot;LIBDISPATCH_BUILD_DIR&quot;</font><font size="4">]+</font><font size="4" color="#813F62">'/tests'</font><font size="4"> </font><font size="4" color="#C21212"># for include of dispatch/private.h in CF </font><font size="4"><br>])<br><br><br>Sorry this caught you; it has taken longer to get this done than expected. Blocked on </font><a href="https://github.com/apple/swift-corelibs-libdispatch/pull/46"><u><font size="4" color="#0000FF">https://github.com/apple/swift-corelibs-libdispatch/pull/46</font></u></a><font size="4"> and likely some follow up changes on both the foundation and dispatch side.<br><br>--dave<br><br><br><br>&lt;graycol.gif&gt;</font><font size="4" color="#424282">Drew Crawford via swift-dev ---02/26/2016 10:06:52 AM---Not sure where to post this, but I'm having trouble building CoreFoundation in swift-DEVELOPMENT-SN</font><font size="4"><br></font><font color="#5F5F5F"><br>From: </font>Drew Crawford via swift-dev &lt;<a href="mailto:swift-dev@swift.org"><u><font color="#0000FF">swift-dev@swift.org</font></u></a>&gt;<font color="#5F5F5F"><br>To: </font>swift-dev &lt;<a href="mailto:swift-dev@swift.org"><u><font color="#0000FF">swift-dev@swift.org</font></u></a>&gt;<font color="#5F5F5F"><br>Date: </font>02/26/2016 10:06 AM<font color="#5F5F5F"><br>Subject: </font>[swift-dev] build failure: DISPATCH_QUEUE_OVERCOMMIT<font color="#5F5F5F"><br>Sent by: </font><a href="mailto:swift-dev-bounces@swift.org"><u><font color="#0000FF">swift-dev-bounces@swift.org</font></u></a><p><hr width="100%" size="2" align="left" noshade><font size="4"><br><br></font><font size="5"><br>Not sure where to post this, but I'm having trouble building CoreFoundation in swift-DEVELOPMENT-SNAPSHOT-2016-02-25-due to some kind of libdispatch issue.</font><font size="4"><br></font><font size="5"><br>The exact error is</font><ul><ul><ul><ul><font size="5">FAILED: mkdir -p `dirname ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/PlugIn.subproj/CFPlugIn_PlugIn.c.o`; /swift-dev/build/buildbot_linux/llvm-linux-x86_64/bin/clang -fcolor-diagnostics -fdollars-in-identifiers -fblocks -fobjc-runtime=macosx-10.11 -fintegrated-as -fPIC --target=x86_64-linux-gnu -O2 -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include -I../build/buildbot_linux/foundation-linux-x86_64/Foundation -I../build/buildbot_linux/foundation-linux-x86_64 -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation -DDEPLOYMENT_TARGET_LINUX -D_GNU_SOURCE -DU_SHOW_DRAFT_API -DCF_BUILDING_CF -DDEPLOYMENT_RUNTIME_SWIFT -fconstant-cfstrings -fexceptions -Wno-shorten-64-to-32 -Wno-deprecated-declarations -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-unused-variable -Wno-int-conversion -Wno-unused-function -I/usr/include/libxml2 -I./ -DDEPLOYMENT_ENABLE_LIBDISPATCH -I/swift-dev/swift-corelibs-libdispatch -I/swift-dev/build/buildbot_linux/libdispatch-linux-x86_64/tests -include CoreFoundation/Base.subproj/CoreFoundation_Prefix.h -c CoreFoundation/PlugIn.subproj/CFPlugIn_PlugIn.c -o ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/PlugIn.subproj/CFPlugIn_PlugIn.c.o<br>In file included from CoreFoundation/PlugIn.subproj/CFPlugIn_PlugIn.c:16:<br>In file included from CoreFoundation/PlugIn.subproj/CFBundle_Internal.h:22:<br>In file included from ../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation/CFInternal.h:854:<br>In file included from /swift-dev/build/buildbot_linux/libdispatch-linux-x86_64/tests/dispatch/private.h:55:<br>/swift-dev/build/buildbot_linux/libdispatch-linux-x86_64/tests/dispatch/queue_private.h:45:2: error: expected identifier<br>DISPATCH_QUEUE_OVERCOMMIT = 0x2ull,<br>^<br>../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation/CFInternal.h:811:35: note: expanded from macro 'DISPATCH_QUEUE_OVERCOMMIT'<br>#define DISPATCH_QUEUE_OVERCOMMIT 2<br>^<br>1 error generated.</font></ul></ul></ul></ul><font size="5"><br>Using this preset:</font><ul><ul><ul><ul><font size="5">./utils/build-script: using preset 'drew', which expands to ./utils/build-script --assertions --no-swift-stdlib-assertions --llbuild --swiftpm --xctest --build-subdir=buildbot_linux --lldb --release --test --validation-test --foundation --libdispatch -- --swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest --install-prefix=/usr '--swift-install-components=compiler;clang-builtin-headers;stdlib;sdk-overlay;license' --build-swift-static-stdlib=1 --build-swift-stdlib-unittest-extra=1 --skip-test-lldb=1 --test-installable-package=1 --install-destdir=/tmp/install/ --installable-package=/tmp/swift.tar.gz --install-foundation --reconfigure --install-libdispatch=1 --skip-test-libdispatch=1 --skip-test-foundation=1<br>./utils/build-script: command terminated with a non-zero exit status 1, aborting<br>The command '/bin/sh -c ./utils/build-script --preset=drew --preset-file=presets.ini --preset-file=utils/build-presets.ini installable_package=&quot;/tmp/swift.tar.gz&quot; install_destdir=&quot;/tmp/install/&quot;' returned a non-zero code: 1</font><tt><font size="4">_______________________________________________<br>swift-dev mailing list</font></tt><tt><u><font size="4" color="#0000FF"><br></font></u></tt><a href="mailto:swift-dev@swift.org"><tt><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></tt></a><tt><u><font size="4" color="#0000FF"><br></font></u></tt><a href="https://lists.swift.org/mailman/listinfo/swift-dev"><tt><u><font size="4" color="#0000FF">https://lists.swift.org/mailman/listinfo/swift-dev</font></u></tt></a><font size="4"><br><br></font></ul></ul></ul></ul><br><font size="4">_______________________________________________<br>swift-dev mailing list</font><u><font size="4" color="#0000FF"><br></font></u><a href="mailto:swift-dev@swift.org"><u><font size="4" color="#0000FF">swift-dev@swift.org</font></u></a><font size="4"><br></font><font size="4"><a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a></font></ul></ul><br><br><BR>
</body></html>