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 MastodonSwift, reference main (e2f7ce), with Swift 6.1 for Wasm on 28 May 2025 12:37:55 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/Swiftodon/Mastodon.swift.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/Swiftodon/Mastodon.swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e2f7ce4 Merge pull request #39 from daniloc/main
Cloned https://github.com/Swiftodon/Mastodon.swift.git
Revision (git rev-parse @):
e2f7ce484729078315f96baf9331009f0178d68f
SUCCESS checkout https://github.com/Swiftodon/Mastodon.swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Swiftodon/Mastodon.swift.git
https://github.com/Swiftodon/Mastodon.swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "oauthswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OAuthSwift/OAuthSwift.git"
    }
  ],
  "manifest_display_name" : "MastodonSwift",
  "name" : "MastodonSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "MastodonSwift",
      "targets" : [
        "MastodonSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MastodonSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "MastodonSwiftTests",
      "path" : "Tests/MastodonSwiftTests",
      "sources" : [
        "MastodonClientTests.swift",
        "Mocking/MockURLProcotol.swift",
        "Mocking/MockURLSession.swift",
        "Mocking/Responses/CreateAppMockResponse.swift",
        "Mocking/Responses/GetAuthenticateMockResponse.swift",
        "Mocking/Responses/GetHomeTimelineMockResponse.swift"
      ],
      "target_dependencies" : [
        "MastodonSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MastodonSwift",
      "module_type" : "SwiftTarget",
      "name" : "MastodonSwift",
      "path" : "Sources/MastodonSwift",
      "product_dependencies" : [
        "OAuthSwift"
      ],
      "product_memberships" : [
        "MastodonSwift"
      ],
      "sources" : [
        "Entities/AccessToken.swift",
        "Entities/Account.swift",
        "Entities/App.swift",
        "Entities/Application.swift",
        "Entities/Attachment.swift",
        "Entities/Card.swift",
        "Entities/Context.swift",
        "Entities/Error.swift",
        "Entities/Instance.swift",
        "Entities/Markers.swift",
        "Entities/Mention.swift",
        "Entities/Notification.swift",
        "Entities/Relationship.swift",
        "Entities/Report.swift",
        "Entities/Result.swift",
        "Entities/Status.swift",
        "Entities/Tag.swift",
        "Extensions/Primitive+AsString.swift",
        "Extensions/String+AsURL.swift",
        "Extensions/URL+OptionalString.swift",
        "MastodonClient+Accounts.swift",
        "MastodonClient+Convenience.swift",
        "MastodonClient+Instances.swift",
        "MastodonClient+StatusActions.swift",
        "MastodonClient.swift",
        "Networking/MultipartFormData.swift",
        "Networking/TargetType.swift",
        "Targets/Accounts.swift",
        "Targets/Apps.swift",
        "Targets/Blocks.swift",
        "Targets/Favourites.swift",
        "Targets/FollowRequests.swift",
        "Targets/Follows.swift",
        "Targets/Instances.swift",
        "Targets/Marker.swift",
        "Targets/Mastodon.swift",
        "Targets/Media.swift",
        "Targets/Mutes.swift",
        "Targets/Notifications.swift",
        "Targets/OAuth.swift",
        "Targets/Reports.swift",
        "Targets/Search.swift",
        "Targets/Statuses.swift",
        "Targets/Timelines.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/OAuthSwift/OAuthSwift.git
[1/5134] Fetching oauthswift
Fetched https://github.com/OAuthSwift/OAuthSwift.git from cache (0.59s)
Computing version for https://github.com/OAuthSwift/OAuthSwift.git
Computed https://github.com/OAuthSwift/OAuthSwift.git at 2.2.0 (1.25s)
Fetching https://github.com/tid-kijyun/Kanna.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/phimage/Erik.git
Fetching https://github.com/httpswift/swifter.git
[1/6050] Fetching swifter
[1332/6692] Fetching swifter, erik
[2216/9049] Fetching swifter, erik, kanna
[4997/22985] Fetching swifter, erik, kanna, swift-crypto
Fetched https://github.com/phimage/Erik.git from cache (0.89s)
[12310/22343] Fetching swifter, kanna, swift-crypto
Fetched https://github.com/httpswift/swifter.git from cache (0.92s)
[6678/16293] Fetching kanna, swift-crypto
Fetched https://github.com/tid-kijyun/Kanna.git from cache (1.82s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.85s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.5.0 (3.83s)
Computing version for https://github.com/phimage/Erik.git
Computed https://github.com/phimage/Erik.git at 5.1.0 (0.62s)
Fetching https://github.com/Thomvis/BrightFutures.git
Fetching https://github.com/nvzqz/FileKit.git
[1/3123] Fetching filekit
[1844/7190] Fetching filekit, brightfutures
Fetched https://github.com/nvzqz/FileKit.git from cache (1.14s)
Fetched https://github.com/Thomvis/BrightFutures.git from cache (1.69s)
Computing version for https://github.com/nvzqz/FileKit.git
Computed https://github.com/nvzqz/FileKit.git at 6.1.0 (2.79s)
Computing version for https://github.com/Thomvis/BrightFutures.git
Computed https://github.com/Thomvis/BrightFutures.git at 8.2.0 (1.53s)
Computing version for https://github.com/tid-kijyun/Kanna.git
Computed https://github.com/tid-kijyun/Kanna.git at 5.3.0 (0.87s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 1.1.7 (1.02s)
Creating working copy for https://github.com/tid-kijyun/Kanna.git
Working copy of https://github.com/tid-kijyun/Kanna.git resolved at 5.3.0
Creating working copy for https://github.com/nvzqz/FileKit.git
Working copy of https://github.com/nvzqz/FileKit.git resolved at 6.1.0
Creating working copy for https://github.com/OAuthSwift/OAuthSwift.git
Working copy of https://github.com/OAuthSwift/OAuthSwift.git resolved at 2.2.0
Creating working copy for https://github.com/phimage/Erik.git
Working copy of https://github.com/phimage/Erik.git resolved at 5.1.0
Creating working copy for https://github.com/Thomvis/BrightFutures.git
Working copy of https://github.com/Thomvis/BrightFutures.git resolved at 8.2.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 1.1.7
Creating working copy for https://github.com/httpswift/swifter.git
Working copy of https://github.com/httpswift/swifter.git resolved at 1.5.0
Building for debugging...
[0/409] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/ec/oct.c:73:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/ec/internal.h:78:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/ec/../bn/internal.h:135:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/ec/../bn/../../internal.h:134:10: fatal error: 'pthread.h' file not found
  134 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[3/409] Compiling oct.c
[3/409] Compiling aesni-gcm-x86_64.mac.x86_64.S
[3/409] Compiling a_bool.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/bn/add.c:64:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/bn/internal.h:135:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/bn/../../internal.h:134:10: fatal error: 'pthread.h' file not found
  134 | #include <pthread.h>
      |          ^~~~~~~~~~~
[3/409] Compiling add.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/asn1/a_bitstr.c:65:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/asn1/../internal.h:134:10: fatal error: 'pthread.h' file not found
  134 | #include <pthread.h>
      |          ^~~~~~~~~~~
[3/409] Compiling a_dup.c
[3/409] Compiling a_bitstr.c
[3/409] Compiling a_d2i_fp.c
[3/409] 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
[0/1] Planning build
Building for debugging...
[0/406] Compiling v3_skey.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/v3_purp.c:70:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/../internal.h:134:10: fatal error: 'pthread.h' file not found
  134 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[1/406] Compiling v3_purp.c
[159/406] Compiling v3_pcia.c
[368/406] Compiling v3_prn.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/v3_utl.c:73:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/../internal.h:134:10: fatal error: 'pthread.h' file not found
  134 | #include <pthread.h>
      |          ^~~~~~~~~~~
[369/406] Compiling v3_utl.c
[372/406] Compiling v3_pmaps.c
[372/406] Compiling v3_pcons.c
[372/406] Compiling CCryptoBoringSSLShims shims.c
[405/406] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm