The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VirtualTerminal, reference main (d4c163), with Swift 6.3 for macOS (SPM) on 18 Apr 2026 01:11:40 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.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/compnerd/VirtualTerminal.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/compnerd/VirtualTerminal
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d4c1635 Platform: use a pfn to `write` and reference `Darwin.write`
Cloned https://github.com/compnerd/VirtualTerminal.git
Revision (git rev-parse @):
d4c1635a8780126b5204887f48e15887cd86d7de
SUCCESS checkout https://github.com/compnerd/VirtualTerminal.git at main
Fetching https://github.com/compnerd/swift-platform-core.git
[1/186] Fetching swift-platform-core
Fetched https://github.com/compnerd/swift-platform-core.git from cache (0.59s)
Creating working copy for https://github.com/compnerd/swift-platform-core.git
Working copy of https://github.com/compnerd/swift-platform-core.git resolved at main (b9eb8dd)
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "virtualterminal",
      "name": "VirtualTerminal",
      "url": "https://github.com/compnerd/VirtualTerminal.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/VirtualTerminal",
      "traits": [
      ],
      "dependencies": [
        {
          "identity": "swift-platform-core",
          "name": "swift-platform-core",
          "url": "https://github.com/compnerd/swift-platform-core.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-platform-core",
          "traits": [
          ],
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/compnerd/VirtualTerminal.git
[1/296] Fetching virtualterminal
Fetched https://github.com/compnerd/VirtualTerminal.git from cache (0.71s)
Fetching https://github.com/compnerd/swift-platform-core.git from cache
Fetched https://github.com/compnerd/swift-platform-core.git from cache (0.48s)
Creating working copy for https://github.com/compnerd/VirtualTerminal.git
Working copy of https://github.com/compnerd/VirtualTerminal.git resolved at main (d4c1635)
Creating working copy for https://github.com/compnerd/swift-platform-core.git
Working copy of https://github.com/compnerd/swift-platform-core.git resolved at main (b9eb8dd)
Found 1 product dependencies
  - swift-platform-core
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/compnerd/VirtualTerminal.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/11] Write sources
[2/11] Write VTDemo-entitlement.plist
[2/11] Write sources
[6/11] Compiling libunistring libunistring.c
[7/11] Write swift-version--6988338F2F200930.txt
[9/23] Compiling Geometry Point.swift
[10/23] Compiling Geometry Rect.swift
[11/23] Compiling Geometry Size.swift
[12/23] Emitting module Geometry
[13/23] Compiling Primitives RingBuffer.swift
[14/23] Emitting module Primitives
[15/23] Compiling POSIXCore SystemInfo+POSIX.swift
[16/23] Compiling POSIXCore SignalHandler.swift
[17/23] Compiling POSIXCore GNU+Overlay.swift
[18/23] Compiling POSIXCore POSIXError.swift
[19/23] Emitting module POSIXCore
[20/23] Compiling POSIXCore Darwin+Overlay.swift
[21/49] Compiling VirtualTerminal TextMetrics.swift
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:14:34: error: cannot find type 'locale_t' in scope
 12 |
 13 | private enum Locale {
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
    |                                  `- error: cannot find type 'locale_t' in scope
 15 |
 16 |   static var ID_UTF8: locale_t? {
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:16:23: error: cannot find type 'locale_t' in scope
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
 15 |
 16 |   static var ID_UTF8: locale_t? {
    |                       `- error: cannot find type 'locale_t' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:19:16: error: cannot find 'newlocale' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
 19 |       locale = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", nil)
    |                `- error: cannot find 'newlocale' in scope
 20 |       return locale
 21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:19:26: error: cannot find 'LC_CTYPE_MASK' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
 19 |       locale = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", nil)
    |                          `- error: cannot find 'LC_CTYPE_MASK' in scope
 20 |       return locale
 21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:95:23: error: cannot find 'wcwidth_l' in scope
 93 |     // Normal width character                       -> 1
 94 |     // Wide character (CJK, etc.)                   -> 2
 95 |     return max(1, Int(wcwidth_l(wchar_t(value), Locale.ID_UTF8)))
    |                       `- error: cannot find 'wcwidth_l' in scope
 96 | #endif
 97 |   }
[22/49] Compiling VirtualTerminal VTBuffer.swift
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:14:34: error: cannot find type 'locale_t' in scope
 12 |
 13 | private enum Locale {
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
    |                                  `- error: cannot find type 'locale_t' in scope
 15 |
 16 |   static var ID_UTF8: locale_t? {
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:16:23: error: cannot find type 'locale_t' in scope
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
 15 |
 16 |   static var ID_UTF8: locale_t? {
    |                       `- error: cannot find type 'locale_t' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:19:16: error: cannot find 'newlocale' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
 19 |       locale = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", nil)
    |                `- error: cannot find 'newlocale' in scope
 20 |       return locale
 21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:19:26: error: cannot find 'LC_CTYPE_MASK' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
 19 |       locale = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", nil)
    |                          `- error: cannot find 'LC_CTYPE_MASK' in scope
 20 |       return locale
 21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:95:23: error: cannot find 'wcwidth_l' in scope
 93 |     // Normal width character                       -> 1
 94 |     // Wide character (CJK, etc.)                   -> 2
 95 |     return max(1, Int(wcwidth_l(wchar_t(value), Locale.ID_UTF8)))
    |                       `- error: cannot find 'wcwidth_l' in scope
 96 | #endif
 97 |   }
[23/49] Compiling VirtualTerminal VTCell.swift
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:14:34: error: cannot find type 'locale_t' in scope
 12 |
 13 | private enum Locale {
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
    |                                  `- error: cannot find type 'locale_t' in scope
 15 |
 16 |   static var ID_UTF8: locale_t? {
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:16:23: error: cannot find type 'locale_t' in scope
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
 15 |
 16 |   static var ID_UTF8: locale_t? {
    |                       `- error: cannot find type 'locale_t' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:19:16: error: cannot find 'newlocale' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
 19 |       locale = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", nil)
    |                `- error: cannot find 'newlocale' in scope
 20 |       return locale
 21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:19:26: error: cannot find 'LC_CTYPE_MASK' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
 19 |       locale = newlocale(LC_CTYPE_MASK, "en_US.UTF-8", nil)
    |                          `- error: cannot find 'LC_CTYPE_MASK' in scope
 20 |       return locale
 21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:95:23: error: cannot find 'wcwidth_l' in scope
 93 |     // Normal width character                       -> 1
 94 |     // Wide character (CJK, etc.)                   -> 2
 95 |     return max(1, Int(wcwidth_l(wchar_t(value), Locale.ID_UTF8)))
    |                       `- error: cannot find 'wcwidth_l' in scope
 96 | #endif
 97 |   }
[24/51] Compiling VirtualTerminal VTRenderer.swift
[25/51] Compiling VirtualTerminal VTTerminal.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/51] Emitting module VirtualTerminal
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:14:34: error: cannot find type 'locale_t' in scope
 12 |
 13 | private enum Locale {
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
    |                                  `- error: cannot find type 'locale_t' in scope
 15 |
 16 |   static var ID_UTF8: locale_t? {
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Buffer/TextMetrics.swift:16:23: error: cannot find type 'locale_t' in scope
 14 |   private static let utf8: Mutex<locale_t?> = Mutex(nil)
 15 |
 16 |   static var ID_UTF8: locale_t? {
    |                       `- error: cannot find type 'locale_t' in scope
 17 |     return utf8.withLock { locale in
 18 |       if let locale { return locale }
[27/51] Compiling VirtualTerminal VTDisplayLink.swift
[28/51] Compiling VirtualTerminal VTProfiler.swift
[29/51] Compiling VirtualTerminal POSIXTerminal.swift
[30/51] Compiling VirtualTerminal WindowsTerminal.swift
[31/51] Compiling VirtualTerminal Encoding.swift
[32/51] Compiling VirtualTerminal VTInputParser.swift
[33/51] Compiling VirtualTerminal Event+POSIX.swift
[34/51] Compiling VirtualTerminal Event+Windows.swift
[35/51] Compiling VirtualTerminal VTColor.swift
[36/51] Compiling VirtualTerminal VTMode.swift
[37/51] Compiling VirtualTerminal Task+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Extensions/Task+Extensions.swift:12:23: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
10 |
11 |     let semaphore = DispatchSemaphore(value: 0)
12 |     Task<Void, Failure>(priority: priority) {
   |                       |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
   |                       `- note: Passing value of non-Sendable type '() async -> Void' as a 'sending' argument to initializer 'init(name:priority:operation:)' risks causing races in between local and caller code
13 |       // This task will run the operation and capture the result.
14 |       // It will signal the semaphore when done.
   :
23 |     semaphore.wait()
24 |
25 |     return try result.get()
   |                `- note: access can happen concurrently
26 |   }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Extensions/Task+Extensions.swift:35:21: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
33 |
34 |     let semaphore = DispatchSemaphore(value: 0)
35 |     Task<Void, Never>(priority: priority) {
   |                     |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
   |                     `- note: Passing value of non-Sendable type '() async -> Void' as a 'sending' argument to initializer 'init(name:priority:operation:)' risks causing races in between local and caller code
36 |       defer { semaphore.signal() }
37 |       result = await operation()
   :
39 |     semaphore.wait()
40 |
41 |     return result
   |            `- note: access can happen concurrently
42 |   }
43 | }
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[38/51] Compiling VirtualTerminal VTEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Extensions/Task+Extensions.swift:12:23: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
10 |
11 |     let semaphore = DispatchSemaphore(value: 0)
12 |     Task<Void, Failure>(priority: priority) {
   |                       |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
   |                       `- note: Passing value of non-Sendable type '() async -> Void' as a 'sending' argument to initializer 'init(name:priority:operation:)' risks causing races in between local and caller code
13 |       // This task will run the operation and capture the result.
14 |       // It will signal the semaphore when done.
   :
23 |     semaphore.wait()
24 |
25 |     return try result.get()
   |                `- note: access can happen concurrently
26 |   }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Extensions/Task+Extensions.swift:35:21: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
33 |
34 |     let semaphore = DispatchSemaphore(value: 0)
35 |     Task<Void, Never>(priority: priority) {
   |                     |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
   |                     `- note: Passing value of non-Sendable type '() async -> Void' as a 'sending' argument to initializer 'init(name:priority:operation:)' risks causing races in between local and caller code
36 |       defer { semaphore.signal() }
37 |       result = await operation()
   :
39 |     semaphore.wait()
40 |
41 |     return result
   |            `- note: access can happen concurrently
42 |   }
43 | }
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[39/51] Compiling VirtualTerminal VTEventStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Extensions/Task+Extensions.swift:12:23: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
10 |
11 |     let semaphore = DispatchSemaphore(value: 0)
12 |     Task<Void, Failure>(priority: priority) {
   |                       |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
   |                       `- note: Passing value of non-Sendable type '() async -> Void' as a 'sending' argument to initializer 'init(name:priority:operation:)' risks causing races in between local and caller code
13 |       // This task will run the operation and capture the result.
14 |       // It will signal the semaphore when done.
   :
23 |     semaphore.wait()
24 |
25 |     return try result.get()
   |                `- note: access can happen concurrently
26 |   }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/VirtualTerminal/Extensions/Task+Extensions.swift:35:21: error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
33 |
34 |     let semaphore = DispatchSemaphore(value: 0)
35 |     Task<Void, Never>(priority: priority) {
   |                     |- error: sending value of non-Sendable type '() async -> Void' risks causing data races [#SendingRisksDataRace]
   |                     `- note: Passing value of non-Sendable type '() async -> Void' as a 'sending' argument to initializer 'init(name:priority:operation:)' risks causing races in between local and caller code
36 |       defer { semaphore.signal() }
37 |       result = await operation()
   :
39 |     semaphore.wait()
40 |
41 |     return result
   |            `- note: access can happen concurrently
42 |   }
43 | }
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[40/51] Compiling VirtualTerminal DeltaCompression.swift
[41/51] Compiling VirtualTerminal SGROptimizer.swift
[42/51] Compiling VirtualTerminal VTBufferedTerminalStream.swift
[43/51] Compiling VirtualTerminal ISO6429.swift
[44/51] Compiling VirtualTerminal Operators.swift
[45/51] Compiling VirtualTerminal CursorMotionOptimizer.swift
[46/51] Compiling VirtualTerminal VTPosition.swift
[47/51] Compiling VirtualTerminal VTStyle.swift
[48/51] Compiling VirtualTerminal Duration+Extensions.swift
BUILD FAILURE 6.3 macosSpm