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 SwiftBox, reference 1.0.1 (e69b51), with Swift 6.1 for Wasm on 28 May 2025 14:37:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/allegro/swiftbox.git
Reference: 1.0.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/allegro/swiftbox
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at e69b51b Bumps dependencies (#13)
Cloned https://github.com/allegro/swiftbox.git
Revision (git rev-parse @):
e69b51b85c1710f4d1eaa4ddb121afa63369482f
SUCCESS checkout https://github.com/allegro/swiftbox.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/allegro/swiftbox.git
https://github.com/allegro/swiftbox.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.23.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl"
    },
    {
      "identity" : "swift-metrics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics.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-junit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/allegro/swift-junit.git"
    }
  ],
  "manifest_display_name" : "SwiftBox",
  "name" : "SwiftBox",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "SwiftBoxLogging",
      "targets" : [
        "SwiftBoxLogging"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "SwiftBoxMetrics",
      "targets" : [
        "SwiftBoxMetrics"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "SwiftBoxConfig",
      "targets" : [
        "SwiftBoxConfig"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftBoxMetricsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBoxMetricsTests",
      "path" : "Tests/SwiftBoxMetricsTests",
      "product_dependencies" : [
        "SwiftTestReporter"
      ],
      "sources" : [
        "MetricTypesTests.swift",
        "StatsDHandlersTests.swift",
        "TCPStatsDClientTests.swift",
        "UDPStatsDClientTests+Helpers.swift",
        "UDPStatsDClientTests.swift"
      ],
      "target_dependencies" : [
        "SwiftBoxMetrics"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftBoxMetrics",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBoxMetrics",
      "path" : "Sources/SwiftBoxMetrics",
      "product_dependencies" : [
        "Metrics"
      ],
      "product_memberships" : [
        "SwiftBoxMetrics"
      ],
      "sources" : [
        "BaseMetricsSender.swift",
        "LoggerHandler/LoggerHandler.swift",
        "MetricTypes.swift",
        "StatsDFactory.swift",
        "StatsDHandler/StatsDClient.swift",
        "StatsDHandler/StatsDHandler.swift",
        "StatsDHandler/TCPStatsDClient.swift",
        "StatsDHandler/UDPStatsDClient.swift"
      ],
      "target_dependencies" : [
        "SwiftBoxLogging"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftBoxLoggingTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBoxLoggingTests",
      "path" : "Tests/SwiftBoxLoggingTests",
      "product_dependencies" : [
        "SwiftTestReporter"
      ],
      "sources" : [
        "LoggingTests.swift"
      ],
      "target_dependencies" : [
        "SwiftBoxLogging"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftBoxLogging",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBoxLogging",
      "path" : "Sources/SwiftBoxLogging",
      "product_dependencies" : [
        "NIOSSL",
        "Logging"
      ],
      "product_memberships" : [
        "SwiftBoxLogging",
        "SwiftBoxMetrics",
        "SwiftBoxConfig"
      ],
      "sources" : [
        "ElasticsearchLogHandler.swift",
        "ElasticsearchPayload.swift",
        "LoggerProtocol.swift",
        "LoggingManager.swift",
        "PrintLogger.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftBoxConfigTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBoxConfigTests",
      "path" : "Tests/SwiftBoxConfigTests",
      "product_dependencies" : [
        "SwiftTestReporter"
      ],
      "sources" : [
        "ConfigManagerTests.swift",
        "ConfigurationTests.swift",
        "FlatDictParserTests.swift",
        "SourcesTests.swift"
      ],
      "target_dependencies" : [
        "SwiftBoxConfig"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftBoxConfig",
      "module_type" : "SwiftTarget",
      "name" : "SwiftBoxConfig",
      "path" : "Sources/SwiftBoxConfig",
      "product_memberships" : [
        "SwiftBoxConfig"
      ],
      "sources" : [
        "BasicKey.swift",
        "ConfigManager.swift",
        "DictionaryDecoder.swift",
        "EnvParser.swift",
        "KeyPathReferenceable/Array+KeyPathReferencable.swift",
        "KeyPathReferenceable/Dictionary+KeyPathReferencable.swift",
        "KeyPathReferenceable/KeyPathReferenceable.swift",
        "Sources.swift"
      ],
      "target_dependencies" : [
        "SwiftBoxLogging"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/allegro/swift-junit.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-ssl
Fetching https://github.com/apple/swift-metrics.git
[1/235] Fetching swift-junit
[236/4071] Fetching swift-junit, swift-log
[390/6277] Fetching swift-junit, swift-log, swift-metrics
[6278/21120] Fetching swift-junit, swift-log, swift-metrics, swift-nio-ssl
Fetched https://github.com/apple/swift-log.git from cache (0.41s)
Fetched https://github.com/apple/swift-metrics.git from cache (0.41s)
[1868/15078] Fetching swift-junit, swift-nio-ssl
Fetched https://github.com/allegro/swift-junit.git from cache (1.50s)
Fetched https://github.com/apple/swift-nio-ssl from cache (1.52s)
Computing version for https://github.com/allegro/swift-junit.git
Computed https://github.com/allegro/swift-junit.git at 2.1.0 (2.29s)
Fetching https://github.com/alexaubry/HTMLString.git
[1/1631] Fetching htmlstring
Fetched https://github.com/alexaubry/HTMLString.git from cache (0.52s)
Computing version for https://github.com/alexaubry/HTMLString.git
Computed https://github.com/alexaubry/HTMLString.git at 5.0.0 (3.73s)
Computing version for https://github.com/apple/swift-nio-ssl
Computed https://github.com/apple/swift-nio-ssl at 2.31.0 (0.87s)
Fetching https://github.com/apple/swift-nio.git
[1/76084] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (7.36s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (8.84s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/4391] Fetching swift-system
[704/6101] Fetching swift-system, swift-atomics
[2333/22692] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.93s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.94s)
Fetched https://github.com/apple/swift-collections.git from cache (1.97s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.78s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.82s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.93s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.79s)
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/allegro/swift-junit.git
Working copy of https://github.com/allegro/swift-junit.git resolved at 2.1.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.7.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.4.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/alexaubry/HTMLString.git
Working copy of https://github.com/alexaubry/HTMLString.git resolved at 5.0.0
Creating working copy for https://github.com/apple/swift-nio-ssl
Working copy of https://github.com/apple/swift-nio-ssl resolved at 2.31.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.0
Building for debugging...
[0/452] Compiling a_dup.cc
[1/452] Compiling a_i2d_fp.cc
[2/452] Write sources
[4/452] Compiling _AtomicsShims.c
[5/452] Write sources
[20/452] Compiling CNIOWindows shim.c
[21/452] Compiling CNIOWindows WSAStartup.c
[22/452] Compiling CNIOWASI CNIOWASI.c
[23/452] Compiling asn_pack.cc
[24/452] Compiling CNIOLinux shim.c
[25/452] Compiling CNIOLinux liburing_shims.c
[26/452] Compiling CNIODarwin shim.c
[27/452] Compiling asn1_par.cc
[28/452] Compiling a_d2i_fp.cc
[29/452] Compiling fiat_p256_adx_sqr.S
[30/452] Compiling fiat_p256_adx_mul.S
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/a_bitstr.cc:18:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/../internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[31/452] Compiling a_bitstr.cc
[31/452] Compiling fiat_curve25519_adx_square.S
[31/452] Compiling tls_record.cc
[31/452] Compiling CNIOBoringSSLShims shims.c
[31/452] Compiling fiat_curve25519_adx_mul.S
[31/452] Compiling a_gentm.cc
[31/452] Compiling a_bool.cc
[31/452] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/421] Write sources
[1/421] Compiling fiat_curve25519_adx_square.S
[2/421] Compiling fiat_curve25519_adx_mul.S
[3/421] Write swift-version-24593BA9C3E375BF.txt
[4/421] Compiling CNIOBoringSSLShims shims.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>
      |          ^~~~~~~~~~~
1 error generated.
[5/425] Compiling tls13_client.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_both.cc:29:
/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>
      |          ^~~~~~~~~~~
[5/425] Compiling tls13_both.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>
      |          ^~~~~~~~~~~
[5/425] Compiling tls13_enc.cc
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>
      |          ^~~~~~~~~~~
[5/425] Compiling tls_method.cc
[5/425] Compiling t1_enc.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>
      |          ^~~~~~~~~~~
[5/425] Compiling tls13_server.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>
      |          ^~~~~~~~~~~
[5/425] Compiling tls_record.cc
BUILD FAILURE 6.1 wasm