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

Successful build of BSONSerialization, reference 2.2.0 (72abf2), with Swift 6.0 for Linux on 30 Nov 2024 14:08:30 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frizlab/bsonserialization.git
Reference: 2.2.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/frizlab/bsonserialization
 * tag               2.2.0      -> FETCH_HEAD
HEAD is now at 72abf22 Add the compressed BSON binary subtype
Cloned https://github.com/frizlab/bsonserialization.git
Revision (git rev-parse @):
72abf222b6c33fc6b40c906a83984cbbf90ec155
SUCCESS checkout https://github.com/frizlab/bsonserialization.git at 2.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/frizlab/bsonserialization.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/Frizlab/stream-reader.git
[1/995] Fetching stream-reader
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.17s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.5.2 (0.43s)
Fetching https://github.com/apple/swift-system.git
[1/3919] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.31s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.38s)
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.5.2
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.0
Building for debugging...
[0/5] Write sources
[3/5] Compiling CSystem shims.c
[3/5] Write swift-version-24593BA9C3E375BF.txt
[6/33] Emitting module SystemPackage
[7/36] Compiling SystemPackage Util+StringArray.swift
[8/36] Compiling SystemPackage Util.swift
[9/36] Compiling SystemPackage UtilConsumers.swift
[10/36] Compiling SystemPackage FileOperations.swift
[11/36] Compiling SystemPackage FilePath.swift
[12/36] Compiling SystemPackage FilePathComponentView.swift
[13/36] Compiling SystemPackage FilePathComponents.swift
[14/36] Compiling SystemPackage FilePathTempPosix.swift
[15/36] Compiling SystemPackage FilePathTempWindows.swift
[16/36] Compiling SystemPackage FilePathWindows.swift
[17/36] Compiling SystemPackage FilePermissions.swift
[18/36] Compiling SystemPackage Errno.swift
[19/36] Compiling SystemPackage ErrnoWindows.swift
[20/36] Compiling SystemPackage FileDescriptor.swift
[21/36] Compiling SystemPackage FileHelpers.swift
[22/36] Compiling SystemPackage Backcompat.swift
[23/36] Compiling SystemPackage CInterop.swift
[24/36] Compiling SystemPackage Constants.swift
[25/36] Compiling SystemPackage Exports.swift
[26/36] Compiling SystemPackage Mocking.swift
[27/36] Compiling SystemPackage RawBuffer.swift
[28/36] Compiling SystemPackage Syscalls.swift
[29/36] Compiling SystemPackage WindowsSyscallAdapters.swift
[30/36] Compiling SystemPackage FilePathParsing.swift
[31/36] Compiling SystemPackage FilePathString.swift
[32/36] Compiling SystemPackage FilePathSyntax.swift
[33/36] Compiling SystemPackage FilePathTemp.swift
[34/36] Compiling SystemPackage MachPort.swift
[35/36] Compiling SystemPackage PlatformString.swift
[36/36] Compiling SystemPackage SystemString.swift
[38/46] Compiling StreamReader FileDescriptorReader.swift
[39/46] Compiling StreamReader FileHandleReader.swift
[40/46] Emitting module StreamReader
[41/46] Compiling StreamReader InputStreamReader.swift
[42/46] Compiling StreamReader URLSessionStreamTaskReader.swift
[43/47] Compiling StreamReader GenericStreamReader.swift
[44/47] Compiling StreamReader StreamReaderErrors.swift
[45/47] Compiling StreamReader StreamReader.swift
[46/47] Compiling StreamReader DataReader.swift
[47/47] Compiling StreamReader Matching.swift
[49/53] Compiling BSONSerialization OutputStream+Utils.swift
[50/53] Compiling BSONSerialization Errors.swift
/host/spi-builder-workspace/Sources/BSONSerialization/Errors.swift:70:7: warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
68 | 	 An invalid BSON object was given to be serialized.
69 | 	 The invalid element is passed in argument to this error. */
70 | 	case invalidBSONObject(invalidElement: Any)
   |       `- warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
71 | 	/**
72 | 	 Tried to serialize an unserializable string (using the C representation).
[51/53] Compiling BSONSerialization BSONClasses.swift
[52/53] Emitting module BSONSerialization
/host/spi-builder-workspace/Sources/BSONSerialization/BSONSerialization.swift:41:21: warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 32 | 	}
 33 |
 34 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 35 |
 36 | 		public let rawValue: Int
    :
 39 | 		 Set all sizes to 0 in generated BSON.
 40 | 		 Mainly useful internally for optimization purposes. */
 41 | 		public static let skipSizes = WritingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'skipSizes' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |
 43 | 		public init(rawValue v: Int) {
/host/spi-builder-workspace/Sources/BSONSerialization/Errors.swift:70:7: warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
68 | 	 An invalid BSON object was given to be serialized.
69 | 	 The invalid element is passed in argument to this error. */
70 | 	case invalidBSONObject(invalidElement: Any)
   |       `- warning: associated value 'invalidBSONObject(invalidElement:)' of 'Sendable'-conforming enum 'BSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
71 | 	/**
72 | 	 Tried to serialize an unserializable string (using the C representation).
[53/53] Compiling BSONSerialization BSONSerialization.swift
/host/spi-builder-workspace/Sources/BSONSerialization/BSONSerialization.swift:41:21: warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 32 | 	}
 33 |
 34 | 	public struct WritingOptions : OptionSet {
    |                `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
 35 |
 36 | 		public let rawValue: Int
    :
 39 | 		 Set all sizes to 0 in generated BSON.
 40 | 		 Mainly useful internally for optimization purposes. */
 41 | 		public static let skipSizes = WritingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'skipSizes' is not concurrency-safe because non-'Sendable' type 'BSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'skipSizes' with '@MainActor' if property should only be accessed from the main actor
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |
 43 | 		public init(rawValue v: Int) {
Build complete! (14.98s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "stream-reader",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Frizlab/stream-reader.git"
    }
  ],
  "manifest_display_name" : "BSONSerialization",
  "name" : "BSONSerialization",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BSONSerialization",
      "targets" : [
        "BSONSerialization"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BSONSerializationTests",
      "module_type" : "SwiftTarget",
      "name" : "BSONSerializationTests",
      "path" : "Tests/BSONSerializationTests",
      "sources" : [
        "BSONSerializationTests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "BSONSerialization"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BSONSerialization",
      "module_type" : "SwiftTarget",
      "name" : "BSONSerialization",
      "path" : "Sources/BSONSerialization",
      "product_dependencies" : [
        "StreamReader"
      ],
      "product_memberships" : [
        "BSONSerialization"
      ],
      "sources" : [
        "BSONClasses.swift",
        "BSONSerialization.swift",
        "Errors.swift",
        "OutputStream+Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.