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 mysql-nio, reference 1.8.0 (853b43), with Swift 6.1 for Wasm on 1 Sep 2025 09:43:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor/mysql-nio.git
Reference: 1.8.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/vapor/mysql-nio
 * tag               1.8.0      -> FETCH_HEAD
HEAD is now at 853b434 Finally make non-TLS connections work with modern MySQL (#114)
Cloned https://github.com/vapor/mysql-nio.git
Revision (git rev-parse @):
853b43413941a7fc0cfe44ef0ae81b6dd049f8e5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor/mysql-nio.git at 1.8.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/vapor/mysql-nio.git
https://github.com/vapor/mysql-nio.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-algorithms.git"
    },
    {
      "identity" : "swift-crypto",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-crypto.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.14.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl.git"
    }
  ],
  "manifest_display_name" : "mysql-nio",
  "name" : "mysql-nio",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "MySQLNIO",
      "targets" : [
        "MySQLNIO"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MySQLNIOTests",
      "module_type" : "SwiftTarget",
      "name" : "MySQLNIOTests",
      "path" : "Tests/MySQLNIOTests",
      "sources" : [
        "MySQLNIOTests.swift",
        "Utilities.swift"
      ],
      "target_dependencies" : [
        "MySQLNIO"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MySQLNIO",
      "module_type" : "SwiftTarget",
      "name" : "MySQLNIO",
      "path" : "Sources/MySQLNIO",
      "product_dependencies" : [
        "Algorithms",
        "_CryptoExtras",
        "Crypto",
        "Logging",
        "NIO",
        "NIOSSL"
      ],
      "product_memberships" : [
        "MySQLNIO"
      ],
      "sources" : [
        "Exports.swift",
        "MySQLConnection.swift",
        "MySQLConnectionHandler.swift",
        "MySQLData.swift",
        "MySQLDataConvertible.swift",
        "MySQLDatabase.swift",
        "MySQLError.swift",
        "MySQLQueryCommand.swift",
        "MySQLRow.swift",
        "MySQLSimpleQueryCommand.swift",
        "MySQLTime.swift",
        "Packet/MySQLPacket.swift",
        "Packet/MySQLPacketDecoder.swift",
        "Packet/MySQLPacketEncoder.swift",
        "Packet/MySQLPacketSequence.swift",
        "Protocol/MySQLProtocol+BinaryResultSetRow.swift",
        "Protocol/MySQLProtocol+COM_QUERY.swift",
        "Protocol/MySQLProtocol+COM_QUERY_Response.swift",
        "Protocol/MySQLProtocol+COM_QUIT.swift",
        "Protocol/MySQLProtocol+COM_STMT_CLOSE.swift",
        "Protocol/MySQLProtocol+COM_STMT_EXECUTE.swift",
        "Protocol/MySQLProtocol+COM_STMT_PREPARE.swift",
        "Protocol/MySQLProtocol+COM_STMT_PREPARE_OK.swift",
        "Protocol/MySQLProtocol+CapabilityFlags.swift",
        "Protocol/MySQLProtocol+CharacterSet.swift",
        "Protocol/MySQLProtocol+ColumnDefinition41.swift",
        "Protocol/MySQLProtocol+ColumnFlags.swift",
        "Protocol/MySQLProtocol+DataType.swift",
        "Protocol/MySQLProtocol+ERR_Packet.swift",
        "Protocol/MySQLProtocol+ErrorCode.swift",
        "Protocol/MySQLProtocol+HandshakeResponse41.swift",
        "Protocol/MySQLProtocol+HandshakeV10.swift",
        "Protocol/MySQLProtocol+NullBitmap.swift",
        "Protocol/MySQLProtocol+OK_Packet.swift",
        "Protocol/MySQLProtocol+SSLRequest.swift",
        "Protocol/MySQLProtocol+StatusFlags.swift",
        "Protocol/MySQLProtocol+TextResultSetRow.swift",
        "Protocol/MySQLProtocol.swift",
        "Utilities/CryptoUtils.swift",
        "Utilities/NIOUtils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/3897] Fetching swift-log
[664/20260] Fetching swift-log, swift-crypto
[1460/26228] Fetching swift-log, swift-crypto, swift-algorithms
[7597/41303] Fetching swift-log, swift-crypto, swift-algorithms, swift-nio-ssl
[12507/119249] Fetching swift-log, swift-crypto, swift-algorithms, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (1.06s)
[9075/115352] Fetching swift-crypto, swift-algorithms, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (4.85s)
[76114/100277] Fetching swift-crypto, swift-algorithms, swift-nio
Fetched https://github.com/apple/swift-crypto.git from cache (5.06s)
[62869/83914] Fetching swift-algorithms, swift-nio
Fetched https://github.com/apple/swift-algorithms.git from cache (10.78s)
Fetched https://github.com/apple/swift-nio.git from cache (10.92s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (14.36s)
Fetching https://github.com/apple/swift-numerics.git
[1/6348] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.71s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.0 (1.66s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.84s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.33.0 (1.02s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.86.0 (1.30s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/4941] Fetching swift-system
[249/6749] Fetching swift-system, swift-atomics
[3641/24143] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.83s)
[5809/19202] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.92s)
[4349/17394] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.10s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (3.02s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (0.94s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (1.07s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.0 (2.75s)
Fetching https://github.com/apple/swift-asn1.git
[1/1629] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.67s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (1.57s)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.0
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.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.86.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.33.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.0
Building for debugging...
[0/800] Write sources
[18/800] Compiling _AtomicsShims.c
[19/800] Compiling CNIOWindows WSAStartup.c
[20/800] Compiling CNIOWindows shim.c
[21/800] Compiling CNIOLinux shim.c
[22/800] Compiling _NumericsShims _NumericsShims.c
[22/800] Compiling CNIOWASI CNIOWASI.c
[24/800] Compiling CNIODarwin shim.c
[25/800] Compiling CNIOLinux liburing_shims.c
[26/800] Compiling CNIOPosix event_loop_id.c
[27/800] Compiling fiat_curve25519_adx_mul.S
[28/800] Compiling fiat_p256_adx_mul.S
[29/800] Compiling fiat_p256_adx_sqr.S
[30/800] Compiling fiat_curve25519_adx_square.S
[31/800] Write swift-version-24593BA9C3E375BF.txt
[32/800] Compiling CNIOBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:17:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[33/800] Compiling tls_method.cc
[33/800] Compiling tls13_client.cc
[33/800] Compiling tls_record.cc
[33/800] Compiling tls13_server.cc
[33/800] Compiling t1_enc.cc
[33/800] Compiling tls13_both.cc
[33/800] Compiling tls13_enc.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:34:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/768] Compiling tls13_enc.cc
[0/768] Compiling tls13_both.cc
[0/768] Compiling c-nioatomics.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:17:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/768] Compiling tls_method.cc
[0/768] Compiling c-atomics.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_client.cc:30:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/768] Compiling tls13_client.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:19:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/768] Compiling tls_record.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_server.cc:32:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[0/768] Compiling tls13_server.cc
BUILD FAILURE 6.1 wasm