<div dir="ltr">On Fri, Sep 22, 2017 at 2:31 PM, Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div>Hey, Saleem. I don't build libdispatch that often, but it seems to be broken for me. If I delete the libdispatch-specific build directory and then use build-script with --reconfigure, it doesn't actually attempt to reconfigure.</div><div><br></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span style="font-variant-ligatures:no-common-ligatures">[4/50] Performing build step for 'libdispatch'</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span style="font-variant-ligatures:no-common-ligatures">FAILED: cd /home/jrose/public/build/<wbr>Ninja-RelWithDebInfoAssert/<wbr>libdispatch-linux-x86_64 && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /home/jrose/public/build/<wbr>Ninja-RelWithDebInfoAssert/<wbr>swift-linux-x86_64/tools/<wbr>SourceKit/libdispatch-prefix/<wbr>src/libdispatch-stamp/<wbr>libdispatch-build</span></div></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div>When I deleted my entire build directory and built from scratch, libdispatch built, but Foundation couldn't see it.</div><div><br></div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span style="font-variant-ligatures:no-common-ligatures">Foundation/URLSession/http/<wbr>HTTPURLProtocol.swift:325:19: error: use of undeclared type 'DispatchData'</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span style="font-variant-ligatures:no-common-ligatures"> case data(DispatchData)</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(77,47,45);background-color:rgb(223,219,195)"><span style="font-variant-ligatures:no-common-ligatures"> ^~~~~~~~~~~~</span></div></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures">Any ideas what's going wrong?</span></div></div></blockquote><div><br></div><div>So, definitely have an idea for the first case. When building for Linux, the libdispatch build is shared across the swift build and the libdispatch build. libdispatch is built as part of swift to be linked into SourceKit. If you disable SourceKit, this dependency will be broken. The Jenkins builds had this exact issue (which we were able to identify between myself, mgottesmann, JoeS. and mishal_shah). With the switch to CMake, the dependency should be tracked and you do not need to blow away libdispatch inbetween the builds (which is the better option -- just treat the incremental builds as incremental, no need to do any clean up).</div><div><br></div><div>As to the Foundation issue, Im not sure ... possibly that the swift module is not built? Ill try to take a look at that (though, honestly, that would probably be tomorrow). Sorry about the trouble there (it built for me and on the build bots).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><span style="font-variant-ligatures:no-common-ligatures">Thanks,</span></div><div><span style="font-variant-ligatures:no-common-ligatures">Jordan</span></div><br><div><br><blockquote type="cite"><div><div class="h5"><div>On Sep 18, 2017, at 15:28, Saleem Abdulrasool via swift-dev <<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>> wrote:</div><br class="m_-724877196223579793Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="auto">Hello swift-dev,</div><div dir="auto"><br></div><div dir="auto">This change should be transparent to everyone, but, it still is a pretty big milestone.</div><div dir="auto"><br></div><div dir="auto">As of this afternoon, the non-Darwin builds use CMake to build libdispatch. This work has been underway for quite some time, and we have finally switched to that as the default on most targets. This should be more or less transparent to everyone developing with build-script or even invoking CMake for swift directly.</div><div dir="auto"><br></div><div dir="auto">This simplifies some of the logic for integrating the projects and avoid unnecessary commands from being run.<br></div><div dir="auto"><br></div><div dir="auto">Thanks particularly to Michael Gottesman, Chris Bieneman, Daniel Steffen, David Grove, and Pierre Habouzit. Sorry if I accidentally left someone off the list!</div><div dir="auto"><br></div><div dir="auto">Saleem</div><div dir="auto"><br></div><div dir="ltr">-- <br></div><div class="m_-724877196223579793gmail_signature" data-smartmail="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div></div></div>
______________________________<wbr>_________________<br>swift-dev mailing list<br><a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-dev</a><br></div></blockquote></div><br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org</div>
</div></div>