The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftCBOR, reference 0.4.0 (0b01ca), with Swift 6.4 for Android on 20 Sep 2026 17:40:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.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.4
Building package at path:  $PWD
https://github.com/MasterJ93/SwiftCBOR.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-collections.git
[1/27352] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (1.12s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (1.47s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 328]
[Planning deferred tasks]
[6 / 143]
[82 / 153] InternalCollectionsUtilities
[89 / 155]
[97 / 182] _RopeModule
[99 / 191] _RopeModule
[100 / 192] _RopeModule
[101 / 192] HeapModule
[103 / 192] HeapModule
[108 / 192] _RopeModule
[109 / 192] OrderedCollections
[110 / 192] OrderedCollections
[111 / 192] OrderedCollections
[112 / 192] OrderedCollections
[123 / 192] _RopeModule
[125 / 192] OrderedCollections
[127 / 192] InternalCollectionsUtilities
[128 / 192] InternalCollectionsUtilities
[128 / 192] HeapModule
[131 / 192] HeapModule
[131 / 192] InternalCollectionsUtilities
[132 / 192] HeapModule
[136 / 192] HashTreeCollections
[138 / 192] HashTreeCollections
[138 / 192] HeapModule
[147 / 193] HeapModule
[149 / 194] HeapModule
[151 / 195] OrderedCollections
[157 / 197] OrderedCollections
[160 / 215] OrderedCollections
[162 / 215] _RopeModule
[170 / 215] DequeModule
[173 / 215] ContainersPreview
[175 / 215] ContainersPreview
[179 / 216] ContainersPreview
[183 / 216] BitCollections
[189 / 216] BitCollections
[190 / 216]
[191 / 217] ContainersPreview
[193 / 226] DequeModule
[194 / 226] DequeModule
[195 / 226] DequeModule
[196 / 226] DequeModule
[197 / 226] BitCollections
[199 / 227] DequeModule
[201 / 228] HashTreeCollections
[204 / 228] HashTreeCollections
[206 / 228] HashTreeCollections
[206 / 228] DequeModule
[206 / 229] DequeModule
[221 / 236] Collections
[237 / 247] 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 |
[238 / 247] Collections
[244 / 247] SwiftCBOR
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/CBOREncoder.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile 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 {
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/AnyCodingKey.swift /host/spi-builder-workspace/Sources/CBOR.swift /host/spi-builder-workspace/Sources/CBORDecoder.swift -primary-file /host/spi-builder-workspace/Sources/CBOREncodable.swift -primary-file /host/spi-builder-workspace/Sources/CBOREncoder.swift /host/spi-builder-workspace/Sources/CBORInputStream.swift /host/spi-builder-workspace/Sources/CBOROptions.swift /host/spi-builder-workspace/Sources/Decoder/CodableCBORDecoder.swift /host/spi-builder-workspace/Sources/Decoder/KeyedDecodingContainer.swift /host/spi-builder-workspace/Sources/Decoder/SingleValueDecodingContainer.swift /host/spi-builder-workspace/Sources/Decoder/UnkeyedDecodingContainer.swift /host/spi-builder-workspace/Sources/Encoder/CodableCBOREncoder.swift /host/spi-builder-workspace/Sources/Encoder/KeyedEncodingContainer.swift /host/spi-builder-workspace/Sources/Encoder/SingleValueEncodingContainer.swift /host/spi-builder-workspace/Sources/Encoder/UnkeyedEncodingContainer.swift /host/spi-builder-workspace/Sources/FixedWidthInteger+Bytes.swift /host/spi-builder-workspace/Sources/Util.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncodable.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncodable.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncodable.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncodable.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncoder.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncoder.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncoder.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncoder.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftCBOR -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/SwiftCBOR_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncodable.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncoder.o -index-unit-output-path /SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncodable.o -index-unit-output-path /SwiftCBOR.build/Debug-android-aarch64/SwiftCBOR-t.build/Objects-normal/aarch64/CBOREncoder.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android