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 Crypto, reference 3.4.1 (105c2f), with Swift 6.1 for Wasm on 27 May 2025 18:36:33 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/vapor/open-crypto.git
Reference: 3.4.1
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/vapor/open-crypto
 * tag               3.4.1      -> FETCH_HEAD
HEAD is now at 105c2f8 fix openssl 1.0 / 1.1 error
Cloned https://github.com/vapor/open-crypto.git
Revision (git rev-parse @):
105c2f875588bf40dd24c00cef3644bf8e327770
SUCCESS checkout https://github.com/vapor/open-crypto.git at 3.4.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor/open-crypto.git
https://github.com/vapor/open-crypto.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/core.git"
    },
    {
      "identity" : "swift-nio-ssl-support",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl-support.git"
    }
  ],
  "manifest_display_name" : "Crypto",
  "name" : "Crypto",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Crypto",
      "targets" : [
        "Crypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Random",
      "targets" : [
        "Random"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RandomTests",
      "module_type" : "SwiftTarget",
      "name" : "RandomTests",
      "path" : "Tests/RandomTests",
      "sources" : [
        "RandomTests.swift"
      ],
      "target_dependencies" : [
        "Random"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Random",
      "module_type" : "SwiftTarget",
      "name" : "Random",
      "path" : "Sources/Random",
      "product_dependencies" : [
        "Bits"
      ],
      "product_memberships" : [
        "Crypto",
        "Random"
      ],
      "sources" : [
        "Array+Random.swift",
        "OSRandom.swift",
        "RandomProtocol.swift",
        "URandom.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CryptoTests",
      "module_type" : "SwiftTarget",
      "name" : "CryptoTests",
      "path" : "Tests/CryptoTests",
      "sources" : [
        "BCryptTests.swift",
        "CipherTests.swift",
        "MD5Tests.swift",
        "OTPTests.swift",
        "RSATests.swift",
        "SHA1Tests.swift",
        "SHA2Tests.swift"
      ],
      "target_dependencies" : [
        "Crypto"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Crypto",
      "module_type" : "SwiftTarget",
      "name" : "Crypto",
      "path" : "Sources/Crypto",
      "product_dependencies" : [
        "Async",
        "Bits",
        "Core",
        "COperatingSystem",
        "Debugging"
      ],
      "product_memberships" : [
        "Crypto"
      ],
      "sources" : [
        "BCrypt/BCryptDigest.swift",
        "Cipher/AuthenticatedCipher.swift",
        "Cipher/AuthenticatedCipherAlgorithm.swift",
        "Cipher/Cipher.swift",
        "Cipher/CipherAlgorithm.swift",
        "Cipher/OpenSSLCipherAlgorithm.swift",
        "Cipher/OpenSSLStreamCipher.swift",
        "Digest/Digest.swift",
        "Digest/DigestAlgorithm.swift",
        "MAC/HMAC.swift",
        "MAC/OTP.swift",
        "RSA/RSA.swift",
        "RSA/RSAKey.swift",
        "RSA/RSAPadding.swift",
        "Random/CryptoRandom.swift",
        "Utilities/Base32.swift",
        "Utilities/CryptoError.swift",
        "Utilities/Deprecated.swift",
        "Utilities/Exports.swift"
      ],
      "target_dependencies" : [
        "CBase32",
        "CBcrypt",
        "CCryptoOpenSSL",
        "Random"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CCryptoOpenSSL",
      "module_type" : "ClangTarget",
      "name" : "CCryptoOpenSSL",
      "path" : "Sources/CCryptoOpenSSL",
      "product_memberships" : [
        "Crypto"
      ],
      "sources" : [
        "shim.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CBcrypt",
      "module_type" : "ClangTarget",
      "name" : "CBcrypt",
      "path" : "Sources/CBcrypt",
      "product_memberships" : [
        "Crypto"
      ],
      "sources" : [
        "bcrypt.c",
        "blf.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CBase32",
      "module_type" : "ClangTarget",
      "name" : "CBase32",
      "path" : "Sources/CBase32",
      "product_memberships" : [
        "Crypto"
      ],
      "sources" : [
        "base32.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/vapor/core.git
Fetching https://github.com/apple/swift-nio-ssl-support.git
[1/16] Fetching swift-nio-ssl-support
[17/20159] Fetching swift-nio-ssl-support, core
Fetched https://github.com/apple/swift-nio-ssl-support.git from cache (0.90s)
Fetched https://github.com/vapor/core.git from cache (0.93s)
Computing version for https://github.com/apple/swift-nio-ssl-support.git
Computed https://github.com/apple/swift-nio-ssl-support.git at 1.0.0 (1.80s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 3.10.1 (0.63s)
Fetching https://github.com/apple/swift-nio.git
[1/76055] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.51s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (5.51s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.25s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.86s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-nio-ssl-support.git
Working copy of https://github.com/apple/swift-nio-ssl-support.git resolved at 1.0.0
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 3.10.1
warning: 'swift-nio-ssl-support': ignoring declared target(s) 'swift-nio-ssl-support' in the system package
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
warning: 'spi-builder-workspace': dependency 'swift-nio-ssl-support' is not used by any target
warning: couldn't find pc file for openssl
warning: couldn't find pc file for openssl
Building for debugging...
[0/21] Write sources
[9/21] Compiling CNIOLinux shim.c
In file included from /host/spi-builder-workspace/Sources/CCryptoOpenSSL/shim.c:1:
/host/spi-builder-workspace/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h:4:10: fatal error: 'openssl/conf.h' file not found
    4 | #include <openssl/conf.h>
      |          ^~~~~~~~~~~~~~~~
1 error generated.
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOSHA1/c_nio_sha1.c:47:10: fatal error: 'sys/cdefs.h' file not found
   47 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
1 error generated.
[10/21] Compiling CNIOSHA1 c_nio_sha1.c
[10/21] Compiling CCryptoOpenSSL shim.c
[10/21] Compiling CNIOLinux ifaddrs-android.c
[10/21] Compiling c-atomics.c
[10/21] Compiling CNIODarwin shim.c
[10/21] Compiling CBcrypt bcrypt.c
[10/21] Compiling CBase32 base32.c
[10/21] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
warning: 'swift-nio-ssl-support': ignoring declared target(s) 'swift-nio-ssl-support' in the system package
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
warning: 'spi-builder-workspace': dependency 'swift-nio-ssl-support' is not used by any target
warning: couldn't find pc file for openssl
warning: couldn't find pc file for openssl
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/CCryptoOpenSSL/shim.c:1:
/host/spi-builder-workspace/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h:4:10: fatal error: 'openssl/conf.h' file not found
    4 | #include <openssl/conf.h>
      |          ^~~~~~~~~~~~~~~~
1 error generated.
[0/11] Compiling CCryptoOpenSSL shim.c
[0/11] Compiling CNIODarwin shim.c
[0/11] Compiling CBcrypt blf.c
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOSHA1/c_nio_sha1.c:47:10: fatal error: 'sys/cdefs.h' file not found
   47 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
[0/11] Compiling CNIOSHA1 c_nio_sha1.c
[0/11] Compiling c-atomics.c
[0/11] Compiling CBcrypt bcrypt.c
[0/11] Compiling CNIOLinux ifaddrs-android.c
[0/11] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm