Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error on Intel Mac #13

Open
shannona opened this issue Apr 26, 2023 · 1 comment
Open

Compile Error on Intel Mac #13

shannona opened this issue Apr 26, 2023 · 1 comment

Comments

@shannona
Copy link
Contributor

I got different errors on my older Intel Mac Mini (where I previously had a working compile):

Mac mini
3.6 GHz Quad-Core Intel Core i3
Intel UHD Graphics 630 1536 MB
16 GB 2667 MHz DDR4
Ventura 13.3.1

Xcode is Version 14.3 (14E222b).

Here's the end of the build.sh:

Building for production...
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Decode.swift:185:41: error: argument passed to call that takes no arguments
            let f = Float16(bitPattern: UInt16(value))
                           ~~~~~~~~~~~~~^~~~~~~~~~~~~~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:142:11: error: 'Float16' is unavailable in macOS
extension Float16: CBORCodable {
          ^~~~~~~
Swift.Float16:4:23: note: 'Float16' has been explicitly marked unavailable here
@frozen public struct Float16 {
                      ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:112:17: error: no exact matches in call to initializer 
        let f = Float16(self)
                ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:156:12: note: candidate expects value of type 'CBOR' for parameter #1 (got 'Float')
    public init(cbor: CBOR) throws {
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/CBORDecodable.swift:13:5: note: candidate expects value of type 'Data' for parameter #1 (got 'Float')
    init(cborData: Data) throws {
    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: error: no exact matches in call to initializer 
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: note: candidate expects value of type 'Builtin.FPIEEE32' for parameter #1 (got 'Float')
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: note: candidate expects value of type 'Int' for parameter #1 (got 'Float')
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: note: candidate expects value of type 'Float' for parameter #1 (got 'Float')
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: note: candidate expects value of type 'Double' for parameter #1 (got 'Float')
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: note: candidate expects value of type 'Float80' for parameter #1 (got 'Float')
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float')
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:21: note: candidate expects value of type 'NSNumber' for parameter #1 (got 'Float')
            self != Float(Float16(self)),
                    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:133:27: error: no exact matches in call to initializer 
            self != Float(Float16(self)),
                          ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:156:12: note: candidate expects value of type 'CBOR' for parameter #1 (got 'Float')
    public init(cbor: CBOR) throws {
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/CBORDecodable.swift:13:5: note: candidate expects value of type 'Data' for parameter #1 (got 'Float')
    init(cborData: Data) throws {
    ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:145:13: error: cannot convert value of type 'Float16' to expected argument type 'Int'
            self < 0,
            ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:146:21: error: no exact matches in call to initializer 
            let i = Int64(exactly: self)
                    ^
Swift.Int64:9:12: note: candidate expects value of type 'Float' for parameter #1 (got 'Float16')
    public init?(exactly source: Float)
           ^
Swift.Int64:11:12: note: candidate expects value of type 'Double' for parameter #1 (got 'Float16')
    public init?(exactly source: Double)
           ^
Swift.Int64:13:12: note: candidate expects value of type 'Float80' for parameter #1 (got 'Float16')
    public init?(exactly source: Float80)
           ^
Foundation.Int64:5:12: note: candidate expects value of type 'NSNumber' for parameter #1 (got 'Float16')
    public init?(exactly number: __shared NSNumber)
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:150:20: error: no exact matches in call to initializer 
        if let i = UInt64(exactly: self) {
                   ^
Swift.UInt64:7:12: note: candidate expects value of type 'Float' for parameter #1 (got 'Float16')
    public init?(exactly source: Float)
           ^
Swift.UInt64:9:12: note: candidate expects value of type 'Double' for parameter #1 (got 'Float16')
    public init?(exactly source: Double)
           ^
Swift.UInt64:11:12: note: candidate expects value of type 'Float80' for parameter #1 (got 'Float16')
    public init?(exactly source: Float80)
           ^
Foundation.UInt64:5:12: note: candidate expects value of type 'NSNumber' for parameter #1 (got 'Float16')
    public init?(exactly number: __shared NSNumber)
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:153:31: error: no exact matches in call to initializer 
        return .simple(.float(Double(self)))
                              ^
Swift.Double:4:12: note: candidate expects value of type 'Builtin.FPIEEE64' for parameter #1 (got 'Float16')
    public init(_ _value: Builtin.FPIEEE64)
           ^
Swift.Double:2:12: note: candidate expects value of type 'Int' for parameter #1 (got 'Float16')
    public init(_ v: Int)
           ^
Swift.Double:5:23: note: candidate expects value of type 'Float' for parameter #1 (got 'Float16')
    @inlinable public init(_ other: Float)
                      ^
Swift.Double:7:23: note: candidate expects value of type 'Double' for parameter #1 (got 'Float16')
    @inlinable public init(_ other: Double)
                      ^
Swift.Double:9:23: note: candidate expects value of type 'Float80' for parameter #1 (got 'Float16')
    @inlinable public init(_ other: Float80)
                      ^
CoreFoundation.Double:3:12: note: candidate expects value of type 'CGFloat' for parameter #1 (got 'Float16')
    public init(_ value: CGFloat)
           ^
Foundation.Double:3:12: note: candidate expects value of type 'NSNumber' for parameter #1 (got 'Float16')
    public init(_ number: __shared NSNumber)
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:159:44: error: argument passed to call that takes no arguments
            guard let f = Float16(exactly: n) else {
                                 ~~~~~~~~~~^~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:164:44: error: argument passed to call that takes no arguments
            guard let f = Float16(exactly: n) else {
                                 ~~~~~~~~~~^~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:172:44: error: argument passed to call that takes no arguments
            guard let f = Float16(exactly: f) else {
                                 ~~~~~~~~~~^~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:183:13: error: cannot convert value of type 'Float16' to expected argument type 'Int'
            self < 0,
            ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:184:21: error: no exact matches in call to initializer 
            let i = Int64(exactly: self)
                    ^
Swift.Int64:9:12: note: candidate expects value of type 'Float' for parameter #1 (got 'Float16')
    public init?(exactly source: Float)
           ^
Swift.Int64:11:12: note: candidate expects value of type 'Double' for parameter #1 (got 'Float16')
    public init?(exactly source: Double)
           ^
Swift.Int64:13:12: note: candidate expects value of type 'Float80' for parameter #1 (got 'Float16')
    public init?(exactly source: Float80)
           ^
Foundation.Int64:5:12: note: candidate expects value of type 'NSNumber' for parameter #1 (got 'Float16')
    public init?(exactly number: __shared NSNumber)
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:188:20: error: no exact matches in call to initializer 
        if let i = UInt64(exactly: self) {
                   ^
Swift.UInt64:7:12: note: candidate expects value of type 'Float' for parameter #1 (got 'Float16')
    public init?(exactly source: Float)
           ^
Swift.UInt64:9:12: note: candidate expects value of type 'Double' for parameter #1 (got 'Float16')
    public init?(exactly source: Double)
           ^
Swift.UInt64:11:12: note: candidate expects value of type 'Float80' for parameter #1 (got 'Float16')
    public init?(exactly source: Float80)
           ^
Foundation.UInt64:5:12: note: candidate expects value of type 'NSNumber' for parameter #1 (got 'Float16')
    public init?(exactly number: __shared NSNumber)
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:191:16: error: cannot find 'isNaN' in scope
        guard !isNaN else {
               ^~~~~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:194:21: error: value of type 'Float16' has no member 'bitPattern'
        return self.bitPattern.encodeVarInt(.simple)
               ~~~~ ^~~~~~~~~~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:194:46: error: cannot infer contextual base in reference to member 'simple'
        return self.bitPattern.encodeVarInt(.simple)
                                            ~^~~~~~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:199:13: error: no exact matches in call to initializer 
            Int64(exactly: self) == nil,
            ^
Swift.Int64:9:12: note: candidate expects value of type 'Float' for parameter #1 (got 'Float16')
    public init?(exactly source: Float)
           ^
Swift.Int64:11:12: note: candidate expects value of type 'Double' for parameter #1 (got 'Float16')
    public init?(exactly source: Double)
           ^
Swift.Int64:13:12: note: candidate expects value of type 'Float80' for parameter #1 (got 'Float16')
    public init?(exactly source: Float80)
           ^
Foundation.Int64:5:12: note: candidate expects value of type 'NSNumber' for parameter #1 (got 'Float16')
    public init?(exactly number: __shared NSNumber)
           ^
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:200:14: error: cannot find 'isNaN' in scope
            !isNaN || self.bitPattern == 0x7e00
             ^~~~~
/Users/shannona/Documents/GitHub/BlockchainCommons/envelope-cli-swift/.build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Float.swift:200:28: error: value of type 'Float16' has no member 'bitPattern'
            !isNaN || self.bitPattern == 0x7e00
                      ~~~~ ^~~~~~~~~~
[23/27] Compiling DCBOR Array.swift
@shannona
Copy link
Contributor Author

I loaded in the updates from three weeks ago, and envelope-cli still gives the same errors on compile on an Intel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant