Compilation Error - Which Toolchain


(David Hart) #1

Hi people,

Found some time to continue contributing to corelibs, but I’m getting a compilation error with master:

NSGeometry.swift (line 39):
35 private var hash: Int {
36 #if arch(i386) || arch(arm)
37 return Int(Float(self.native).bitPattern)
38 #else
39 return Int(self.native.bitPattern) // Value of type 'NativeType' (aka 'Double') has no member 'bitPattern’
40 #endif
41 }

I’m using the latest development toolchain. Is that correct? I tried building a master toolchain instead but got a failing test.

Any ideas?
David.


(Philippe Hausler) #2

This was a change in the standard library. I presumed that change had been in for a full build cycle. However since that looks like it is not the case I am going to revert the offending commit for now and revisit it when the binaries are rev'd

···

On May 19, 2016, at 3:48 PM, David Hart via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

Hi people,

Found some time to continue contributing to corelibs, but I’m getting a compilation error with master:

NSGeometry.swift (line 39):
35 private var hash: Int {
36 #if arch(i386) || arch(arm)
37 return Int(Float(self.native).bitPattern)
38 #else
39 return Int(self.native.bitPattern) // Value of type 'NativeType' (aka 'Double') has no member 'bitPattern’
40 #endif
41 }

I’m using the latest development toolchain. Is that correct? I tried building a master toolchain instead but got a failing test.

Any ideas?
David.
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


(Philippe Hausler) #3

Just pushed the revert, I will revisit it when we have the next drop of the toolchains for all platforms that include the required change for this correction.

···

On May 20, 2016, at 9:05 AM, Philippe Hausler via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

This was a change in the standard library. I presumed that change had been in for a full build cycle. However since that looks like it is not the case I am going to revert the offending commit for now and revisit it when the binaries are rev'd

On May 19, 2016, at 3:48 PM, David Hart via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

Hi people,

Found some time to continue contributing to corelibs, but I’m getting a compilation error with master:

NSGeometry.swift (line 39):
35 private var hash: Int {
36 #if arch(i386) || arch(arm)
37 return Int(Float(self.native).bitPattern)
38 #else
39 return Int(self.native.bitPattern) // Value of type 'NativeType' (aka 'Double') has no member 'bitPattern’
40 #endif
41 }

I’m using the latest development toolchain. Is that correct? I tried building a master toolchain instead but got a failing test.

Any ideas?
David.
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


(David Hart) #4

Great! Thanks :slight_smile:

···

On 20 May 2016, at 18:09, Philippe Hausler <phausler@apple.com> wrote:

Just pushed the revert, I will revisit it when we have the next drop of the toolchains for all platforms that include the required change for this correction.

On May 20, 2016, at 9:05 AM, Philippe Hausler via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

This was a change in the standard library. I presumed that change had been in for a full build cycle. However since that looks like it is not the case I am going to revert the offending commit for now and revisit it when the binaries are rev'd

On May 19, 2016, at 3:48 PM, David Hart via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

Hi people,

Found some time to continue contributing to corelibs, but I’m getting a compilation error with master:

NSGeometry.swift (line 39):
35 private var hash: Int {
36 #if arch(i386) || arch(arm)
37 return Int(Float(self.native).bitPattern)
38 #else
39 return Int(self.native.bitPattern) // Value of type 'NativeType' (aka 'Double') has no member 'bitPattern’
40 #endif
41 }

I’m using the latest development toolchain. Is that correct? I tried building a master toolchain instead but got a failing test.

Any ideas?
David.
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev