<html><body><p>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><br><font color="#C200FF" face="Menlo-Regular">if</font><font face="Menlo-Regular"> </font><font color="#813F62" face="Menlo-Regular">&quot;LIBDISPATCH_SOURCE_DIR&quot;</font><font face="Menlo-Regular"> </font><font color="#C200FF" face="Menlo-Regular">in</font><font face="Menlo-Regular"> Configuration.current.variables:</font><br><font face="Menlo-Regular">        </font><font color="#E26200" face="Menlo-Regular">foundation.CFLAGS</font><font face="Menlo-Regular"> += </font><font color="#813F62" face="Menlo-Regular">&quot; &quot;</font><font face="Menlo-Regular">+</font><font color="#813F62" face="Menlo-Regular">&quot; &quot;</font><font face="Menlo-Regular">.join([</font><br><font face="Menlo-Regular">                </font><font color="#813F62" face="Menlo-Regular">'-DDEPLOYMENT_ENABLE_LIBDISPATCH'</font><font face="Menlo-Regular">,</font><br><font face="Menlo-Regular">                </font><font color="#813F62" face="Menlo-Regular">'-I'</font><font face="Menlo-Regular">+Configuration.current.variables[</font><font color="#813F62" face="Menlo-Regular">&quot;LIBDISPATCH_SOURCE_DIR&quot;</font><font face="Menlo-Regular">],</font><br><font face="Menlo-Regular">                </font><font color="#813F62" face="Menlo-Regular">'-I'</font><font face="Menlo-Regular">+Configuration.current.variables[</font><font color="#813F62" face="Menlo-Regular">&quot;LIBDISPATCH_BUILD_DIR&quot;</font><font face="Menlo-Regular">]+</font><font color="#813F62" face="Menlo-Regular">'/tests'</font><font face="Menlo-Regular">  </font><font color="#C21212" face="Menlo-Regular"># for include of dispatch/private.h in CF                                             </font><br><font face="Menlo-Regular">        ])</font><br><br><br>        Sorry this caught you; it has taken longer to get this done than expected.  Blocked on <a href="https://github.com/apple/swift-corelibs-libdispatch/pull/46">https://github.com/apple/swift-corelibs-libdispatch/pull/46</a>  and likely some follow up changes on both the foundation and dispatch side.<br><br>--dave<br><br><br><br><img width="16" height="16" src="cid:1__=0ABBF5F6DFCFD2E38f9e8a93df938690918c0AB@" border="0" alt="Inactive hide details for Drew Crawford via swift-dev ---02/26/2016 10:06:52 AM---Not sure where to post this, but I'm having t"><font 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><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Drew Crawford via swift-dev &lt;swift-dev@swift.org&gt;</font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">swift-dev &lt;swift-dev@swift.org&gt;</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">02/26/2016 10:06 AM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">[swift-dev] build failure: DISPATCH_QUEUE_OVERCOMMIT</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">swift-dev-bounces@swift.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font size="4">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><br><br><font size="4">The exact error is</font><br>
<ul><ul><font size="4">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</font><br><font size="4">In file included from CoreFoundation/PlugIn.subproj/CFPlugIn_PlugIn.c:16:</font><br><font size="4">In file included from CoreFoundation/PlugIn.subproj/CFBundle_Internal.h:22:</font><br><font size="4">In file included from ../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation/CFInternal.h:854:</font><br><font size="4">In file included from /swift-dev/build/buildbot_linux/libdispatch-linux-x86_64/tests/dispatch/private.h:55:</font><br><font size="4">/swift-dev/build/buildbot_linux/libdispatch-linux-x86_64/tests/dispatch/queue_private.h:45:2: error: expected identifier</font><br><font size="4">        DISPATCH_QUEUE_OVERCOMMIT = 0x2ull,</font><br><font size="4">        ^</font><br><font size="4">../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation/CFInternal.h:811:35: note: expanded from macro 'DISPATCH_QUEUE_OVERCOMMIT'</font><br><font size="4">#define DISPATCH_QUEUE_OVERCOMMIT 2</font><br><font size="4">                                  ^</font><br><font size="4">1 error generated.</font></ul></ul><br><font size="4">Using this preset:</font><br>
<ul><ul><font size="4">./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</font><br><font size="4">./utils/build-script: command terminated with a non-zero exit status 1, aborting</font><br><font size="4">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>_______________________________________________<br>swift-dev mailing list<br>swift-dev@swift.org<br></tt><tt><a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a></tt><tt><br></tt><br><br></ul></ul><BR>
</body></html>