[swift-corelibs-dev] Building master corelibs-foundation is broken

2017-05-17 Thread Matt Rajca via swift-corelibs-dev

Hi,

I'm getting of hundreds of build errors when I try to build 
corelibs-foundations (master) with swift (master). Switching to the 
swift-4.0-branch did not help earlier today.

If these are real issues, it might be related to work on protocol-oriented 
integers. Are there build bots for Swift?

...
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:328:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:328:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:329:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:329:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:330:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:330:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:331:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:331:70: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:332:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:332:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:333:72: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:333:72: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:335:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:335:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:336:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:336:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:337:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:337:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:338:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:338:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:339:72: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:339:72: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:340:73: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:340:73: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:342:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:342:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:343:71: 
error: '<<' is unavailable
/Users/matt/Sources/swift-corelibs-foundation/Foundation/NSGeometry.swift:343:71: 
error: '<<' is unavailable
...

-- Matt


___
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


Re: [swift-corelibs-dev] Unable to Build swift-corelibs-foundation

2017-05-18 Thread Matt Rajca via swift-corelibs-dev


> On May 18, 2017, at 11:50 AM, Will Stanton  wrote:
> 
> Hello David,
> 
> Are you seeing these errors in macOS/Xcode? If so, I think `-swift-version 3` 
> needs to be passed to the swift compiler. Submitted this PR for Mac build 
> issues among others: 
> https://github.com/apple/swift-corelibs-foundation/pull/988
> 
> Matt,
> I think you’re running into similar issues, but Ted already made a PR for 
> builds done with build-script - I believe that’s why the Linux build works 
> (https://github.com/apple/swift-corelibs-foundation/pull/956). Perhaps you 
> can confirm in verbose mode `ninja -v`, in the swift-corelibs-foundation 
> directory, that `-swift-version 3` is being passed in?

Your pull request fixed the build for me. I'm also on macOS. Thanks,

Matt

> 
> Regards,
> Will Stanton
> 
>> On May 18, 2017, at 7:07 AM, David Dunn via swift-corelibs-dev 
>>  wrote:
>> 
>> I've pulled down all the latest changes from 
>> https://github.com/apple/swift-corelibs-foundation and currently using the 
>> latest toolchain (Swift Development Snapshot 2017-05-16). 
>> However various errors arise when trying to build. 
>> 
>> I get numerous errors that are similar to this: 
>> swift-corelibs-foundation/Foundation/Data.swift:63:41: '>>' is unavailable
>> '>>' was obsoleted in Swift 4
>> 
>> And this error also occurs: 
>> swift-corelibs-foundation/Foundation/NSArray.swift:375:157: Contextual 
>> closure type '(UnsafeMutableRawPointer, Int) -> Void' expects 2 arguments, 
>> but 1 was used in closure body
>> 
>> I was wondering if anyone knew a way around these errors? Or is there's 
>> something I'm doing wrong. 
>> 
>> Thanks.
___
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev