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 BytePattern, reference 0.0.6 (663d34), with Swift 6.1 for Wasm on 28 May 2025 09:44:29 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/Sajjon/BytePattern.git
Reference: 0.0.6
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
 * tag               0.0.6      -> FETCH_HEAD
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 0.0.6
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Sajjon/BytePattern.git
https://github.com/Sajjon/BytePattern.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-algorithms"
    }
  ],
  "manifest_display_name" : "BytePattern",
  "name" : "BytePattern",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "BytePattern",
      "targets" : [
        "BytePattern"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "XCTAssertBytesEqual",
      "targets" : [
        "XCTAssertBytesEqual"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BytesMutation",
      "targets" : [
        "BytesMutation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XCTAssertBytesEqual",
      "module_type" : "SwiftTarget",
      "name" : "XCTAssertBytesEqual",
      "path" : "Sources/XCTAssertBytesEqual",
      "product_memberships" : [
        "XCTAssertBytesEqual"
      ],
      "sources" : [
        "DefaultXCTAssertBytesEqualParameters.swift",
        "XCTAssertBytesEqual.swift",
        "XCTAssertBytesFromHexEqual.swift"
      ],
      "target_dependencies" : [
        "BytePattern"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BytesMutation",
      "module_type" : "SwiftTarget",
      "name" : "BytesMutation",
      "path" : "Sources/BytesMutation",
      "product_dependencies" : [
        "Algorithms"
      ],
      "product_memberships" : [
        "BytesMutation"
      ],
      "sources" : [
        "ContigiousBytes+Mutate.swift"
      ],
      "target_dependencies" : [
        "BytePattern"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BytePatternTests",
      "module_type" : "SwiftTarget",
      "name" : "BytePatternTests",
      "path" : "Tests/BytePatternTests",
      "sources" : [
        "BytePatternTests.swift",
        "Support/Timer.swift"
      ],
      "target_dependencies" : [
        "XCTAssertBytesEqual",
        "BytesMutation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BytePattern",
      "module_type" : "SwiftTarget",
      "name" : "BytePattern",
      "path" : "Sources/BytePattern",
      "product_dependencies" : [
        "Algorithms"
      ],
      "product_memberships" : [
        "BytePattern",
        "XCTAssertBytesEqual",
        "BytesMutation"
      ],
      "sources" : [
        "BytePattern.swift",
        "BytePatternFinder.swift",
        "Bytes/Data+Hex.swift",
        "Bytes/RandomBytes.swift",
        "Bytes/SafeCompare.swift",
        "Bytes/SecureBytes.swift",
        "Operators.swift",
        "Storage/Bools.swift",
        "Storage/IntsGroups/FromBothEnds/FromBothEnds.swift",
        "Storage/IntsGroups/FromBothEnds/FromEnd/FromEnd.swift",
        "Storage/IntsGroups/FromBothEnds/FromEnd/Ints/Ints.swift",
        "Storage/IntsGroups/IntsGroup.swift",
        "Storage/Storage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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
Fetching https://github.com/apple/swift-algorithms
[1/5959] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms from cache (0.50s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (1.44s)
Fetching https://github.com/apple/swift-numerics.git
[1/5691] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.74s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.43s)
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
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.3
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/17] Compiling RealModule Real.swift
[10/18] Compiling RealModule RealFunctions.swift
[11/18] Compiling RealModule Float+Real.swift
[12/18] Compiling RealModule ElementaryFunctions.swift
[13/18] Emitting module RealModule
[14/18] Compiling RealModule AlgebraicField.swift
[15/18] Compiling RealModule ApproximateEquality.swift
[16/18] Compiling RealModule Float16+Real.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/44] Compiling Algorithms RandomSample.swift
[24/44] Compiling Algorithms Reductions.swift
[25/44] Compiling Algorithms Rotate.swift
[26/47] Compiling Algorithms Partition.swift
[27/47] Compiling Algorithms Permutations.swift
[28/47] Compiling Algorithms Product.swift
[29/47] Compiling Algorithms Joined.swift
[30/47] Compiling Algorithms Keyed.swift
[31/47] Compiling Algorithms MinMax.swift
[32/47] Compiling Algorithms Compacted.swift
[33/47] Compiling Algorithms Cycle.swift
[34/47] Compiling Algorithms EitherSequence.swift
[35/47] Compiling Algorithms FirstNonNil.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/61] Compiling BytePattern Ints.swift
[51/61] Compiling BytePattern Operators.swift
[52/61] Compiling BytePattern Bools.swift
[53/61] Compiling BytePattern FromBothEnds.swift
[54/61] Compiling BytePattern FromEnd.swift
[55/61] 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 |         }
[56/61] 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 |         }
[57/62] Compiling BytePattern BytePattern.swift
[58/62] Compiling BytePattern BytePatternFinder.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: add '@MainActor' to make static property 'upperCase' part of global actor 'MainActor'
    |                     `- 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: add '@MainActor' to make static property 'upperCase' part of global actor 'MainActor'
    |                     `- 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: add '@MainActor' to make static property 'upperCase' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 83 | 	}
 84 |
[62/62] Compiling BytePattern Storage.swift
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/1] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling RealModule Float80+Real.swift
[3/12] Compiling RealModule Float16+Real.swift
[4/12] Compiling RealModule Float+Real.swift
[5/12] Compiling RealModule RealFunctions.swift
[6/12] Compiling RealModule Real.swift
[7/12] Compiling RealModule ElementaryFunctions.swift
[8/12] Compiling RealModule AlgebraicField.swift
[9/12] Compiling RealModule ApproximateEquality.swift
[10/12] Compiling RealModule AugmentedArithmetic.swift
[11/12] Compiling RealModule Double+Real.swift
[12/12] Emitting module RealModule
[14/38] Compiling Algorithms RandomSample.swift
[15/38] Compiling Algorithms Reductions.swift
[16/38] Compiling Algorithms Rotate.swift
[17/41] Compiling Algorithms Compacted.swift
[18/41] Compiling Algorithms Cycle.swift
[19/41] Compiling Algorithms EitherSequence.swift
[20/41] Compiling Algorithms FirstNonNil.swift
[21/41] Compiling Algorithms Joined.swift
[22/41] Compiling Algorithms Keyed.swift
[23/41] Compiling Algorithms MinMax.swift
[24/41] Compiling Algorithms FlattenCollection.swift
[25/41] Compiling Algorithms Grouped.swift
[26/41] Compiling Algorithms Indexed.swift
[27/41] Compiling Algorithms Intersperse.swift
[28/41] Compiling Algorithms Partition.swift
[29/41] Compiling Algorithms Permutations.swift
[30/41] Compiling Algorithms Product.swift
[31/41] Compiling Algorithms Split.swift
[32/41] Compiling Algorithms Stride.swift
[33/41] Compiling Algorithms Suffix.swift
[34/41] Compiling Algorithms Trim.swift
[35/41] Compiling Algorithms Unique.swift
[36/41] Compiling Algorithms Windows.swift
[37/41] Compiling Algorithms AdjacentPairs.swift
[38/41] Compiling Algorithms Chain.swift
[39/41] Compiling Algorithms Chunked.swift
[40/41] Compiling Algorithms Combinations.swift
[41/41] Emitting module Algorithms
[43/55] Compiling BytePattern IntsGroup.swift
[44/56] Compiling BytePattern Ints.swift
[45/56] Compiling BytePattern Operators.swift
[46/56] Compiling BytePattern Bools.swift
[47/56] 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 |         }
[48/56] 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 |         }
[49/56] Compiling BytePattern FromBothEnds.swift
[50/56] Compiling BytePattern FromEnd.swift
[51/56] Compiling BytePattern Storage.swift
[52/56] Emitting module BytePattern
[53/56] Compiling BytePattern BytePattern.swift
[54/56] Compiling BytePattern BytePatternFinder.swift
[55/56] Compiling BytePattern Data+Hex.swift
[56/56] Compiling BytePattern RandomBytes.swift
BUILD FAILURE 6.1 wasm