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 Shield, reference main (7d19bf), with Swift 6.1 for Wasm on 29 May 2025 03:40:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/outfoxx/shield.git
Reference: main
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/outfoxx/shield
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7d19bf6 Merge pull request #82 from outfoxx/feature/pkcs8pem
Cloned https://github.com/outfoxx/shield.git
Revision (git rev-parse @):
7d19bf67a55985217a5db9393d99631b5c5ff362
SUCCESS checkout https://github.com/outfoxx/shield.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/outfoxx/shield.git
https://github.com/outfoxx/shield.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "potentcodables",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.3",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/outfoxx/PotentCodables.git"
    },
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex.git"
    },
    {
      "identity" : "swift-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-algorithms"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "Shield",
  "name" : "Shield",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "Shield",
      "targets" : [
        "Shield",
        "ShieldSecurity",
        "ShieldCrypto",
        "ShieldOID",
        "ShieldPKCS",
        "ShieldX509",
        "ShieldX500"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ShieldX509",
      "module_type" : "SwiftTarget",
      "name" : "ShieldX509",
      "path" : "Sources/ShieldX509",
      "product_dependencies" : [
        "PotentCodables",
        "Algorithms"
      ],
      "product_memberships" : [
        "Shield"
      ],
      "sources" : [
        "AlgorithmIdentifier.swift",
        "AttributeValueHandlers.swift",
        "Attributes.swift",
        "CRAttributes.swift",
        "Certificate.swift",
        "CertificateBuilder.swift",
        "CertificationRequest.swift",
        "CertificationRequestBuilder.swift",
        "CertificationRequestInfo.swift",
        "DirectoryNames.swift",
        "ECParameters.swift",
        "ECPrivateKey.swift",
        "EDIPartyName.swift",
        "EncryptedPrivateKeyInfo.swift",
        "ExtensionAuthorityKeyIdentifier.swift",
        "ExtensionBasicConstraints.swift",
        "ExtensionExtKeyUsage.swift",
        "ExtensionIssuerAlternativeName.swift",
        "ExtensionKeyUsage.swift",
        "ExtensionSubjectAlternativeName.swift",
        "ExtensionSubjectKeyIdentifier.swift",
        "ExtensionValue.swift",
        "Extensions.swift",
        "GeneralName.swift",
        "KeyIdentifier.swift",
        "Name.swift",
        "OtherName.swift",
        "PBES2Params.swift",
        "PBKDF2Params.swift",
        "PrivateKeyInfo.swift",
        "RSAPrivateKey.swift",
        "RSAPublicKey.swift",
        "Schemas.swift",
        "SubjectPublicKeyInfo.swift",
        "TBSCertificate.swift"
      ],
      "target_dependencies" : [
        "ShieldCrypto",
        "ShieldX500",
        "ShieldOID"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ShieldX500",
      "module_type" : "SwiftTarget",
      "name" : "ShieldX500",
      "path" : "Sources/ShieldX500",
      "product_dependencies" : [
        "PotentCodables"
      ],
      "product_memberships" : [
        "Shield"
      ],
      "sources" : [
        "AttributeTypeAndValue.swift",
        "AttributeValueHandlers.swift",
        "DistinguishedNameBuilder.swift",
        "DistinguishedNameStringComposer.swift",
        "DistinguishedNameStringParser.swift",
        "NamingStyles.swift",
        "RelativeDistinguishedName.swift",
        "Schemas.swift"
      ],
      "target_dependencies" : [
        "ShieldOID"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ShieldTests",
      "module_type" : "SwiftTarget",
      "name" : "ShieldTests",
      "path" : "Tests",
      "sources" : [
        "CertificateBuilderECTests.swift",
        "CertificateBuilderRSATests.swift",
        "CertificateDecoderTests.swift",
        "CertificationRequestBuilderTests.swift",
        "CryptorTests.swift",
        "DigestTests.swift",
        "DistinguishedNameComposerTests.swift",
        "DistinguishedNameParserTests.swift",
        "ErrorsTests.swift",
        "ExtensionsTests.swift",
        "HmacTests.swift",
        "OIDTests.swift",
        "SecCertificateTests.swift",
        "SecIdentityTests.swift",
        "SecKeyPairTests.swift",
        "SecKeyTests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "Shield"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ShieldSecurity",
      "module_type" : "SwiftTarget",
      "name" : "ShieldSecurity",
      "path" : "Sources/ShieldSecurity",
      "product_dependencies" : [
        "PotentCodables",
        "Regex"
      ],
      "product_memberships" : [
        "Shield"
      ],
      "sources" : [
        "AlgorithmIdentifier.swift",
        "Certificate.swift",
        "CertificationRequest.swift",
        "Errors.swift",
        "Logger.swift",
        "PEM.swift",
        "SecAccessibility.swift",
        "SecCertificate.swift",
        "SecIdentity.swift",
        "SecKey.swift",
        "SecKeyPair.swift",
        "SecKeyType.swift"
      ],
      "target_dependencies" : [
        "ShieldCrypto",
        "ShieldOID",
        "ShieldPKCS",
        "ShieldX500",
        "ShieldX509"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ShieldPKCS",
      "module_type" : "SwiftTarget",
      "name" : "ShieldPKCS",
      "path" : "Sources/ShieldPKCS",
      "product_dependencies" : [
        "PotentCodables"
      ],
      "product_memberships" : [
        "Shield"
      ],
      "sources" : [
        "Moved.swift",
        "Schemas.swift"
      ],
      "target_dependencies" : [
        "ShieldX509"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ShieldOID",
      "module_type" : "SwiftTarget",
      "name" : "ShieldOID",
      "path" : "Sources/ShieldOID",
      "product_dependencies" : [
        "PotentCodables"
      ],
      "product_memberships" : [
        "Shield"
      ],
      "sources" : [
        "ISO-ITU.swift",
        "ISO.swift",
        "ITU.swift",
        "OIDs.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ShieldCrypto",
      "module_type" : "SwiftTarget",
      "name" : "ShieldCrypto",
      "path" : "Sources/ShieldCrypto",
      "product_memberships" : [
        "Shield"
      ],
      "sources" : [
        "Cryptor.swift",
        "Digest.swift",
        "Errors.swift",
        "HMAC.swift",
        "PBKDF.swift",
        "Random.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Shield",
      "module_type" : "SwiftTarget",
      "name" : "Shield",
      "path" : "Sources/Shield",
      "product_memberships" : [
        "Shield"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/Shield/Shield.docc",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "ModuleExports.swift"
      ],
      "target_dependencies" : [
        "ShieldSecurity",
        "ShieldCrypto",
        "ShieldOID",
        "ShieldPKCS",
        "ShieldX509",
        "ShieldX500"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/sharplet/Regex.git
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/outfoxx/PotentCodables.git
[1/1254] Fetching regex
[817/3303] Fetching regex, swift-docc-plugin
[1043/9262] Fetching regex, swift-docc-plugin, swift-algorithms
[1163/100464] Fetching regex, swift-docc-plugin, swift-algorithms, potentcodables
Fetched https://github.com/apple/swift-docc-plugin from cache (0.73s)
[18707/98415] Fetching regex, swift-algorithms, potentcodables
Fetched https://github.com/apple/swift-algorithms from cache (3.84s)
Fetched https://github.com/sharplet/Regex.git from cache (3.87s)
Fetched https://github.com/outfoxx/PotentCodables.git from cache (3.91s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.1 (6.21s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (0.65s)
Fetching https://github.com/apple/swift-numerics.git
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.92s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.54s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.58s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.47s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.44s)
Computing version for https://github.com/outfoxx/PotentCodables.git
Computed https://github.com/outfoxx/PotentCodables.git at 3.5.1 (0.63s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/attaswift/BigInt.git
Fetching https://github.com/SusanDoggie/Float16.git
[1/4776] Fetching bigint
[479/5086] Fetching bigint, float16
[3273/21677] Fetching bigint, float16, swift-collections
Fetched https://github.com/SusanDoggie/Float16.git from cache (0.54s)
[9090/21367] Fetching bigint, swift-collections
Fetched https://github.com/attaswift/BigInt.git from cache (1.40s)
Fetched https://github.com/apple/swift-collections.git from cache (1.44s)
Computing version for https://github.com/SusanDoggie/Float16.git
Computed https://github.com/SusanDoggie/Float16.git at 1.1.1 (2.10s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.5.2 (0.58s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.94s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
Creating working copy for https://github.com/outfoxx/PotentCodables.git
Working copy of https://github.com/outfoxx/PotentCodables.git resolved at 3.5.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.5.2
Creating working copy for https://github.com/SusanDoggie/Float16.git
Working copy of https://github.com/SusanDoggie/Float16.git resolved at 1.1.1
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.1
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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/51] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-composer.c:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-ctype.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utf8.h:20:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.h:19:10: fatal error: 'termios.h' file not found
   19 | #include <termios.h>
      |          ^~~~~~~~~~~
1 error generated.
[14/51] Compiling fy-composer.c
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-atom.c:24:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-ctype.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utf8.h:20:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.h:19:10: fatal error: 'termios.h' file not found
   19 | #include <termios.h>
      |          ^~~~~~~~~~~
1 error generated.
[14/51] Compiling fy-atom.c
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-docbuilder.c:22:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.h:19:10: fatal error: 'termios.h' file not found
   19 | #include <termios.h>
      |          ^~~~~~~~~~~
1 error generated.
[14/51] Compiling fy-docbuilder.c
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.c:14:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
    2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
      |  ^
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.c:28:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-ctype.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utf8.h:20:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.h:19:10: fatal error: 'termios.h' file not found
   19 | #include <termios.h>
      |          ^~~~~~~~~~~
[14/51] Compiling fy-parse.c
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-diag.c:25:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-ctype.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utf8.h:20:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.h:19:10: fatal error: 'termios.h' file not found
   19 | #include <termios.h>
      |          ^~~~~~~~~~~
[14/51] Compiling fy-diag.c
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-doc.c:23:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-ctype.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utf8.h:20:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.h:19:10: fatal error: 'termios.h' file not found
   19 | #include <termios.h>
      |          ^~~~~~~~~~~
[14/51] Compiling fy-doc.c
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-path.c:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/lib/fy-parse.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-ctype.h:20:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utf8.h:20:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.h:19:10: fatal error: 'termios.h' file not found
   19 | #include <termios.h>
      |          ^~~~~~~~~~~
[14/51] Compiling fy-path.c
[14/51] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/39] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-blob.c:18:
In file included from /host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-blob.h:47:
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-endian.h:24:3: error: unsupported platform
   24 | # error unsupported platform
      |   ^
1 error generated.
[14/39] Compiling fy-blob.c
[14/39] Compiling fy-utf8.c
[14/39] Compiling _NumericsShims _NumericsShims.c
[14/39] Compiling fy-ctype.c
[14/39] Compiling fy-walk.c
[14/39] Compiling xxhash.c
/host/spi-builder-workspace/.build/checkouts/PotentCodables/Sources/Cfyaml/src/util/fy-utils.c:18:10: fatal error: 'termios.h' file not found
   18 | #include <termios.h>
      |          ^~~~~~~~~~~
[14/39] Compiling fy-utils.c
[14/39] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm