<div id="compose" contenteditable="true" style="padding-left: 20px; padding-right: 20px; padding-bottom: 8px;"><div>Taylor,</div><div><br></div><div>Funny you should mention that. The tests take a long time to run, and I don't really mind if a local toolchain I use has one or two failing tests. So I delete these two lines before building a toolchain: <a dir="ltr" href="https://github.com/apple/swift/blob/a11e911f662c02c14e28286d76d154370ce5f5e1/utils/build-presets.ini#L711-L712" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">https://github.com/apple/swift/blob/a11e911f662c02c14e28286d76d154370ce5f5e1/utils/build-presets.ini#L711-L712</a></div><div><br></div><div>That disables the tests. Your toolchain builds much faster, but beware: you may have a bug or two in there! ;)</div><div><br></div><div>- Brian Gesiak</div><div><br><div class="acompli_signature"></div><br></div></div>
<div class="gmail_quote">_____________________________<br>From: Taylor Franklin <<a dir="ltr" href="mailto:taylorleefranklin@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">taylorleefranklin@gmail.com</a>><br>Sent: Monday, March 14, 2016 12:37 AM<br>Subject: Re: [swift-corelibs-dev] Building Foundation in Xcode<br>To: Brian Gesiak <<a dir="ltr" href="mailto:modocache@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">modocache@gmail.com</a>><br>Cc: Pushkar N Kulkarni <<a dir="ltr" href="mailto:pushkar.nk@in.ibm.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="7">pushkar.nk@in.ibm.com</a>>, <<a dir="ltr" href="mailto:swift-corelibs-dev@swift.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="8">swift-corelibs-dev@swift.org</a>>, David Hart <<a dir="ltr" href="mailto:david@hartbit.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="9">david@hartbit.com</a>><br><br><br> <div dir="ltr"> Brian, <div> <br> </div> <div> I have also been having issues, so I tried your suggestions and I cannot even get a toolchain built on the Swift master branch. I also tried the swift-3-api-guidelines branch, assuming that is where the Swift 3 code lives. </div> <div> <br> </div> <div> Anyway, I get the error: </div> <div> <font face="monospace, monospace">Failing Tests (1):</font> </div> <div> <font face="monospace, monospace"> Swift :: Driver/filelists.swift</font> </div> <div> <br> </div> <div> Does the build-toolchain script take certain parameters or have other prerequisites? </div> <div> Thanks for any help. </div> <div> <br> </div> <div> - Taylor </div> </div> <div class="gmail_extra"> <br> <div class="gmail_quote"> On Sun, Mar 13, 2016 at 2:34 PM, Brian Gesiak via swift-corelibs-dev <span dir="ltr"><<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>></span> wrote: <br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div> <div> David, </div> <div> <br> </div> <div> The repository has been migrated to Swift 3. You'll need a Swift 3 .xctoolchain to build it. There isn't a snapshot available yet, but you can build your own using the script added to Swift in <a dir="ltr" href="https://github.com/apple/swift/pull/1630">https://github.com/apple/swift/pull/1630</a>. </div> <div> <br> </div> <div> Even using the Swift 3 toolchain, I encountered build errors related to NSRunLoop. Applying <a dir="ltr" href="https://github.com/apple/swift-corelibs-foundation/pull/284">https://github.com/apple/swift-corelibs-foundation/pull/284</a> got everything working for me. </div> <div> <br> </div> <div> Hope that helps! </div> <div> <br> </div> <div> - Brian Gesiak </div> <div> <div class="h5"> <br> <br> <br> <div class="gmail_quote"> On Sun, Mar 13, 2016 at 12:31 PM -0700, "David Hart" <span dir="ltr"><<a href="mailto:david@hartbit.com">david@hartbit.com</a>></span> wrote: <br> <br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="3D"ltr""> Ok, I’m also encountering errors, but many more than Pushkar: <div> <ul> <li>OS: OS X El Capitan</li> <li>Xcode: Version 7.3 beta 5 (7D162j)</li> <li>Toolchain: Xcode Swift DEVELOPMENT Snapshot 2016-03-01 (a)</li> </ul> </div> <div> And the errors I’m getting seem to come from a mismatch with the Standard Library: </div> <div> <div style="margin:0px 0px 0px 12px;line-height:normal"> <ul> <li>Foundation/FoundationErrors.swift:10:48: Use of undeclared type ‘ErrorProtocol'</li> <li>Foundation/NSString.swift:1220:55: Use of undeclared type ‘CVarArg’</li> <li>Foundation/NSData.swift:18:38: Use of undeclared type ‘OptionSet’</li> <li>Foundation/NSNotification.swift:95:11: Use of undeclared type ‘Sequence'</li> <li> ...</li> </ul> </div> </div> <div> Any ideas what I’m doing wrong? </div> <div> <br> <div> <blockquote> <div> On 03 Mar 2016, at 20:01, Pushkar N Kulkarni via swift-corelibs-dev < <a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>> wrote: </div> <br> <div> <font face="Verdana,Arial,Helvetica,sans-serif" size="2"> <div> Brian, Philippe - Thanks for your prompt responses! </div> <div> <br> </div> <div> You were right, I was using the <span style="font-family:Menlo;font-size:14px">2016-02-08</span> toolchain. Using the latest ( <span style="font-family:Menlo;font-size:14px">2016-03-01)</span> solved the problem :) </div> <div> <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <div dir="ltr" style="font-family:Arial;font-size:10.5pt"> <div dir="ltr" style="font-family:Arial;font-size:10.5pt"> <div dir="ltr" style="font-family:Arial;font-size:10.5pt"> <div dir="ltr"> <br> <span style="font-family:georgia,serif"><span style="font-size:1.143em">Pushkar N Kulkarni,</span></span> </div> <div dir="ltr"> <span style="font-family:georgia,serif"><span style="font-size:1.143em">IBM Runtimes</span></span> </div> <div dir="ltr"> </div> <div dir="ltr"> <em><span style="font-family:georgia,serif"><span style="font-size:0.857em">"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke</span></span></em> </div> </div> </div> </div></font> </div><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font color="#990099">-----Brian Gesiak <<a href="mailto:modocache@gmail.com">modocache@gmail.com</a>> wrote: -----</font> <div style="padding-left:5px"> <div style="padding-right:0px;padding-left:5px;border-left:solid black 2px"> To: < <a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>>, Pushkar N Kulkarni/India/IBM@IBMIN <br>From: Brian Gesiak < <a href="mailto:modocache@gmail.com">modocache@gmail.com</a>> <br>Date: 03/02/2016 11:26PM <br>Subject: Re: [swift-corelibs-dev] Building Foundation in Xcode <br> <br> <div> Hello Pushkar, </div> <div> <br> <div></div>One idea that comes to mind: are you launching Xcode 7.2 using a recent Swift toolchain? To do so, follow the instructions on this page: <a dir="ltr" href="https://swift.org/download/#latest-development-snapshots">https://swift.org/download/#latest-development-snapshots</a> </div> <div> <br> </div> <div> Specifically, you'll want to launch Xcode using the xcrun launch-with-toolchain command. </div> <div> <br> </div> <div> Forgive me if this isn't the problem--I'm not at a computer right now, but that error message vaguely reminds me of what happens when one tries to build Foundatoon with an older version of Swift. </div> <div> <br> </div> <div> - Brian Gesiak </div> <br> <br> <br> <div class="gmail_quote"> On Wed, Mar 2, 2016 at 8:09 AM -0800, "Pushkar N Kulkarni via swift-corelibs-dev" <span dir="ltr"><<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>></span> wrote: <br> <br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="3D"ltr""> <font face="Verdana,Arial,Helvetica,sans-serif" size="2"> <div> <div> <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">I am very new to Xcode and tried building Foundation and running TestFoundation in Xcode 7.2.1, using the instructions given <a href="https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md" title="https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/GettingStarted.md">here</a>.</font> </div> <div> <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font> </div> <div> <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">In step 3, Foundation doesn't build because Xcode reports a compilation failure in NSObjCRuntime.swift (p<font color="#333333">lease refer to the attached snapshot):</font></font> </div> <div> <b><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Use of unresolved identifier '_typeByName'</font></b> </div> <div> <b><font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></b> </div> <div> <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">I can see that this function is defined outside of the Foundation project, in the swift project (<a href="https://github.com/apple/swift/blob/a44b09b6b6de50d54856499b156881f68e2eb34f/stdlib/public/core/Misc.swift" title="stdlib/public/core/Misc.swift" style="background-color:transparent;text-decoration:none;word-wrap:break-word;font-weight:bold"><font color="#4078c0">stdlib/public/core/Misc.swift</font></a>)<font color="#333333"><b>. </b>I think there are other functions defined in the stdlib and used in Foundation. I am not sure why this particular symbol causes a problem.</font></font> </div> <div> <font color="#333333" size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><b><br></b></font> </div> <div> <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Could someone please tell me how the symbol could be imported so that Foundation could be compiled and linked?</font> </div> <div> <font size="2" face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font> </div> <div style="font-size:small;font-family:'Default Sans Serif',Verdana,Arial,Helvetica,sans-serif"> <span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span><Image.1456916107867.jpg></span><br></span> </div> <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" style="font-size:small;font-family:Verdana,Arial,Helvetica,sans-serif"> <div dir="ltr" style="font-family:Arial;font-size:10.5pt"> <div dir="ltr" style="font-family:Arial;font-size:10.5pt"> <div dir="ltr" style="font-family:Arial;font-size:10.5pt"> <div dir="ltr"> <br> <span style="font-family:georgia,serif"><span style="font-size:1.143em">Pushkar N Kulkarni,</span></span> </div> <div dir="ltr"> <span style="font-family:georgia,serif"><span style="font-size:1.143em">IBM Runtimes</span></span> </div> <div dir="ltr"> </div> <div dir="ltr"> <em><span style="font-family:georgia,serif"><span style="font-size:0.857em">"Any sufficiently advanced technology is indistinguishable from magic." - Arthur Clarke</span></span></em> </div> </div> </div> </div></font> </div></font> <br> </div> </blockquote> </div> </div> </div></font></font> <br>_______________________________________________ <br>swift-corelibs-dev mailing list <br> <a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a> <br> <a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a> <br> </div> </blockquote> </div> <br> </div> </div> </blockquote> </div> </div> </div> </div> <br>_______________________________________________ <br> swift-corelibs-dev mailing list <br> <a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a> <br> <a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a> <br> <br> </blockquote> </div> <br> <br> <div> <br> </div>-- <br> <div class="gmail_signature"> <div dir="ltr"> <div> <div dir="ltr"> <b><font face="arial, helvetica, sans-serif" size="2">Taylor Franklin</font></b> <div> iOS Developer | IBM Mobile Innovation Lab </div> <div> <a dir="ltr" href="tel:972-207-2051" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="45">972-207-2051</a> | <a href="mailto:taylorleefranklin@gmail.com">taylorleefranklin@gmail.com</a> </div> <div> <i>Blog</i>: <a href="http://taylorfranklin.me/" style="color:rgb(17,85,204);font-size:small">http://taylorfranklin.me</a> | <i>LinkedIn</i>: <a href="https://www.linkedin.com/in/taylorfranklin">https://www.linkedin.com/in/taylorfranklin</a> </div> </div> </div> </div> </div> </div> <br><br></div>