The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-longhair, reference main (e489e9), with Swift 6.1 for macOS (SPM) on 16 Apr 2026 07:05:19 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sena-mike/swift-longhair.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sena-mike/swift-longhair
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e489e9a Add README usage guide and validate example in tests (#8)
Submodule path 'Sources/CLonghair': checked out 'd5f9fa07403ce65f63e3edffaa898414c9774619'
Submodule 'Sources/CLonghair' (https://github.com/catid/longhair.git) registered for path 'Sources/CLonghair'
Cloning into '/Users/admin/builder/spi-builder-workspace/Sources/CLonghair'...
Cloned https://github.com/sena-mike/swift-longhair.git
Revision (git rev-parse @):
e489e9a141c310d73d93f80601a5394266d534b6
SUCCESS checkout https://github.com/sena-mike/swift-longhair.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/sena-mike/swift-longhair.git
https://github.com/sena-mike/swift-longhair.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-longhair",
  "name" : "swift-longhair",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Longhair",
      "targets" : [
        "Longhair"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LonghairTests",
      "module_type" : "SwiftTarget",
      "name" : "LonghairTests",
      "path" : "Tests/LonghairTests",
      "sources" : [
        "LonghairTests.swift"
      ],
      "target_dependencies" : [
        "CLonghair",
        "Longhair"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Longhair",
      "module_type" : "SwiftTarget",
      "name" : "Longhair",
      "path" : "Sources/Longhair",
      "product_memberships" : [
        "Longhair"
      ],
      "sources" : [
        "Longhair.swift"
      ],
      "target_dependencies" : [
        "CLonghair"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CLonghair",
      "module_type" : "ClangTarget",
      "name" : "CLonghair",
      "path" : "Sources/CLonghair",
      "product_memberships" : [
        "Longhair"
      ],
      "sources" : [
        "SiameseTools.cpp",
        "cauchy_256.cpp",
        "gf256.cpp"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Compiling CLonghair gf256.cpp
[3/5] Compiling CLonghair cauchy_256.cpp
[4/5] Compiling CLonghair SiameseTools.cpp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/7] Emitting module Longhair
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:51:18: error: cannot find 'cauchy256Initialize' in scope
 49 |   /// This closure will run exactly once, the first time _initializer is touched.
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
    |                  `- error: cannot find 'cauchy256Initialize' in scope
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
 53 |   }()
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:52:18: error: cannot find 'gf256Initialize' in scope
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
    |                  `- error: cannot find 'gf256Initialize' in scope
 53 |   }()
 54 |
[7/7] Compiling Longhair Longhair.swift
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:51:18: error: cannot find 'cauchy256Initialize' in scope
 49 |   /// This closure will run exactly once, the first time _initializer is touched.
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
    |                  `- error: cannot find 'cauchy256Initialize' in scope
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
 53 |   }()
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:52:18: error: cannot find 'gf256Initialize' in scope
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
    |                  `- error: cannot find 'gf256Initialize' in scope
 53 |   }()
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:94:16: error: cannot find 'cauchy256Encode' in scope
 92 |     let result = dataBlockPointers.withUnsafeMutableBufferPointer { pointerArray in
 93 |       recoveryBuffer.withUnsafeMutableBytes { recoveryRawBuffer in
 94 |         return cauchy256Encode(
    |                `- error: cannot find 'cauchy256Encode' in scope
 95 |           dataBlockCount: Int32(dataBlocks.count),
 96 |           recoveryBlockCount: Int32(recoveryBlockCount),
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:193:9: error: cannot find 'cauchy256Decode' in scope
191 |
192 |       return cBlocks.withUnsafeMutableBufferPointer { ptr in
193 |         cauchy256Decode(
    |         `- error: cannot find 'cauchy256Decode' in scope
194 |           dataBlockCount: originalBlockCount,
195 |           recoveryBlockCount: recoveryBlockCount,
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module Longhair
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:51:18: error: cannot find 'cauchy256Initialize' in scope
 49 |   /// This closure will run exactly once, the first time _initializer is touched.
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
    |                  `- error: cannot find 'cauchy256Initialize' in scope
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
 53 |   }()
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:52:18: error: cannot find 'gf256Initialize' in scope
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
    |                  `- error: cannot find 'gf256Initialize' in scope
 53 |   }()
 54 |
[3/3] Compiling Longhair Longhair.swift
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:51:18: error: cannot find 'cauchy256Initialize' in scope
 49 |   /// This closure will run exactly once, the first time _initializer is touched.
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
    |                  `- error: cannot find 'cauchy256Initialize' in scope
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
 53 |   }()
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:52:18: error: cannot find 'gf256Initialize' in scope
 50 |   private static let _initializer: Void = {
 51 |     precondition(cauchy256Initialize(expectedVersion: CAUCHY_256_VERSION) == 0)
 52 |     precondition(gf256Initialize(version: GF256_VERSION) == 0)
    |                  `- error: cannot find 'gf256Initialize' in scope
 53 |   }()
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:94:16: error: cannot find 'cauchy256Encode' in scope
 92 |     let result = dataBlockPointers.withUnsafeMutableBufferPointer { pointerArray in
 93 |       recoveryBuffer.withUnsafeMutableBytes { recoveryRawBuffer in
 94 |         return cauchy256Encode(
    |                `- error: cannot find 'cauchy256Encode' in scope
 95 |           dataBlockCount: Int32(dataBlocks.count),
 96 |           recoveryBlockCount: Int32(recoveryBlockCount),
/Users/admin/builder/spi-builder-workspace/Sources/Longhair/Longhair.swift:193:9: error: cannot find 'cauchy256Decode' in scope
191 |
192 |       return cBlocks.withUnsafeMutableBufferPointer { ptr in
193 |         cauchy256Decode(
    |         `- error: cannot find 'cauchy256Decode' in scope
194 |           dataBlockCount: originalBlockCount,
195 |           recoveryBlockCount: recoveryBlockCount,
BUILD FAILURE 6.1 macosSpm