The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftCBOR, reference 0.4.0 (0b01ca), with Swift 6.2 (beta) for Android on 21 Jun 2025 13:49:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MasterJ93/SwiftCBOR.git
Reference: 0.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/MasterJ93/SwiftCBOR
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 0b01caa Switch to Apple's version of swift-collections
Cloned https://github.com/MasterJ93/SwiftCBOR.git
Revision (git rev-parse @):
0b01caa633889f6d64f73f1c01607358d36fe6e6
SUCCESS checkout https://github.com/MasterJ93/SwiftCBOR.git at 0.4.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/MasterJ93/SwiftCBOR.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-collections.git
[1/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.49s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (3.28s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-8C5A4AE7A8CE2BA.txt
[11/24] Compiling InternalCollectionsUtilities Descriptions.swift
[12/24] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[13/24] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[14/24] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[15/24] Compiling InternalCollectionsUtilities Debugging.swift
[16/24] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[17/24] Compiling InternalCollectionsUtilities _SortedCollection.swift
[18/25] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[19/25] Compiling InternalCollectionsUtilities UInt+reversed.swift
[20/25] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[21/25] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[22/25] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[23/25] Compiling InternalCollectionsUtilities Integer rank.swift
[24/25] Emitting module InternalCollectionsUtilities
[25/25] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[27/246] Compiling HeapModule Heap+Invariants.swift
[28/251] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[29/300] Compiling HashTreeCollections _Bucket.swift
[30/300] Compiling HashTreeCollections _Hash.swift
[31/302] Compiling HeapModule Heap+Descriptions.swift
[32/302] Compiling HashTreeCollections _HashNode+Structural symmetricDifference.swift
[33/302] Compiling HashTreeCollections _HashNode+Structural union.swift
[34/302] Compiling HeapModule _HeapNode.swift
[35/302] Compiling HeapModule Heap.swift
[36/302] Compiling HeapModule Heap+UnsafeHandle.swift
[37/302] Emitting module HeapModule
[39/303] Compiling DequeModule _DequeSlot.swift
[40/303] Compiling DequeModule _UnsafeWrappedBuffer.swift
[41/303] Compiling HashTreeCollections TreeSet+Hashable.swift
[42/303] Compiling HashTreeCollections TreeSet+Sendable.swift
[43/303] Compiling HashTreeCollections TreeSet+Sequence.swift
[44/303] Compiling HashTreeCollections TreeSet+SetAlgebra Initializers.swift
[45/303] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[46/303] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[47/303] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[48/303] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[49/303] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[50/303] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[51/313] Compiling HashTreeCollections _HashNode+Structural merge.swift
[52/313] Compiling HashTreeCollections TreeDictionary.swift
[53/313] Compiling HashTreeCollections TreeSet+Codable.swift
[54/313] Compiling HashTreeCollections TreeSet+Collection.swift
[55/313] Compiling HashTreeCollections TreeSet+CustomReflectable.swift
[56/313] Compiling HashTreeCollections TreeSet+Debugging.swift
[57/313] Compiling HashTreeCollections TreeSet+Descriptions.swift
[58/313] Compiling HashTreeCollections TreeSet+Equatable.swift
[59/320] Compiling HashTreeCollections TreeSet+ExpressibleByArrayLiteral.swift
[60/320] Compiling HashTreeCollections TreeSet+Extras.swift
[61/320] Compiling HashTreeCollections TreeSet+Filter.swift
[62/320] Compiling HashTreeCollections _HashTreeIterator.swift
[63/320] Compiling HashTreeCollections _HashTreeStatistics.swift
[64/320] Compiling HashTreeCollections _RawHashNode+UnsafeHandle.swift
[65/320] Compiling HashTreeCollections _RawHashNode.swift
[66/320] Compiling HashTreeCollections _UnmanagedHashNode.swift
[67/320] Compiling HashTreeCollections _UnsafePath.swift
[68/320] Compiling HashTreeCollections TreeDictionary+Codable.swift
[69/320] Compiling HashTreeCollections TreeDictionary+Collection.swift
[70/320] Compiling HashTreeCollections TreeDictionary+CustomReflectable.swift
[71/320] Compiling HashTreeCollections TreeDictionary+Debugging.swift
[72/320] Compiling HashTreeCollections TreeDictionary+Descriptions.swift
[73/320] Compiling HashTreeCollections _HashNode+Storage.swift
[74/320] Compiling HashTreeCollections _HashNode+Structural compactMapValues.swift
[75/320] Compiling HashTreeCollections _HashNode+Structural filter.swift
[76/320] Compiling HashTreeCollections _HashNode+Structural intersection.swift
[77/320] Compiling HashTreeCollections _HashNode+Structural isDisjoint.swift
[78/320] Compiling HashTreeCollections _HashNode+Structural isEqualSet.swift
[79/320] Compiling HashTreeCollections _HashNode+Structural isSubset.swift
[80/320] Compiling HashTreeCollections _HashNode+Structural mapValues.swift
[95/327] Compiling HashTreeCollections _HashLevel.swift
[96/327] Compiling HashTreeCollections _HashNode+Builder.swift
[97/327] Compiling HashTreeCollections _HashNode+Debugging.swift
[98/327] Compiling HashTreeCollections _HashNode+Initializers.swift
[99/327] Compiling HashTreeCollections _HashNode+Invariants.swift
[100/327] Compiling HashTreeCollections _HashNode+Lookups.swift
[101/327] Compiling HashTreeCollections _HashNode+Primitive Insertions.swift
[102/327] Compiling HashTreeCollections _HashNode+Structural subtracting.swift
[121/327] Compiling HashTreeCollections _HashNode+Subtree Removals.swift
[122/327] Compiling HashTreeCollections _HashNode+UnsafeHandle.swift
[123/327] Compiling HashTreeCollections _HashNode.swift
[124/327] Compiling HashTreeCollections _HashNodeHeader.swift
[125/327] Compiling HashTreeCollections _HashSlot.swift
[126/327] Compiling HashTreeCollections _HashStack.swift
[127/327] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[128/327] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[143/327] Compiling HashTreeCollections _AncestorHashSlots.swift
[144/327] Compiling HashTreeCollections _Bitmap.swift
[154/327] Compiling BitCollections BitSet.Index.swift
[155/327] Compiling BitCollections BitSet._UnsafeHandle.swift
[156/327] Compiling BitCollections BitSet.swift
[157/327] Compiling BitCollections Range+Utilities.swift
[158/327] Compiling BitCollections Slice+Utilities.swift
[159/327] Compiling BitCollections UInt+Tricks.swift
[160/327] Compiling BitCollections _Word.swift
[161/327] Compiling OrderedCollections OrderedSet.swift
[162/327] Compiling OrderedCollections _UnsafeBitset.swift
[163/327] Compiling HashTreeCollections TreeDictionary+Merge.swift
[164/327] Compiling HashTreeCollections TreeDictionary+Sendable.swift
[165/327] Compiling HashTreeCollections TreeDictionary+Sequence.swift
[166/327] Compiling HashTreeCollections TreeDictionary+Values.swift
[174/327] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[175/327] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[176/327] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[177/327] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[178/327] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[179/327] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[180/327] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[181/327] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[182/327] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[183/327] Compiling HashTreeCollections TreeSet.swift
[184/327] Emitting module DequeModule
[186/328] Emitting module BitCollections
[255/338] Emitting module OrderedCollections
[267/339] Emitting module _RopeModule
[301/339] Emitting module HashTreeCollections
[303/340] Compiling _RopeModule Rope+Join.swift
[304/340] Compiling _RopeModule Rope+MutatingForEach.swift
[305/340] Compiling _RopeModule Rope+Remove.swift
[306/340] Compiling _RopeModule Rope+RemoveSubrange.swift
[307/340] Compiling _RopeModule Rope+Split.swift
[308/340] Compiling _RopeModule Optional Utilities.swift
[309/340] Compiling _RopeModule String Utilities.swift
[310/340] Compiling _RopeModule String.Index+ABI.swift
[311/340] Compiling _RopeModule _CharacterRecognizer.swift
[342/343] Emitting module Collections
[343/343] Compiling Collections Collections.swift
[345/360] Compiling SwiftCBOR CBORInputStream.swift
[346/360] Compiling SwiftCBOR CBOROptions.swift
[347/362] Emitting module SwiftCBOR
/host/spi-builder-workspace/Sources/Decoder/SingleValueDecodingContainer.swift:234:10: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
232 |     }
233 |
234 |     func decode(_ type: Data.Type) throws -> Data {
    |          |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
    |          |- note: candidate has non-matching type '(Data.Type) throws -> Data'
    |          |- note: move 'decode' to another extension to silence this warning
    |          `- note: make 'decode' private to silence this warning
235 |         guard let cbor = try? CBOR.decode(self.data.map { $0 }) else {
236 |             let context = DecodingError.Context(codingPath: self.codingPath, debugDescription: "Invalid format: \(self.data)")
Swift.SingleValueDecodingContainer.decode:3:8: note: requirement 'decode' declared here
1 | protocol SingleValueDecodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   func decode(_ type: Int128.Type) throws -> Int128}
  |        `- note: requirement 'decode' declared here
4 |
/host/spi-builder-workspace/Sources/Encoder/SingleValueEncodingContainer.swift:134:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
132 |     }
133 |
134 |     func encode(_ value: Date) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '(Date) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
135 |         try checkCanEncode(value: value)
136 |         defer { self.canEncodeNewValue = false }
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: Int128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
/host/spi-builder-workspace/Sources/Encoder/SingleValueEncodingContainer.swift:141:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
139 |     }
140 |
141 |     func encode(_ value: Data) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '(Data) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
142 |         try checkCanEncode(value: value)
143 |         defer { self.canEncodeNewValue = false }
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: UInt128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
[348/362] Compiling SwiftCBOR AnyCodingKey.swift
[349/362] Compiling SwiftCBOR CBOR.swift
[350/362] Compiling SwiftCBOR CBORDecoder.swift
[351/362] Compiling SwiftCBOR SingleValueEncodingContainer.swift
/host/spi-builder-workspace/Sources/Encoder/SingleValueEncodingContainer.swift:134:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
132 |     }
133 |
134 |     func encode(_ value: Date) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '(Date) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
135 |         try checkCanEncode(value: value)
136 |         defer { self.canEncodeNewValue = false }
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: Int128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
/host/spi-builder-workspace/Sources/Encoder/SingleValueEncodingContainer.swift:141:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
139 |     }
140 |
141 |     func encode(_ value: Data) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '(Data) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
142 |         try checkCanEncode(value: value)
143 |         defer { self.canEncodeNewValue = false }
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: UInt128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
[352/362] Compiling SwiftCBOR UnkeyedEncodingContainer.swift
/host/spi-builder-workspace/Sources/Encoder/SingleValueEncodingContainer.swift:134:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
132 |     }
133 |
134 |     func encode(_ value: Date) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '(Date) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
135 |         try checkCanEncode(value: value)
136 |         defer { self.canEncodeNewValue = false }
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: Int128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
/host/spi-builder-workspace/Sources/Encoder/SingleValueEncodingContainer.swift:141:10: warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
139 |     }
140 |
141 |     func encode(_ value: Data) throws {
    |          |- warning: instance method 'encode' nearly matches defaulted requirement 'encode' of protocol 'SingleValueEncodingContainer'
    |          |- note: candidate has non-matching type '(Data) throws -> ()'
    |          |- note: move 'encode' to another extension to silence this warning
    |          `- note: make 'encode' private to silence this warning
142 |         try checkCanEncode(value: value)
143 |         defer { self.canEncodeNewValue = false }
Swift.SingleValueEncodingContainer.encode:3:17: note: requirement 'encode' declared here
1 | protocol SingleValueEncodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   mutating func encode(_ value: UInt128) throws}
  |                 `- note: requirement 'encode' declared here
4 |
[353/362] Compiling SwiftCBOR CodableCBOREncoder.swift
[354/362] Compiling SwiftCBOR KeyedEncodingContainer.swift
[355/362] Compiling SwiftCBOR CodableCBORDecoder.swift
[356/362] Compiling SwiftCBOR KeyedDecodingContainer.swift
[357/362] Compiling SwiftCBOR CBOREncodable.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:268:53: error: cannot find 'NSEC_PER_SEC' in scope
266 |
267 |         let seconds = Int64(integral)
268 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
269 |
270 |         switch options.dateStrategy {
[358/362] Compiling SwiftCBOR CBOREncoder.swift
/host/spi-builder-workspace/Sources/CBOREncoder.swift:268:53: error: cannot find 'NSEC_PER_SEC' in scope
266 |
267 |         let seconds = Int64(integral)
268 |         let nanoseconds = Int32(fractional * Double(NSEC_PER_SEC))
    |                                                     `- error: cannot find 'NSEC_PER_SEC' in scope
269 |
270 |         switch options.dateStrategy {
[359/362] Compiling SwiftCBOR SingleValueDecodingContainer.swift
/host/spi-builder-workspace/Sources/Decoder/SingleValueDecodingContainer.swift:234:10: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
232 |     }
233 |
234 |     func decode(_ type: Data.Type) throws -> Data {
    |          |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
    |          |- note: candidate has non-matching type '(Data.Type) throws -> Data'
    |          |- note: move 'decode' to another extension to silence this warning
    |          `- note: make 'decode' private to silence this warning
235 |         guard let cbor = try? CBOR.decode(self.data.map { $0 }) else {
236 |             let context = DecodingError.Context(codingPath: self.codingPath, debugDescription: "Invalid format: \(self.data)")
Swift.SingleValueDecodingContainer.decode:3:8: note: requirement 'decode' declared here
1 | protocol SingleValueDecodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   func decode(_ type: Int128.Type) throws -> Int128}
  |        `- note: requirement 'decode' declared here
4 |
[360/362] Compiling SwiftCBOR UnkeyedDecodingContainer.swift
/host/spi-builder-workspace/Sources/Decoder/SingleValueDecodingContainer.swift:234:10: warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
232 |     }
233 |
234 |     func decode(_ type: Data.Type) throws -> Data {
    |          |- warning: instance method 'decode' nearly matches defaulted requirement 'decode' of protocol 'SingleValueDecodingContainer'
    |          |- note: candidate has non-matching type '(Data.Type) throws -> Data'
    |          |- note: move 'decode' to another extension to silence this warning
    |          `- note: make 'decode' private to silence this warning
235 |         guard let cbor = try? CBOR.decode(self.data.map { $0 }) else {
236 |             let context = DecodingError.Context(codingPath: self.codingPath, debugDescription: "Invalid format: \(self.data)")
Swift.SingleValueDecodingContainer.decode:3:8: note: requirement 'decode' declared here
1 | protocol SingleValueDecodingContainer {
2 | @available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
3 |   func decode(_ type: Int128.Type) throws -> Int128}
  |        `- note: requirement 'decode' declared here
4 |
[361/362] Compiling SwiftCBOR FixedWidthInteger+Bytes.swift
[362/362] Compiling SwiftCBOR Util.swift
BUILD FAILURE 6.2 android