The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build BytePattern, reference main (663d34), with Swift 6.0 for Linux on 2 Nov 2024 16:37:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sajjon/BytePattern.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/Sajjon/BytePattern
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 663d343 Revert MainActor change
Cloned https://github.com/Sajjon/BytePattern.git
Revision (git rev-parse @):
663d343d5f2c516e09fdac37db18dd1214a0bcda
SUCCESS checkout https://github.com/Sajjon/BytePattern.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Sajjon/BytePattern.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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 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/apple/swift-algorithms
[1/5563] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms from cache (0.35s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.0 (0.48s)
Fetching https://github.com/apple/swift-numerics.git
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.96s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.49s)
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
warning: 'swift-algorithms': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/swift-algorithms/Sources/Algorithms/Documentation.docc
Building for debugging...
[0/7] Write sources
[5/7] Compiling _NumericsShims _NumericsShims.c
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/17] Compiling RealModule Float80+Real.swift
[9/18] Compiling RealModule Float16+Real.swift
[10/18] Compiling RealModule ElementaryFunctions.swift
[11/18] Compiling RealModule Float+Real.swift
[12/18] Compiling RealModule Real.swift
[13/18] Compiling RealModule RealFunctions.swift
[14/18] Emitting module RealModule
[15/18] Compiling RealModule AlgebraicField.swift
[16/18] Compiling RealModule ApproximateEquality.swift
[17/18] Compiling RealModule AugmentedArithmetic.swift
[18/18] Compiling RealModule Double+Real.swift
[20/44] Compiling Algorithms Split.swift
[21/44] Compiling Algorithms Stride.swift
[22/44] Compiling Algorithms Suffix.swift
[23/47] Compiling Algorithms RandomSample.swift
[24/47] Compiling Algorithms Reductions.swift
[25/47] Compiling Algorithms Rotate.swift
[26/47] Compiling Algorithms Compacted.swift
[27/47] Compiling Algorithms Cycle.swift
[28/47] Compiling Algorithms EitherSequence.swift
[29/47] Compiling Algorithms FirstNonNil.swift
[30/47] Compiling Algorithms Partition.swift
[31/47] Compiling Algorithms Permutations.swift
[32/47] Compiling Algorithms Product.swift
[33/47] Compiling Algorithms Joined.swift
[34/47] Compiling Algorithms Keyed.swift
[35/47] Compiling Algorithms MinMax.swift
[36/47] Compiling Algorithms FlattenCollection.swift
[37/47] Compiling Algorithms Grouped.swift
[38/47] Compiling Algorithms Indexed.swift
[39/47] Compiling Algorithms Intersperse.swift
[40/47] Compiling Algorithms Trim.swift
[41/47] Compiling Algorithms Unique.swift
[42/47] Compiling Algorithms Windows.swift
[43/47] Compiling Algorithms AdjacentPairs.swift
[44/47] Compiling Algorithms Chain.swift
[45/47] Compiling Algorithms Chunked.swift
[46/47] Compiling Algorithms Combinations.swift
[47/47] Emitting module Algorithms
[49/61] Compiling BytePattern IntsGroup.swift
[50/62] Compiling BytePattern Ints.swift
[51/62] Compiling BytePattern SafeCompare.swift
/host/spi-builder-workspace/Sources/BytePattern/Bytes/SecureBytes.swift:267:17: error: cannot find 'memset_s' in scope
265 |
266 |             _ = self.withUnsafeMutablePointerToElements { elementsPtr in
267 |                 memset_s(elementsPtr, bytesToClear, 0, bytesToClear)
    |                 `- error: cannot find 'memset_s' in scope
268 |             }
269 |         }
[52/62] Compiling BytePattern SecureBytes.swift
/host/spi-builder-workspace/Sources/BytePattern/Bytes/SecureBytes.swift:267:17: error: cannot find 'memset_s' in scope
265 |
266 |             _ = self.withUnsafeMutablePointerToElements { elementsPtr in
267 |                 memset_s(elementsPtr, bytesToClear, 0, bytesToClear)
    |                 `- error: cannot find 'memset_s' in scope
268 |             }
269 |         }
[53/62] Compiling BytePattern Operators.swift
[54/62] Compiling BytePattern Bools.swift
[55/62] Compiling BytePattern BytePattern.swift
[56/62] Compiling BytePattern BytePatternFinder.swift
[57/62] Compiling BytePattern FromBothEnds.swift
[58/62] Compiling BytePattern FromEnd.swift
[59/62] Emitting module BytePattern
/host/spi-builder-workspace/Sources/BytePattern/Bytes/Data+Hex.swift:82:21: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | public extension Data {
 75 | 	struct HexEncodingOptions: OptionSet {
    |         `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
 76 | 		public typealias RawValue = Int
 77 | 		public let rawValue: RawValue
    :
 80 | 		}
 81 |
 82 | 		public static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'upperCase' 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
 83 | 	}
 84 |
[60/62] Compiling BytePattern Data+Hex.swift
/host/spi-builder-workspace/Sources/BytePattern/Bytes/Data+Hex.swift:82:21: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | public extension Data {
 75 | 	struct HexEncodingOptions: OptionSet {
    |         `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
 76 | 		public typealias RawValue = Int
 77 | 		public let rawValue: RawValue
    :
 80 | 		}
 81 |
 82 | 		public static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'upperCase' 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
 83 | 	}
 84 |
[61/62] Compiling BytePattern RandomBytes.swift
/host/spi-builder-workspace/Sources/BytePattern/Bytes/Data+Hex.swift:82:21: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 73 |
 74 | public extension Data {
 75 | 	struct HexEncodingOptions: OptionSet {
    |         `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
 76 | 		public typealias RawValue = Int
 77 | 		public let rawValue: RawValue
    :
 80 | 		}
 81 |
 82 | 		public static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
    |                     |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'upperCase' 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
 83 | 	}
 84 |
[62/62] Compiling BytePattern Storage.swift
BUILD FAILURE 6.0 linux