The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NumberKit with Swift 5.7 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.35.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objecthub/swift-numberkit.git
Reference: master
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/objecthub/swift-numberkit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 38c649a Make usage of `StaticBigInt` conditionally. Reduce deployment target requirements down to macOS 10.13 and iOS 13.
Cloned https://github.com/objecthub/swift-numberkit.git
Revision (git rev-parse @):
38c649a58989ae80f8b0694b0b9826130df5c18f
SUCCESS checkout https://github.com/objecthub/swift-numberkit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  $workDir
https://github.com/objecthub/swift-numberkit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/8] Emitting module NumberKit
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1264:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1263:1: error: type 'BigInt' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension BigInt: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:642:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:641:1: error: type 'Integer' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension Integer: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
[2/8] Compiling NumberKit BigInt.swift
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1264:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1263:1: error: type 'BigInt' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension BigInt: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
[3/8] Compiling NumberKit NumberUtil.swift
[4/8] Compiling NumberKit IntegerNumber.swift
[5/8] Compiling NumberKit Integer.swift
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:642:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:641:1: error: type 'Integer' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension Integer: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1264:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:643:20: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'BigInt' conform to '_ExpressibleByBuiltinIntegerLiteral'
    self = Integer(BigInt(integerLiteral: value))
                   ^
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'BigInt'
extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
          ^
[6/8] Compiling NumberKit FloatingPointNumber.swift
[7/8] Compiling NumberKit Complex.swift
[8/8] Compiling NumberKit Rational.swift
[0/1] Planning build
Building for debugging...
[1/3] Compiling NumberKit Integer.swift
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:642:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:641:1: error: type 'Integer' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension Integer: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1264:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:643:20: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'BigInt' conform to '_ExpressibleByBuiltinIntegerLiteral'
    self = Integer(BigInt(integerLiteral: value))
                   ^
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'BigInt'
extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
          ^
error: emit-module command failed with exit code 1 (use -v to see invocation)[2/3] Emitting module NumberKit
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1264:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1263:1: error: type 'BigInt' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension BigInt: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:642:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/Integer.swift:641:1: error: type 'Integer' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension Integer: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
[3/3] Compiling NumberKit BigInt.swift
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1264:37: error: cannot find type 'StaticBigInt' in scope
  public init(integerLiteral value: StaticBigInt) {
                                    ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/NumberKit/BigInt.swift:1263:1: error: type 'BigInt' does not conform to protocol 'ExpressibleByIntegerLiteral'
extension BigInt: ExpressibleByIntegerLiteral {
^
Swift.ExpressibleByIntegerLiteral:2:20: note: protocol requires nested type 'IntegerLiteralType'; do you want to add it?
    associatedtype IntegerLiteralType : _ExpressibleByBuiltinIntegerLiteral
                   ^
BUILD FAILURE 5.7 linux

Build Machine: Linux 1