<div dir="ltr">Hey Brian,<div><br></div><div>So I was able to get a toolchain for OSX and everything seemed to work.</div><div>But now I'm trying to test my changes on Linux and it seems my changes are halting the tests when I run <font face="monospace, monospace">ninja test</font> in the Foundation directory. I began this discussion on a <a href="https://github.com/apple/swift-corelibs-foundation/pull/281#issuecomment-196942460">pull request</a> because I thought this was purely related to the Swift 3 changes, but now I'm not sure.</div><div><br></div><div>Anyway, I try to run the debug tests command that <font face="monospace, monospace">ninja test</font> gives me, but it says I don't have lldb. I thought I had everything necessary, but I'm not sure how to get lldb or if it is even necessary. I will note that the tests work on the master branch of Foundation so it does seem like my problem, but I'm not sure why the issue is happening. Please view the pull request I mentioned for a little more detail.</div><div><br></div><div>If this is more of a swift-dev issue, I can move the conversation there.</div><div><br></div><div><br></div><div>Thanks,</div><div>Taylor</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 9:49 AM, Ian Partridge via swift-corelibs-dev <span dir="ltr"><<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">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">Hi David,<br>
<br>
You need the latest Foundation from git, I think. Brian fixed that<br>
compilation problem here:<br>
<br>
<a href="https://github.com/apple/swift-corelibs-foundation/commit/9fbcf1be1b75d5d9046735f13eddbaef4b3a408a" rel="noreferrer" target="_blank">https://github.com/apple/swift-corelibs-foundation/commit/9fbcf1be1b75d5d9046735f13eddbaef4b3a408a</a><br>
<br>
It would be really nice if the snapshots at<br>
<a href="https://swift.org/download/" rel="noreferrer" target="_blank">https://swift.org/download/</a> could be refreshed!<br>
<br>
Thanks,<br>
Ian<br>
<br>
On 14 March 2016 at 07:45, David Hart via swift-corelibs-dev<br>
<div><div class="h5"><<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>> wrote:<br>
> One step closer :) I built a master version the toolchain, fixed most<br>
> errors, but left with own a few:<br>
><br>
> Foundation/NSRunLoop.swift:14:43: error: type 'CFRunLoopActivity' has no<br>
> member 'BeforeTimers'<br>
> internal let kCFRunLoopBeforeTimers =<br>
> CFRunLoopActivity.BeforeTimers.rawValue<br>
><br>
> Of course, this is happening because the new version of ClangImporter is now<br>
> importing enum values with lowerCamelCase. It’s beforeTimers, not<br>
> BeforeTimers. I can fix it, but was wondering if it was in need of fixing or<br>
> if I had built the toolchain with the wrong branch of swift.<br>
><br>
> David.<br>
><br>
> On 14 Mar 2016, at 06:44, Brian Gesiak <<a href="mailto:modocache@gmail.com">modocache@gmail.com</a>> wrote:<br>
><br>
> Taylor,<br>
><br>
> Funny you should mention that. The tests take a long time to run, and I<br>
> don't really mind if a local toolchain I use has one or two failing tests.<br>
> So I delete these two lines before building a toolchain:<br>
> <a href="https://github.com/apple/swift/blob/a11e911f662c02c14e28286d76d154370ce5f5e1/utils/build-presets.ini#L711-L712" rel="noreferrer" target="_blank">https://github.com/apple/swift/blob/a11e911f662c02c14e28286d76d154370ce5f5e1/utils/build-presets.ini#L711-L712</a><br>
><br>
> That disables the tests. Your toolchain builds much faster, but beware: you<br>
> may have a bug or two in there! ;)<br>
><br>
> - Brian Gesiak<br>
><br>
><br>
> _____________________________<br>
> From: Taylor Franklin <<a href="mailto:taylorleefranklin@gmail.com">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 href="mailto:modocache@gmail.com">modocache@gmail.com</a>><br>
> Cc: Pushkar N Kulkarni <<a href="mailto:pushkar.nk@in.ibm.com">pushkar.nk@in.ibm.com</a>>,<br>
> <<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>>, David Hart <<a href="mailto:david@hartbit.com">david@hartbit.com</a>><br>
><br>
><br>
> Brian,<br>
><br>
> I have also been having issues, so I tried your suggestions and I cannot<br>
> even get a toolchain built on the Swift master branch. I also tried the<br>
> swift-3-api-guidelines branch, assuming that is where the Swift 3 code<br>
> lives.<br>
><br>
> Anyway, I get the error:<br>
> Failing Tests (1):<br>
> Swift :: Driver/filelists.swift<br>
><br>
> Does the build-toolchain script take certain parameters or have other<br>
> prerequisites?<br>
> Thanks for any help.<br>
><br>
> - Taylor<br>
><br>
> On Sun, Mar 13, 2016 at 2:34 PM, Brian Gesiak via swift-corelibs-dev<br>
> <<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>> wrote:<br>
>><br>
>> David,<br>
>><br>
>> The repository has been migrated to Swift 3. You'll need a Swift 3<br>
>> .xctoolchain to build it. There isn't a snapshot available yet, but you can<br>
>> build your own using the script added to Swift in<br>
>> <a href="https://github.com/apple/swift/pull/1630" rel="noreferrer" target="_blank">https://github.com/apple/swift/pull/1630</a>.<br>
>><br>
>> Even using the Swift 3 toolchain, I encountered build errors related to<br>
>> NSRunLoop. Applying<br>
>> <a href="https://github.com/apple/swift-corelibs-foundation/pull/284" rel="noreferrer" target="_blank">https://github.com/apple/swift-corelibs-foundation/pull/284</a> got everything<br>
>> working for me.<br>
>><br>
>> Hope that helps!<br>
>><br>
>> - Brian Gesiak<br>
>><br>
>><br>
>><br>
>> On Sun, Mar 13, 2016 at 12:31 PM -0700, "David Hart" <<a href="mailto:david@hartbit.com">david@hartbit.com</a>><br>
>> wrote:<br>
>><br>
>>> Ok, I’m also encountering errors, but many more than Pushkar:<br>
>>><br>
>>> OS: OS X El Capitan<br>
>>> Xcode: Version 7.3 beta 5 (7D162j)<br>
>>> Toolchain: Xcode Swift DEVELOPMENT Snapshot 2016-03-01 (a)<br>
>>><br>
>>> And the errors I’m getting seem to come from a mismatch with the Standard<br>
>>> Library:<br>
>>><br>
>>> Foundation/FoundationErrors.swift:10:48: Use of undeclared type<br>
>>> ‘ErrorProtocol'<br>
>>> Foundation/NSString.swift:1220:55: Use of undeclared type ‘CVarArg’<br>
>>> Foundation/NSData.swift:18:38: Use of undeclared type ‘OptionSet’<br>
>>> Foundation/NSNotification.swift:95:11: Use of undeclared type ‘Sequence'<br>
>>> ...<br>
>>><br>
>>> Any ideas what I’m doing wrong?<br>
>>><br>
>>> On 03 Mar 2016, at 20:01, Pushkar N Kulkarni via swift-corelibs-dev <<br>
>>> <a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>> wrote:<br>
>>><br>
>>> Brian, Philippe - Thanks for your prompt responses!<br>
>>><br>
>>> You were right, I was using the 2016-02-08 toolchain. Using the latest (<br>
>>> 2016-03-01) solved the problem :)<br>
>>><br>
>>> Pushkar N Kulkarni,<br>
>>> IBM Runtimes<br>
>>><br>
>>> "Any sufficiently advanced technology is indistinguishable from magic." -<br>
>>> Arthur Clarke<br>
>>><br>
>>><br>
>>> -----Brian Gesiak <<a href="mailto:modocache@gmail.com">modocache@gmail.com</a>> wrote: -----<br>
>>> 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>
>>> Hello Pushkar,<br>
>>><br>
>>> One idea that comes to mind: are you launching Xcode 7.2 using a recent<br>
>>> Swift toolchain? To do so, follow the instructions on this page:<br>
>>> <a href="https://swift.org/download/#latest-development-snapshots" rel="noreferrer" target="_blank">https://swift.org/download/#latest-development-snapshots</a><br>
>>><br>
>>> Specifically, you'll want to launch Xcode using the xcrun<br>
>>> launch-with-toolchain command.<br>
>>><br>
>>> Forgive me if this isn't the problem--I'm not at a computer right now,<br>
>>> but that error message vaguely reminds me of what happens when one tries to<br>
>>> build Foundatoon with an older version of Swift.<br>
>>><br>
>>> - Brian Gesiak<br>
>>><br>
>>><br>
>>><br>
>>> On Wed, Mar 2, 2016 at 8:09 AM -0800, "Pushkar N Kulkarni via<br>
>>> swift-corelibs-dev" <<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>> wrote:<br>
>>><br>
>>>> I am very new to Xcode and tried building Foundation and running<br>
>>>> TestFoundation in Xcode 7.2.1, using the instructions given here.<br>
>>>><br>
>>>> In step 3, Foundation doesn't build because Xcode reports a compilation<br>
>>>> failure in NSObjCRuntime.swift (please refer to the attached snapshot):<br>
>>>> Use of unresolved identifier '_typeByName'<br>
>>>><br>
>>>> I can see that this function is defined outside of the Foundation<br>
>>>> project, in the swift project (stdlib/public/core/Misc.swift). I think there<br>
>>>> are other functions defined in the stdlib and used in Foundation. I am not<br>
>>>> sure why this particular symbol causes a problem.<br>
>>>><br>
>>>> Could someone please tell me how the symbol could be imported so that<br>
>>>> Foundation could be compiled and linked?<br>
>>>><br>
>>>> <Image.1456916107867.jpg><br>
>>>><br>
>>>> Pushkar N Kulkarni,<br>
>>>> IBM Runtimes<br>
>>>><br>
>>>> "Any sufficiently advanced technology is indistinguishable from magic."<br>
>>>> - Arthur Clarke<br>
>>>><br>
>>><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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br>
>>><br>
>>><br>
>><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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Taylor Franklin<br>
> iOS Developer | IBM Mobile Innovation Lab<br>
> <a href="tel:972-207-2051" value="+19722072051">972-207-2051</a> | <a href="mailto:taylorleefranklin@gmail.com">taylorleefranklin@gmail.com</a><br>
> Blog: <a href="http://taylorfranklin.me" rel="noreferrer" target="_blank">http://taylorfranklin.me</a> | LinkedIn:<br>
> <a href="https://www.linkedin.com/in/taylorfranklin" rel="noreferrer" target="_blank">https://www.linkedin.com/in/taylorfranklin</a><br>
><br>
><br>
><br>
><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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br>
><br>
<br>
<br>
<br>
--<br>
</div></div>Ian Partridge<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><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>972-207-2051 | <a href="mailto:taylorleefranklin@gmail.com" target="_blank">taylorleefranklin@gmail.com</a></div><div><i>Blog</i>: <a href="http://taylorfranklin.me/" style="color:rgb(17,85,204);font-size:small" target="_blank">http://taylorfranklin.me</a> | <i>LinkedIn</i>: <a href="https://www.linkedin.com/in/taylorfranklin" target="_blank">https://www.linkedin.com/in/taylorfranklin</a></div></div></div></div></div>
</div>