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 main (72abf2), with Swift 6.0 for Linux on 30 Nov 2024 14:08:26 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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: 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/frizlab/bsonserialization
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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-4606859-2":/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.22s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.5.2 (0.49s)
Fetching https://github.com/apple/swift-system.git
[1/3919] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.40s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.44s)
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
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
Building for debugging...
[0/5] Write sources
[3/5] Write swift-version-24593BA9C3E375BF.txt
[3/5] Compiling CSystem shims.c
[6/33] Compiling SystemPackage MachPort.swift
[7/33] Compiling SystemPackage PlatformString.swift
[8/33] Compiling SystemPackage SystemString.swift
[9/33] Compiling SystemPackage FilePathTempPosix.swift
[10/33] Compiling SystemPackage FilePathTempWindows.swift
[11/33] Compiling SystemPackage FilePathWindows.swift
[12/33] Compiling SystemPackage FilePermissions.swift
[13/36] Emitting module SystemPackage
[14/36] Compiling SystemPackage FileOperations.swift
[15/36] Compiling SystemPackage FilePath.swift
[16/36] Compiling SystemPackage FilePathComponentView.swift
[17/36] Compiling SystemPackage FilePathComponents.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 FilePathParsing.swift
[23/36] Compiling SystemPackage FilePathString.swift
[24/36] Compiling SystemPackage FilePathSyntax.swift
[25/36] Compiling SystemPackage FilePathTemp.swift
[26/36] Compiling SystemPackage Backcompat.swift
[27/36] Compiling SystemPackage CInterop.swift
[28/36] Compiling SystemPackage Constants.swift
[29/36] Compiling SystemPackage Exports.swift
[30/36] Compiling SystemPackage Util+StringArray.swift
[31/36] Compiling SystemPackage Util.swift
[32/36] Compiling SystemPackage UtilConsumers.swift
[33/36] Compiling SystemPackage Mocking.swift
[34/36] Compiling SystemPackage RawBuffer.swift
[35/36] Compiling SystemPackage Syscalls.swift
[36/36] Compiling SystemPackage WindowsSyscallAdapters.swift
[38/46] Compiling StreamReader GenericStreamReader.swift
[39/47] Compiling StreamReader URLSessionStreamTaskReader.swift
[40/47] Emitting module StreamReader
[41/47] Compiling StreamReader FileDescriptorReader.swift
[42/47] Compiling StreamReader FileHandleReader.swift
[43/47] Compiling StreamReader InputStreamReader.swift
[44/47] Compiling StreamReader DataReader.swift
[45/47] Compiling StreamReader StreamReader.swift
[46/47] Compiling StreamReader StreamReaderErrors.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] 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).
[52/53] Compiling BSONSerialization BSONClasses.swift
[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! (19.04s)
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.