<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Do we need to disable this in swift-corelibs-foundation until we have everything for dispatch landed?</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 26, 2016, at 9:00 AM, David P Grove via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class="">Hi Drew,<br class=""><br class="">        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 class=""><br class="">        As a workaround, in swift-corelibs-foundation/build.py around line 66 disable this block:<br class=""><br class=""><font color="#C200FF" face="Menlo-Regular" class="">if</font><font face="Menlo-Regular" class=""> </font><font color="#813F62" face="Menlo-Regular" class="">"LIBDISPATCH_SOURCE_DIR"</font><font face="Menlo-Regular" class=""> </font><font color="#C200FF" face="Menlo-Regular" class="">in</font><font face="Menlo-Regular" class=""> Configuration.current.variables:</font><br class=""><font face="Menlo-Regular" class="">        </font><font color="#E26200" face="Menlo-Regular" class="">foundation.CFLAGS</font><font face="Menlo-Regular" class=""> += </font><font color="#813F62" face="Menlo-Regular" class="">" "</font><font face="Menlo-Regular" class="">+</font><font color="#813F62" face="Menlo-Regular" class="">" "</font><font face="Menlo-Regular" class="">.join([</font><br class=""><font face="Menlo-Regular" class="">                </font><font color="#813F62" face="Menlo-Regular" class="">'-DDEPLOYMENT_ENABLE_LIBDISPATCH'</font><font face="Menlo-Regular" class="">,</font><br class=""><font face="Menlo-Regular" class="">                </font><font color="#813F62" face="Menlo-Regular" class="">'-I'</font><font face="Menlo-Regular" class="">+Configuration.current.variables[</font><font color="#813F62" face="Menlo-Regular" class="">"LIBDISPATCH_SOURCE_DIR"</font><font face="Menlo-Regular" class="">],</font><br class=""><font face="Menlo-Regular" class="">                </font><font color="#813F62" face="Menlo-Regular" class="">'-I'</font><font face="Menlo-Regular" class="">+Configuration.current.variables[</font><font color="#813F62" face="Menlo-Regular" class="">"LIBDISPATCH_BUILD_DIR"</font><font face="Menlo-Regular" class="">]+</font><font color="#813F62" face="Menlo-Regular" class="">'/tests'</font><font face="Menlo-Regular" class="">  </font><font color="#C21212" face="Menlo-Regular" class=""># for include of dispatch/private.h in CF                                             </font><br class=""><font face="Menlo-Regular" class="">        ])</font><br class=""><br class=""><br class="">        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" class="">https://github.com/apple/swift-corelibs-libdispatch/pull/46</a>  and likely some follow up changes on both the foundation and dispatch side.<br class=""><br class="">--dave<br class=""><br class=""><br class=""><br class=""><span id="cid:1__=0ABBF5F6DFCFD2E38f9e8a93df938690918c0AB@">&lt;graycol.gif&gt;</span><font color="#424282" class="">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 class=""><br class=""><font size="2" color="#5F5F5F" class="">From:        </font><font size="2" class="">Drew Crawford via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">To:        </font><font size="2" class="">swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt;</font><br class=""><font size="2" color="#5F5F5F" class="">Date:        </font><font size="2" class="">02/26/2016 10:06 AM</font><br class=""><font size="2" color="#5F5F5F" class="">Subject:        </font><font size="2" class="">[swift-dev] build failure: DISPATCH_QUEUE_OVERCOMMIT</font><br class=""><font size="2" color="#5F5F5F" class="">Sent by:        </font><font size="2" class=""><a href="mailto:swift-dev-bounces@swift.org" class="">swift-dev-bounces@swift.org</a></font><br class=""></p><hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; " class=""><br class=""><br class=""><br class=""><font size="4" class="">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 class=""><br class=""><font size="4" class="">The exact error is</font><br class="">
<ul class=""><ul class=""><font size="4" class="">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 class=""><font size="4" class="">In file included from CoreFoundation/PlugIn.subproj/CFPlugIn_PlugIn.c:16:</font><br class=""><font size="4" class="">In file included from CoreFoundation/PlugIn.subproj/CFBundle_Internal.h:22:</font><br class=""><font size="4" class="">In file included from ../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift/CoreFoundation/CFInternal.h:854:</font><br class=""><font size="4" class="">In file included from /swift-dev/build/buildbot_linux/libdispatch-linux-x86_64/tests/dispatch/private.h:55:</font><br class=""><font size="4" class="">/swift-dev/build/buildbot_linux/libdispatch-linux-x86_64/tests/dispatch/queue_private.h:45:2: error: expected identifier</font><br class=""><font size="4" class="">        DISPATCH_QUEUE_OVERCOMMIT = 0x2ull,</font><br class=""><font size="4" class="">        ^</font><br class=""><font size="4" class="">../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 class=""><font size="4" class="">#define DISPATCH_QUEUE_OVERCOMMIT 2</font><br class=""><font size="4" class="">                                  ^</font><br class=""><font size="4" class="">1 error generated.</font></ul></ul><br class=""><font size="4" class="">Using this preset:</font><br class="">
<ul class=""><ul class=""><font size="4" class="">./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 class=""><font size="4" class="">./utils/build-script: command terminated with a non-zero exit status 1, aborting</font><br class=""><font size="4" class="">The command '/bin/sh -c ./utils/build-script --preset=drew --preset-file=presets.ini --preset-file=utils/build-presets.ini installable_package="/tmp/swift.tar.gz" install_destdir="/tmp/install/"' returned a non-zero code: 1</font><tt class="">_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class=""></tt><tt class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a></tt><tt class=""><br class=""></tt><br class=""><br class=""></ul></ul><br class="">
</div>
_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></body></html>