Compile Error on Intel Mac
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- macos, swift
- 領域
- build-system, cli
調査の方向性
build.sh から始め、報告された Intel Mac と Xcode バージョンで本番ビルドを再現します。失敗している依存関係ファイル .build/checkouts/BCSwiftDCBOR/Sources/DCBOR/Decode.swift と Float.swift を読み、報告された Float16 エラーに注目します。影響を受ける macOS 環境でプロジェクトが正常にコンパイルできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Swift
- スター
- 1
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
BlockchainCommons/envelope-cli-swift のほかの issue
-
Debian packaging for envelope-cli再び着手できるかも @nochiel が 1313 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
BlockchainCommons/envelope-cli-swift#11 · 担当者 1 名 ·
-
Framework issue when executing "envelope"再び着手できるかも @wolfmcnally が 1298 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
BlockchainCommons/envelope-cli-swift#10 · コメント 4 件 · 担当者 1 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
BlockchainCommons/envelope-cli-swift の issue をすべて見る
似ている issue
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NobiResearch/Ovenbird#148 ·
メンテナーはふだん 1 日以内に返信
-
auth type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
googleapis/google-cloud-swift#1549 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
shanselman/TinyToolTown#883 ·
メンテナーはふだん 5 日以内に返信
-
area: agents
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
manaflow-ai/cmux#26908 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4149 ·