Build Information
Failed to build ASN1, reference 2.7.0 (e38d1b
), with Swift 6.1 for Wasm on 29 May 2025 21:52:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/leif-ibsen/ASN1.git
Reference: 2.7.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/leif-ibsen/ASN1
* tag 2.7.0 -> FETCH_HEAD
HEAD is now at e38d1b8 Release 2.7.0
Cloned https://github.com/leif-ibsen/ASN1.git
Revision (git rev-parse @):
e38d1b8b43d8b53ffadde9836f34289176bb7a0c
SUCCESS checkout https://github.com/leif-ibsen/ASN1.git at 2.7.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/leif-ibsen/ASN1.git
https://github.com/leif-ibsen/ASN1.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "bigint",
"requirement" : {
"range" : [
{
"lower_bound" : "1.20.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/BigInt"
}
],
"manifest_display_name" : "ASN1",
"name" : "ASN1",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "ASN1",
"targets" : [
"ASN1"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ASN1Tests",
"module_type" : "SwiftTarget",
"name" : "ASN1Tests",
"path" : "Tests/ASN1Tests",
"sources" : [
"ASN1Tests.swift",
"ErrorTests.swift",
"PerformanceTest.swift"
],
"target_dependencies" : [
"ASN1"
],
"type" : "test"
},
{
"c99name" : "ASN1",
"module_type" : "SwiftTarget",
"name" : "ASN1",
"path" : "Sources/ASN1",
"product_dependencies" : [
"BigInt"
],
"product_memberships" : [
"ASN1"
],
"sources" : [
"ASN1.swift",
"ASN1BMPString.swift",
"ASN1BitString.swift",
"ASN1Boolean.swift",
"ASN1Collection.swift",
"ASN1Ctx.swift",
"ASN1Exception.swift",
"ASN1GeneralizedTime.swift",
"ASN1IA5String.swift",
"ASN1Integer.swift",
"ASN1Null.swift",
"ASN1ObjectIdentifier.swift",
"ASN1OctetString.swift",
"ASN1PrintableString.swift",
"ASN1Sequence.swift",
"ASN1Set.swift",
"ASN1SimpleType.swift",
"ASN1T61String.swift",
"ASN1Time.swift",
"ASN1UTCTime.swift",
"ASN1UTF8String.swift",
"InputStream.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/leif-ibsen/BigInt
[1/5516] Fetching bigint
Fetched https://github.com/leif-ibsen/BigInt from cache (0.83s)
Computing version for https://github.com/leif-ibsen/BigInt
Computed https://github.com/leif-ibsen/BigInt at 1.21.0 (1.45s)
Creating working copy for https://github.com/leif-ibsen/BigInt
Working copy of https://github.com/leif-ibsen/BigInt resolved at 1.21.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/15] Emitting module BigInt
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:64: error: integer literal '2432902008176640000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '2432902008176640000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:44: error: integer literal '121645100408832000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '121645100408832000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:26: error: integer literal '6402373705728000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '6402373705728000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:9: error: integer literal '355687428096000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '355687428096000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:60: error: integer literal '20922789888000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '20922789888000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:45: error: integer literal '1307674368000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '1307674368000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:32: error: integer literal '87178291200' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '87178291200' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:20: error: integer literal '6227020800' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '6227020800' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
[5/16] Compiling BigInt Limbs.swift
[6/16] Compiling BigInt ToomCook.swift
[7/16] Compiling BigInt CRT.swift
[8/16] Compiling BigInt ExpMod.swift
[9/16] Compiling BigInt BitSieve.swift
[10/16] Compiling BigInt BurnikelZiegler.swift
[11/16] Compiling BigInt Karatsuba.swift
[12/16] Compiling BigInt GCD.swift
[13/16] Compiling BigInt FFT.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:64: error: integer literal '2432902008176640000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '2432902008176640000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:44: error: integer literal '121645100408832000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '121645100408832000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:26: error: integer literal '6402373705728000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '6402373705728000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:9: error: integer literal '355687428096000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '355687428096000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:60: error: integer literal '20922789888000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '20922789888000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:45: error: integer literal '1307674368000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '1307674368000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:32: error: integer literal '87178291200' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '87178291200' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:20: error: integer literal '6227020800' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '6227020800' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
[14/16] Compiling BigInt Factorial.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:64: error: integer literal '2432902008176640000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '2432902008176640000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:44: error: integer literal '121645100408832000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '121645100408832000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:26: error: integer literal '6402373705728000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '6402373705728000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:9: error: integer literal '355687428096000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '355687428096000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:60: error: integer literal '20922789888000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '20922789888000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:45: error: integer literal '1307674368000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '1307674368000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:32: error: integer literal '87178291200' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '87178291200' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:20: error: integer literal '6227020800' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '6227020800' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
[15/16] Compiling BigInt BigFrac.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:15: error: cannot find 'SecRandomCopyBytes' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:34: error: cannot find 'kSecRandomDefault' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:77: error: cannot find 'errSecSuccess' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:15: error: cannot find 'SecRandomCopyBytes' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:34: error: cannot find 'kSecRandomDefault' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:81: error: cannot find 'errSecSuccess' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
[16/16] Compiling BigInt BigInt.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:15: error: cannot find 'SecRandomCopyBytes' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:34: error: cannot find 'kSecRandomDefault' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:77: error: cannot find 'errSecSuccess' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:15: error: cannot find 'SecRandomCopyBytes' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:34: error: cannot find 'kSecRandomDefault' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:81: error: cannot find 'errSecSuccess' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/13] Compiling BigInt CRT.swift
[3/13] Compiling BigInt ExpMod.swift
[4/14] Compiling BigInt BitSieve.swift
[5/14] Compiling BigInt BurnikelZiegler.swift
[6/14] Compiling BigInt ToomCook.swift
[7/14] Compiling BigInt Karatsuba.swift
[8/14] Compiling BigInt GCD.swift
[9/14] Compiling BigInt Limbs.swift
[10/14] Compiling BigInt FFT.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:64: error: integer literal '2432902008176640000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '2432902008176640000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:44: error: integer literal '121645100408832000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '121645100408832000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:26: error: integer literal '6402373705728000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '6402373705728000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:9: error: integer literal '355687428096000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '355687428096000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:60: error: integer literal '20922789888000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '20922789888000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:45: error: integer literal '1307674368000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '1307674368000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:32: error: integer literal '87178291200' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '87178291200' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:20: error: integer literal '6227020800' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '6227020800' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
[11/14] Compiling BigInt Factorial.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:64: error: integer literal '2432902008176640000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '2432902008176640000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:44: error: integer literal '121645100408832000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '121645100408832000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:26: error: integer literal '6402373705728000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '6402373705728000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:9: error: integer literal '355687428096000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '355687428096000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:60: error: integer literal '20922789888000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '20922789888000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:45: error: integer literal '1307674368000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '1307674368000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:32: error: integer literal '87178291200' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '87178291200' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:20: error: integer literal '6227020800' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '6227020800' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/14] Emitting module BigInt
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:64: error: integer literal '2432902008176640000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '2432902008176640000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:44: error: integer literal '121645100408832000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '121645100408832000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:26: error: integer literal '6402373705728000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '6402373705728000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:15:9: error: integer literal '355687428096000' overflows when stored into 'Int'
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
| `- error: integer literal '355687428096000' overflows when stored into 'Int'
16 |
17 | var N: Limbs = [1]
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:60: error: integer literal '20922789888000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '20922789888000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:45: error: integer literal '1307674368000' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '1307674368000' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:32: error: integer literal '87178291200' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '87178291200' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/Factorial.swift:14:20: error: integer literal '6227020800' overflows when stored into 'Int'
12 | static let smallFacs: [Int] = [
13 | 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800,
14 | 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000,
| `- error: integer literal '6227020800' overflows when stored into 'Int'
15 | 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000]
16 |
[13/14] Compiling BigInt BigFrac.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:15: error: cannot find 'SecRandomCopyBytes' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:34: error: cannot find 'kSecRandomDefault' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:77: error: cannot find 'errSecSuccess' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:15: error: cannot find 'SecRandomCopyBytes' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:34: error: cannot find 'kSecRandomDefault' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:81: error: cannot find 'errSecSuccess' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
[14/14] Compiling BigInt BigInt.swift
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:15: error: cannot find 'SecRandomCopyBytes' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:34: error: cannot find 'kSecRandomDefault' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1696:77: error: cannot find 'errSecSuccess' in scope
1694 |
1695 | static internal func randomBytes(_ bytes: inout Bytes) {
1696 | guard SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1697 | fatalError("randomBytes failed")
1698 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:15: error: cannot find 'SecRandomCopyBytes' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'SecRandomCopyBytes' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:34: error: cannot find 'kSecRandomDefault' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'kSecRandomDefault' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigInt/BigInt.swift:1702:81: error: cannot find 'errSecSuccess' in scope
1700 |
1701 | static internal func randomLimbs(_ limbs: inout Limbs) {
1702 | guard SecRandomCopyBytes(kSecRandomDefault, 8 * limbs.count, &limbs) == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
1703 | fatalError("randomLimbs failed")
1704 | }
BUILD FAILURE 6.1 wasm