The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UInt256, reference 0.2.2 (1a499a), with Swift 6.4 for Linux on 17 Sep 2026 00:51:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hyugit/UInt256.git
Reference: 0.2.2
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/hyugit/UInt256
 * tag               0.2.2      -> FETCH_HEAD
HEAD is now at 1a499a1 minor changes
Cloned https://github.com/hyugit/UInt256.git
Revision (git rev-parse @):
1a499a1bf08afd10b9fcd0fd6d90b6dd9196be50
SUCCESS checkout https://github.com/hyugit/UInt256.git at 0.2.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/hyugit/UInt256.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Building for debugging...
[Planning deferred tasks]
[28 / 36] UInt256
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
 20 |     }
 21 |
 22 |     public static var bitWidth: Int {
    |                       |- warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    |                       |- note: candidate operates on a type, not an instance as required
    |                       `- note: move 'bitWidth' to another extension to silence this warning
 23 |         return 256
 24 |     }
Swift.BinaryInteger.bitWidth:2:5: note: requirement 'bitWidth' declared here
1 | protocol BinaryInteger {
2 | var bitWidth: Int { get }}
  |     `- note: requirement 'bitWidth' declared here
3 |
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
 43 |     }
 44 |
 45 |     public init?<T: BinaryInteger>(exactly source: T) {
    |            |- warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    |            |- note: candidate has non-matching type '(exactly: T)'
    |            `- note: move 'init(exactly:)' to another extension to silence this warning
 46 |         if let uint64 = UInt64(exactly: source) {
 47 |             self.init(withUInt64: uint64)
Swift.BinaryInteger.init:2:1: note: requirement 'init(exactly:)' declared here
1 | protocol BinaryInteger {
2 | init?<T>(exactly source: T) where T : BinaryFloatingPoint}
  | `- note: requirement 'init(exactly:)' declared here
3 |
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
2 |
3 | extension UInt256: Hashable {
4 |     public var hashValue: Int {
  |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
5 |         return toHexString().hashValue
6 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[33 / 36] UInt256
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
2 |
3 | extension UInt256: Hashable {
4 |     public var hashValue: Int {
  |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
5 |         return toHexString().hashValue
6 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/UInt256+arc4random.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile UInt256+arc4random.swift
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:33:27: error: cannot find 'arc4random' in scope
31 |     func generateRandom(within highBits: UInt32) -> UInt64 {
32 |         let high: UInt32 = arc4random_uniform(highBits)
33 |         let low: UInt32 = arc4random()
   |                           `- error: cannot find 'arc4random' in scope
34 |         let result: UInt64 = UInt64(high) << 32 + UInt64(low)
35 |         return result
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:66:24: error: cannot find 'arc4random' in scope
64 |
65 | func arc4random64() -> UInt64 {
66 |     let high: UInt32 = arc4random()
   |                        `- error: cannot find 'arc4random' in scope
67 |     let low: UInt32 = arc4random()
68 |     let result: UInt64 = UInt64(high) << 32 + UInt64(low)
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:67:23: error: cannot find 'arc4random' in scope
65 | func arc4random64() -> UInt64 {
66 |     let high: UInt32 = arc4random()
67 |     let low: UInt32 = arc4random()
   |                       `- error: cannot find 'arc4random' in scope
68 |     let result: UInt64 = UInt64(high) << 32 + UInt64(low)
69 |     return result
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/FixedWidthInteger+LongDivision.swift /host/spi-builder-workspace/Sources/UInt256+BarrettDivision.swift /host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift /host/spi-builder-workspace/Sources/UInt256+Comparable.swift /host/spi-builder-workspace/Sources/UInt256+CustomStringConvertible.swift /host/spi-builder-workspace/Sources/UInt256+Divide\&Conquer.swift /host/spi-builder-workspace/Sources/UInt256+Equatable.swift /host/spi-builder-workspace/Sources/UInt256+ExpressibleByIntegerLiteral.swift /host/spi-builder-workspace/Sources/UInt256+FixedWidthInteger.swift /host/spi-builder-workspace/Sources/UInt256+Hashable.swift /host/spi-builder-workspace/Sources/UInt256+Karatsuba.swift /host/spi-builder-workspace/Sources/UInt256+Numeric.swift -primary-file /host/spi-builder-workspace/Sources/UInt256+UnsignedInteger.swift -primary-file /host/spi-builder-workspace/Sources/UInt256+arc4random.swift /host/spi-builder-workspace/Sources/UInt256.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+UnsignedInteger.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+UnsignedInteger.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+UnsignedInteger.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+UnsignedInteger.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+arc4random.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+arc4random.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+arc4random.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+arc4random.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -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 4 -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 /usr/lib/swift/host/plugins/testing\#/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 -enable-anonymous-context-mangled-names -file-compilation-dir /host -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-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name UInt256 -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+UnsignedInteger.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+arc4random.o -index-unit-output-path /UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+UnsignedInteger.o -index-unit-output-path /UInt256.build/Debug-linux-x86_64/UInt256-t.build/Objects-normal/x86_64/UInt256+arc4random.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
 20 |     }
 21 |
 22 |     public static var bitWidth: Int {
    |                       |- warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    |                       |- note: candidate operates on a type, not an instance as required
    |                       `- note: move 'bitWidth' to another extension to silence this warning
 23 |         return 256
 24 |     }
Swift.BinaryInteger.bitWidth:2:5: note: requirement 'bitWidth' declared here
1 | protocol BinaryInteger {
2 | var bitWidth: Int { get }}
  |     `- note: requirement 'bitWidth' declared here
3 |
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
 43 |     }
 44 |
 45 |     public init?<T: BinaryInteger>(exactly source: T) {
    |            |- warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    |            |- note: candidate has non-matching type '(exactly: T)'
    |            `- note: move 'init(exactly:)' to another extension to silence this warning
 46 |         if let uint64 = UInt64(exactly: source) {
 47 |             self.init(withUInt64: uint64)
Swift.BinaryInteger.init:2:1: note: requirement 'init(exactly:)' declared here
1 | protocol BinaryInteger {
2 | init?<T>(exactly source: T) where T : BinaryFloatingPoint}
  | `- note: requirement 'init(exactly:)' declared here
3 |
error: Build failed
BUILD FAILURE 6.4 linux