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 main (d60444), with Swift 6.1 for Wasm on 29 May 2025 10:30:11 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/vapor/mysql-nio.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/vapor/mysql-nio
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d60444d Avoid double-logging queries (#110)
Cloned https://github.com/vapor/mysql-nio.git
Revision (git rev-parse @):
d60444dc7b1525000eb443baa08bf79f059202ad
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor/mysql-nio.git at main
========================================
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-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" : [
        "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.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/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/3836] Fetching swift-log
[3837/17772] Fetching swift-log, swift-crypto
[5649/32615] Fetching swift-log, swift-crypto, swift-nio-ssl
[5790/108708] Fetching swift-log, swift-crypto, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.75s)
[71799/93865] Fetching swift-log, swift-crypto, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (7.02s)
Fetched https://github.com/apple/swift-crypto.git from cache (7.04s)
Fetched https://github.com/apple/swift-nio.git from cache (7.12s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (7.57s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.31.0 (0.59s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (0.72s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1710] Fetching swift-atomics
[532/6101] Fetching swift-atomics, swift-system
[5071/22692] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.50s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.50s)
[4480/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.19s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.73s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.46s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.61s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (5.13s)
Fetching https://github.com/apple/swift-asn1.git
[1/1590] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (4.23s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (6.52s)
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
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.3
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.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.31.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.5.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Building for debugging...
[0/786] Write sources
[5/786] Compiling aesv8-armv8-apple.S
[6/786] Write sources
[8/786] Compiling co-586-apple.S
[8/786] Compiling p256-armv8-asm-win.S
[10/786] Write sources
[18/786] Compiling CNIOWindows WSAStartup.c
[19/786] Compiling CNIOWindows shim.c
[20/786] Compiling _AtomicsShims.c
[21/786] Compiling CNIOWASI CNIOWASI.c
[22/786] Compiling CNIOLinux shim.c
[23/786] Compiling CNIODarwin shim.c
[24/786] Compiling CNIOLinux liburing_shims.c
[25/786] Compiling fiat_p256_adx_mul.S
[26/786] Compiling fiat_p256_adx_sqr.S
[27/786] Compiling fiat_curve25519_adx_mul.S
[28/786] Compiling fiat_curve25519_adx_square.S
[29/786] Compiling evp_ctx.cc
[30/786] Compiling chacha.cc
[31/786] Write swift-version-24593BA9C3E375BF.txt
[32/786] Compiling CNIOBoringSSLShims shims.c
[33/786] Compiling p_dh.cc
[34/792] Compiling t_x509.cc
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.
[35/797] Compiling tls13_enc.cc
[36/797] Emitting module _NIODataStructures
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.
[36/797] Compiling tls_method.cc
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>
      |          ^~~~~~~~~~~
[36/797] 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>
      |          ^~~~~~~~~~~
[36/797] 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>
      |          ^~~~~~~~~~~
[36/797] Compiling tls13_server.cc
[37/797] Emitting module _NIOBase64
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...
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.
[0/752] Compiling tls_method.cc
[0/752] Compiling t1_enc.cc
[0/752] Write swift-version-24593BA9C3E375BF.txt
[0/752] Compiling tls13_enc.cc
[0/752] Compiling tls13_server.cc
[0/752] Compiling tls13_both.cc
[0/752] Compiling tls_record.cc
[0/752] Compiling tls13_client.cc
BUILD FAILURE 6.1 wasm