The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ObjectAssociation, reference 0.5.0 (93806c), with Swift 6.1 for Wasm on 29 May 2025 03:48:36 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/p-x9/swift-object-association.git
Reference: 0.5.0
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/p-x9/swift-object-association
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 93806cf Merge pull request #10 from p-x9/version/0.5.0
Cloned https://github.com/p-x9/swift-object-association.git
Revision (git rev-parse @):
93806cfecae1f198c894ed5585b93aff0e2d1f5a
SUCCESS checkout https://github.com/p-x9/swift-object-association.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/p-x9/swift-object-association.git
https://github.com/p-x9/swift-object-association.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "c_language_standard" : "c17",
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "ObjectAssociation",
  "name" : "ObjectAssociation",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ObjectAssociation",
      "targets" : [
        "ObjectAssociation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftRetain",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRetain",
      "path" : "Sources/SwiftRetain",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Retain.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationTests",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationTests",
      "path" : "Tests/ObjectAssociationTests",
      "sources" : [
        "Model/ClassItem.swift",
        "ObjectAssociationTests.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociation",
        "ObjectAssociationRuntime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ObjectAssociationRuntimeC",
      "module_type" : "ClangTarget",
      "name" : "ObjectAssociationRuntimeC",
      "path" : "Sources/ObjectAssociationRuntimeC",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "associated.cpp",
        "reference/reference.cpp"
      ],
      "target_dependencies" : [
        "SwiftRetain"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociationRuntime",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociationRuntime",
      "path" : "Sources/ObjectAssociationRuntime",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "ObjectAssociationRuntime.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntimeC"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ObjectAssociation",
      "module_type" : "SwiftTarget",
      "name" : "ObjectAssociation",
      "path" : "Sources/ObjectAssociation",
      "product_memberships" : [
        "ObjectAssociation"
      ],
      "sources" : [
        "Model/Policy.swift",
        "Model/Ref.swift",
        "ObjectAssociation.swift",
        "Util.swift"
      ],
      "target_dependencies" : [
        "ObjectAssociationRuntime"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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
Building for debugging...
[0/6] Write sources
[3/6] Write swift-version-24593BA9C3E375BF.txt
[5/8] Emitting module SwiftRetain
[6/8] Compiling SwiftRetain Retain.swift
[7/9] Compiling ObjectAssociationRuntimeC associated.cpp
/host/spi-builder-workspace/Sources/ObjectAssociationRuntimeC/reference/reference.cpp:89:17: error: no type named 'mutex' in namespace 'std'
   89 |     static std::mutex AssociationsManagerLock;
      |            ~~~~~^
/host/spi-builder-workspace/Sources/ObjectAssociationRuntimeC/reference/reference.cpp:106:6: error: no type named 'mutex' in namespace 'std'
  106 | std::mutex AssociationsManager::AssociationsManagerLock;
      | ~~~~~^
2 errors generated.
[8/9] Compiling reference.cpp
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...
[0/3] Write swift-version-24593BA9C3E375BF.txt
[2/5] Emitting module SwiftRetain
[3/5] Compiling SwiftRetain Retain.swift
/host/spi-builder-workspace/Sources/ObjectAssociationRuntimeC/reference/reference.cpp:89:17: error: no type named 'mutex' in namespace 'std'
   89 |     static std::mutex AssociationsManagerLock;
      |            ~~~~~^
/host/spi-builder-workspace/Sources/ObjectAssociationRuntimeC/reference/reference.cpp:106:6: error: no type named 'mutex' in namespace 'std'
  106 | std::mutex AssociationsManager::AssociationsManagerLock;
      | ~~~~~^
2 errors generated.
[4/5] Compiling reference.cpp
BUILD FAILURE 6.1 wasm