<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hypotheses:</div><div class="">- There are several executables that get linked around the same time (swiftc, swift-ide-test, sil-opt, etc), which leads to swapping.</div><div class="">- Building the standard library with a debug compiler is really slow.</div><div class="">- There’s actually a bug here somewhere, possibly due to a newer version of CMake, or possibly due to xcodebuild, or even maybe the OS making bad scheduling decisions.</div><div class=""><br class=""></div><div class="">For the record, I build with Xcode fairly regularly, but my normal workflow is to generate the Xcode projects, build LLVM, and work in Xcode…but then do a release+asserts build with ninja. I’ll save the Xcode-side build for when I actually want a debug compiler or debug stdlib.</div><div class=""><br class=""></div><div class="">Jordan</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On May 20, 2016, at 14:36, Austin Zheng via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I ran build-script -x a few days ago. It didn't freeze, but it did take several hours to complete (on a late-model 13" MBP).<div class=""><br class=""></div><div class="">Austin</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, May 20, 2016 at 2:28 PM, Will Stanton via swift-dev <span dir="ltr" class=""><<a href="mailto:swift-dev@swift.org" target="_blank" class="">swift-dev@swift.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Geoffrey,<br class="">
<br class="">
Wanted to share I encountered this issue on 5/11.<br class="">
(Ninja build was+is fine.)<br class="">
<br class="">
Maybe the first 8 gyb scripts to run (I’m on a 2012 Mac Mini) are not recognized as having finished…<br class="">
As you suggest, CPU of xcodebuild, cmake, and python processes were all 0.<br class="">
<br class="">
Regards,<br class="">
Will Stanton<br class="">
<span class=""><br class="">
> On May 20, 2016, at 9:44 AM, Geoffrey Wiseman via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:<br class="">
><br class="">
> Hey,<br class="">
><br class="">
> Let me start by saying I just checked out the Swift repos yesterday, and although i’ve looked at a little code and done some of the basic setup steps, this is pretty new to me, and I could easily be doing something wrong.<br class="">
><br class="">
> Having said that, I wanted to set up Xcode so I could make a change, but when I run build-script -x, it goes for a while and then just seems to freeze — cpu usage drops off and nothing further seems to happen. I have let it sit for maybe ten minutes, but not hours.<br class="">
><br class="">
> It is currently frozen in this section:<br class="">
> === BUILD AGGREGATE TARGET add_custom_command_target-b646e880e18661860c3d95b53adeee18-ExistentialCollection.swift OF PROJECT Swift WITH CONFIGURATION Debug ===<br class="">
><br class="">
> After this line:<br class="">
> cd /Users/geoffrey/dev/work/opensource/swift/swift/stdlib/public/core && /Users/geoffrey/dev/work/opensource/swift/swift/utils/gyb --test -DunicodeGraphemeBreakPropertyFile=/Users/geoffrey/dev/work/opensource/swift/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/Users/geoffrey/dev/work/opensource/swift/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /Users/geoffrey/dev/work/opensource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/core/8/ExistentialCollection.swift.tmp ExistentialCollection.swift.gyb<br class="">
><br class="">
> If I break and run it again, it seems to do roughly the same thing and freeze again with slightly different information:<br class="">
><br class="">
> === BUILD AGGREGATE TARGET add_custom_command_target-c5582f2ec66110e6e1b09a999368ab26-Slice.swift OF PROJECT Swift WITH CONFIGURATION Debug ===<br class="">
><br class="">
> …<br class="">
><br class="">
> cd /Users/geoffrey/dev/work/opensource/swift/swift/stdlib/public/core && /Users/geoffrey/dev/work/opensource/swift/swift/utils/gyb --test -DunicodeGraphemeBreakPropertyFile=/Users/geoffrey/dev/work/opensource/swift/swift/utils/UnicodeData/GraphemeBreakProperty.txt -DunicodeGraphemeBreakTestFile=/Users/geoffrey/dev/work/opensource/swift/swift/utils/UnicodeData/GraphemeBreakTest.txt -DCMAKE_SIZEOF_VOID_P=8 -o /Users/geoffrey/dev/work/opensource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/core/8/Slice.swift.tmp Slice.swift.gyb<br class="">
><br class="">
> Any thoughts / suggestions? —verbose-build doesn’t seem to add any useful information. Something I’m doing?<br class="">
><br class="">
<br class="">
</span>_______________________________________________<br class="">
swift-dev mailing list<br class="">
<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a><br class="">
</blockquote></div><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>