Compile Error on Intel Mac
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- macos, swift
- Ambito
- build-system, cli
Direzione di ricerca
Inizia con build.sh e riproduci la build di produzione sull’Intel Mac e sulla versione di Xcode segnalati. Leggi i file di dipendenza che causano l’errore, .build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Decode.swift e Float.swift, concentrandoti sugli errori Float16 segnalati. Il lavoro è concluso quando il progetto compila correttamente nell’ambiente macOS interessato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Swift
- Stelle
- 1
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di BlockchainCommons/envelope-cli-swift
-
Debian packaging for envelope-cliForse di nuovo libera @nochiel l’ha presa 1291 giorni fa e non c’è nessuna pull request aperta. Aperta
BlockchainCommons/envelope-cli-swift#11 · 1 assegnatario ·
-
Framework issue when executing "envelope"Forse di nuovo libera @wolfmcnally l’ha presa 1276 giorni fa e non c’è nessuna pull request aperta. Aperta
BlockchainCommons/envelope-cli-swift#10 · 4 commenti · 1 assegnatario ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
Tutte le issue di BlockchainCommons/envelope-cli-swift
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
tw93/Mole#1695 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
521xueweihan/HelloGitHub#3870 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
X1a0He/Adobe-Downloader#256 ·
-
🐛 bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
margelo/react-native-vision-camera#4211 ·
I maintainer di solito rispondono entro 4 giorni