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 (b98237), with Swift 6.1 for Wasm on 5 Dec 2025 08:08:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.68.0
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 b982377 Fix data-race issue (#7)
Cloned https://github.com/fummicc1/RealmSwiftMacro.git
Revision (git rev-parse @):
b9823777b9a41c60e853e10157fb76c9889422ed
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" : "602.0.0",
            "upper_bound" : "603.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    },
    {
      "identity" : "realm-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "10.54.6",
            "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" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "15.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-4609320-3":/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:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/realm/realm-swift
Fetching https://github.com/apple/swift-syntax.git
[1/131649] Fetching realm-swift
[77308/204664] Fetching realm-swift, swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (12.50s)
Fetched https://github.com/realm/realm-swift from cache (21.02s)
Computing version for https://github.com/realm/realm-swift
Computed https://github.com/realm/realm-swift at 10.54.6 (26.28s)
Fetching https://github.com/realm/realm-core.git
[1/252494] Fetching realm-core
Fetched https://github.com/realm/realm-core.git from cache (23.46s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 602.0.0 (24.40s)
Computing version for https://github.com/realm/realm-core.git
Computed https://github.com/realm/realm-core.git at 14.14.0 (0.89s)
Creating working copy for https://github.com/realm/realm-swift
Working copy of https://github.com/realm/realm-swift resolved at 10.54.6
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 602.0.0
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
Building for debugging...
[0/340] Compiling Bid bid128_mul.c
[1/340] Compiling Bid bid64_to_bid128.c
[2/340] Write sources
[19/340] Compiling _SwiftSyntaxCShims PlatformMutex.c
[20/340] Compiling Bid bid128_string.c
[21/340] Compiling Bid bid128_to_int64.c
[22/340] Compiling Bid bid32_to_bid128.c
[23/340] Compiling Bid bid128_fma.c
[23/340] Write swift-version-24593BA9C3E375BF.txt
[25/340] Compiling mathlimits.cc
[26/342] Compiling Bid bid_binarydecimal.c
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.
[27/344] Compiling s2geometry s2region.cc
[28/344] Emitting module SwiftSyntax601
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
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>
      |          ^~~~~~~~~~~
1 error generated.
[28/344] Compiling s2geometry s2r2rect.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2polygon.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>
      |          ^~~~~~~~~~~
[28/344] Compiling s2geometry s2polygon.cc
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>
      |          ^~~~~~~~~~~
[28/344] Compiling mathutil.cc
[29/344] Emitting module SwiftSyntax602
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2polygonbuilder.cc:3:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2polygonbuilder.h:21:
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>
      |          ^~~~~~~~~~~
[29/344] Compiling s2geometry s2polygonbuilder.cc
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>
      |          ^~~~~~~~~~~
[29/344] Compiling s2geometry s2polyline.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
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/313] Write sources
[0/313] Copying PrivacyInfo.xcprivacy
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.
[4/314] Compiling s2geometry s2region.cc
[4/314] Compiling mathutil.cc
[4/314] Compiling s2geometry s2polyline.cc
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2pointregion.cc:3:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/external/s2/s2pointregion.h:6:
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>
      |          ^~~~~~~~~~~
[4/314] Compiling s2geometry s2pointregion.cc
[4/314] Compiling s2geometry s2r2rect.cc
[4/314] Compiling s2geometry s2loop.cc
[4/314] Compiling s2geometry s2polygon.cc
[4/314] Compiling s2geometry s2polygonbuilder.cc
BUILD FAILURE 6.1 wasm