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 RealmSwiftMacro, reference main (ad8252), with Swift 6.1 for Wasm on 28 May 2025 20:37:18 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/fummicc1/RealmSwiftMacro.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/fummicc1/RealmSwiftMacro
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ad82526 fix: remove unused param (#6)
Cloned https://github.com/fummicc1/RealmSwiftMacro.git
Revision (git rev-parse @):
ad82526cc08287d9b48895aef76fa7027621c464
SUCCESS checkout https://github.com/fummicc1/RealmSwiftMacro.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fummicc1/RealmSwiftMacro.git
https://github.com/fummicc1/RealmSwiftMacro.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "509.0.0-swift-5.9-DEVELOPMENT-SNAPSHOT-2023-04-25-b",
            "upper_bound" : "510.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    },
    {
      "identity" : "realm-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "10.42.0",
            "upper_bound" : "11.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/realm/realm-swift"
    }
  ],
  "manifest_display_name" : "RealmSwiftMacro",
  "name" : "RealmSwiftMacro",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "RealmSwiftMacro",
      "targets" : [
        "RealmSwiftMacro"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RealmSwiftMacroClient",
      "targets" : [
        "RealmSwiftMacroClient"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "RealmSwiftMacroMacros",
      "targets" : [
        "RealmSwiftMacroMacros"
      ],
      "type" : {
        "macro" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RealmSwiftMacroTests",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwiftMacroTests",
      "path" : "Tests/RealmSwiftMacroTests",
      "product_dependencies" : [
        "SwiftSyntaxMacrosTestSupport"
      ],
      "sources" : [
        "RealmSwiftMacroTests.swift"
      ],
      "target_dependencies" : [
        "RealmSwiftMacroMacros"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RealmSwiftMacroMacros",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwiftMacroMacros",
      "path" : "Sources/RealmSwiftMacroMacros",
      "product_dependencies" : [
        "SwiftSyntaxMacros",
        "SwiftCompilerPlugin"
      ],
      "product_memberships" : [
        "RealmSwiftMacro",
        "RealmSwiftMacroClient",
        "RealmSwiftMacroMacros"
      ],
      "sources" : [
        "RealmModelMacro.swift",
        "RealmSwiftMacroMacro.swift"
      ],
      "type" : "macro"
    },
    {
      "c99name" : "RealmSwiftMacroClient",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwiftMacroClient",
      "path" : "Sources/RealmSwiftMacroClient",
      "product_dependencies" : [
        "RealmSwift"
      ],
      "product_memberships" : [
        "RealmSwiftMacroClient"
      ],
      "sources" : [
        "SNS.swift",
        "Todo.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "RealmSwiftMacro"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "RealmSwiftMacro",
      "module_type" : "SwiftTarget",
      "name" : "RealmSwiftMacro",
      "path" : "Sources/RealmSwiftMacro",
      "product_dependencies" : [
        "RealmSwift"
      ],
      "product_memberships" : [
        "RealmSwiftMacro",
        "RealmSwiftMacroClient"
      ],
      "sources" : [
        "RealmSwiftMacro.swift"
      ],
      "target_dependencies" : [
        "RealmSwiftMacroMacros"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/apple/swift-syntax.git
Fetching https://github.com/realm/realm-swift
[1/70449] Fetching swift-syntax
[2819/201717] Fetching swift-syntax, realm-swift
Fetched https://github.com/apple/swift-syntax.git from cache (16.42s)
Fetched https://github.com/realm/realm-swift from cache (16.60s)
Computing version for https://github.com/realm/realm-swift
Computed https://github.com/realm/realm-swift at 10.54.4 (19.46s)
Fetching https://github.com/realm/realm-core.git
[1/252487] Fetching realm-core
Fetched https://github.com/realm/realm-core.git from cache (32.84s)
Computing version for https://github.com/realm/realm-core.git
Computed https://github.com/realm/realm-core.git at 14.14.0 (34.31s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (1.43s)
Creating working copy for https://github.com/realm/realm-core.git
Working copy of https://github.com/realm/realm-core.git resolved at 14.14.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/realm/realm-swift
Working copy of https://github.com/realm/realm-swift resolved at 10.54.4
Building for debugging...
[0/331] Compiling Bid bid128.c
[1/331] Compiling Bid bid128_2_str_tables.c
[2/331] Write sources
[15/331] Compiling Bid bid128_div.c
[16/331] Compiling Bid bid128_add.c
[17/331] Write swift-version-24593BA9C3E375BF.txt
[18/331] Compiling mathlimits.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2region.cc:3:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2region.h:6:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2.h:27:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[19/333] Compiling s2geometry s2region.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[19/333] Compiling interprocess_mutex.cpp
[20/333] Emitting module SwiftSyntax509
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/util/math/mathutil.cc:11:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/util/math/mathutil.h:21:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[20/333] Compiling mathutil.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/sync/client.cpp:1:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/sync/client.hpp:12:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/future.hpp:371:10: error: no type named 'mutex' in namespace 'std'
  371 |     std::mu[20/333] Compiling client.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2r2rect.cc:3:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2r2rect.h:7:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
[20/333] Compiling s2geometry s2r2rect.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
[20/333] Compiling config.cpp
[20/333] Compiling interprocess_condvar.cpp
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...
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2polyline.cc:10:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2.h:27:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/base/logging.h:18:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/logger.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/thread.hpp:40:10: fatal error: 'pthread.h' file not found
   40 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[0/313] Compiling s2geometry s2polyline.cc
[0/313] Compiling mathutil.cc
[0/313] Compiling s2geometry s2polygonbuilder.cc
[0/313] Write swift-version-24593BA9C3E375BF.txt
[0/313] Compiling s2geometry s2region.cc
[0/313] Compiling s2geometry s2r2rect.cc
[0/313] Compiling s2geometry s2pointregion.cc
[0/313] Compiling s2geometry s2polygon.cc
BUILD FAILURE 6.1 wasm