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 hcitool, reference master (52fa8a), with Swift 6.2 (beta) for Wasm on 17 Jun 2025 16:43:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/millertechnologyperu/hcitool.git
Reference: master
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/millertechnologyperu/hcitool
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 52fa8a2 Updated GitHub CI
Cloned https://github.com/millertechnologyperu/hcitool.git
Revision (git rev-parse @):
52fa8a281a43914e699c383753072df46914cdbc
SUCCESS checkout https://github.com/millertechnologyperu/hcitool.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/millertechnologyperu/hcitool.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/PureSwift/BluetoothLinux.git
[1/6146] Fetching bluetoothlinux
Fetched https://github.com/PureSwift/BluetoothLinux.git from cache (0.34s)
Fetching https://github.com/PureSwift/Bluetooth.git
[1/23626] Fetching bluetooth
Fetched https://github.com/PureSwift/Bluetooth.git from cache (2.54s)
Fetching https://github.com/PureSwift/Socket.git
[1/1083] Fetching socket
Fetched https://github.com/PureSwift/Socket.git from cache (0.72s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
[1/4428] Fetching swift-system
[4429/19808] Fetching swift-system, swift-argument-parser
[19809/90690] Fetching swift-system, swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-system from cache (4.76s)
Fetched https://github.com/apple/swift-argument-parser from cache (4.77s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.83s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (5.63s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (0.40s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.1.4 (0.48s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
Creating working copy for https://github.com/PureSwift/BluetoothLinux.git
Working copy of https://github.com/PureSwift/BluetoothLinux.git resolved at master (d102e1b)
Creating working copy for https://github.com/PureSwift/Bluetooth.git
Working copy of https://github.com/PureSwift/Bluetooth.git resolved at master (3db3287)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.1.4
Creating working copy for https://github.com/PureSwift/Socket.git
Working copy of https://github.com/PureSwift/Socket.git resolved at main (fa5f3c5)
[0/14] Write sources
[0/14] Copying ServiceUUID.json
[0/14] Copying UnitIdentifier.json
[0/14] Copying CharacteristicUUID.json
[0/14] Copying DescriptorUUID.json
[0/14] Copying DeclarationUUID.json
[2/14] Copying MemberUUID.json
[7/14] Write sources
[8/14] Copying CompanyIdentifier.json
[9/14] Write swift-version-24593BA9C3E375BF.txt
[11/19] Compiling BluetoothMetadata BluetoothMetadata.swift
[12/19] Emitting module BluetoothMetadata
[13/19] Compiling BluetoothMetadata CompanyIdentifier.swift
[14/19] Compiling BluetoothMetadata resource_bundle_accessor.swift
[15/19] Compiling BluetoothMetadata BluetoothUUID.swift
[16/21] Wrapping AST for BluetoothMetadata for debugging
[18/27] Compiling GenerateBluetooth BluetoothUUID.swift
[19/27] Emitting module GenerateBluetooth
[20/27] Compiling GenerateBluetooth CompanyIdentifier.swift
[21/27] Compiling GenerateBluetooth Hexadecimal.swift
[22/27] Compiling GenerateBluetooth String.swift
[23/27] Compiling GenerateBluetooth Generate.swift
[24/27] Compiling GenerateBluetooth UnitIdentifier.swift
[25/28] Wrapping AST for GenerateBluetooth for debugging
[26/28] Write Objects.LinkFileList
[27/28] Linking GenerateBluetooth-tool
[1/1] Compiling plugin GenerateManualPlugin
[2/2] Compiling plugin GenerateBluetoothDefinitions
Building for debugging...
[2/88] Write sources
[4/88] Copying CharacteristicUUID.json
[4/88] Write sources
[6/88] Copying CompanyIdentifier.json
[6/88] Write sources
[6/88] Copying UnitIdentifier.json
[6/88] Copying ServiceUUID.json
[6/88] Copying MemberUUID.json
[6/88] Copying DescriptorUUID.json
[6/88] Copying DeclarationUUID.json
[6/88] Write sources
[6/88] Copying UnitIdentifier.json
[6/88] Copying ServiceUUID.json
[6/88] Copying DescriptorUUID.json
[6/88] Copying MemberUUID.json
[6/88] Copying DeclarationUUID.json
[6/88] Copying CharacteristicUUID.json
[6/88] Write sources
[6/88] Copying CompanyIdentifier.json
[6/88] Write sources
[42/88] Compiling CSystem shims.c
[43/88] Compiling CSocket shims.c
[44/88] Compiling _SwiftSyntaxCShims dummy.c
[45/88] Compiling CBluetoothLinux dummy.c
[46/88] Write swift-version-24593BA9C3E375BF.txt
[48/96] Compiling SwiftSyntax510 Empty.swift
[49/96] Emitting module SwiftSyntax510
[50/115] Emitting module SwiftSyntax509
[51/122] Compiling SwiftSyntax509 Empty.swift
[52/132] Compiling SwiftSyntax600 Empty.swift
[54/132] Emitting module SwiftSyntax600
[56/133] Wrapping AST for SwiftSyntax510 for debugging
[57/133] Wrapping AST for SwiftSyntax509 for debugging
[58/133] Wrapping AST for SwiftSyntax600 for debugging
[60/143] Emitting module ArgumentParserToolInfo
[61/197] Emitting module BluetoothMetadata
[62/198] Wrapping AST for BluetoothMetadata for debugging
[64/199] Emitting module GenerateBluetooth
[65/200] Wrapping AST for GenerateBluetooth for debugging
[66/200] Write Objects.LinkFileList
[67/200] Linking GenerateBluetooth-tool
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/UnitIdentifiers.swift
[68/200] Generate Bluetooth Unit Identifier Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/DeclarationUUID.swift
[69/200] Generate Bluetooth Declaration UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/DescriptorUUID.swift
[70/200] Generate Bluetooth Descriptor UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/ServiceUUID.swift
[71/200] Generate Bluetooth Service UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/CharacteristicUUID.swift
[72/200] Generate Bluetooth Characteristic UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/MemberUUID.swift
[73/200] Generate Bluetooth Member UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/CompanyIdentifiers.swift
[74/200] Generate Bluetooth Company Identifier Definitions
[75/200] Write sources
[77/200] Compiling SwiftSyntax AbsolutePosition.swift
[78/200] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[79/200] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[80/200] Compiling SwiftSyntax Assert.swift
[81/200] Compiling SwiftSyntax BumpPtrAllocator.swift
[82/200] Compiling SwiftSyntax CommonAncestor.swift
[83/200] Compiling SwiftSyntax Convenience.swift
[84/200] Compiling SwiftSyntax CustomTraits.swift
[85/200] Compiling SwiftSyntax Identifier.swift
[86/208] Compiling SwiftSyntax SourcePresence.swift
[87/208] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[88/208] Compiling SwiftSyntax Syntax.swift
[89/208] Compiling SwiftSyntax SyntaxArena.swift
[90/208] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[91/208] Compiling SwiftSyntax SyntaxChildren.swift
[92/208] Compiling SwiftSyntax SyntaxCollection.swift
[93/208] Compiling SwiftSyntax SyntaxHashable.swift
[94/208] Compiling SwiftSyntax SyntaxIdentifier.swift
[95/208] Compiling SwiftSyntax MemoryLayout.swift
[96/208] Compiling SwiftSyntax MissingNodeInitializers.swift
[97/208] Compiling SwiftSyntax RawSyntax.swift
[98/208] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[99/208] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[100/208] Compiling SwiftSyntax RawSyntaxTokenView.swift
[101/208] Compiling SwiftSyntax SourceEdit.swift
[102/208] Compiling SwiftSyntax SourceLength.swift
[103/208] Compiling SwiftSyntax SourceLocation.swift
[104/208] Compiling BluetoothMetadata resource_bundle_accessor.swift
/host/spi-builder-workspace/.build/checkouts/Bluetooth/Sources/BluetoothMetadata/BluetoothMetadata.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | public protocol BluetoothMetadataFile: Codable {
[105/208] Compiling BluetoothMetadata CompanyIdentifier.swift
/host/spi-builder-workspace/.build/checkouts/Bluetooth/Sources/BluetoothMetadata/BluetoothMetadata.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | public protocol BluetoothMetadataFile: Codable {
[106/208] Compiling BluetoothMetadata BluetoothUUID.swift
/host/spi-builder-workspace/.build/checkouts/Bluetooth/Sources/BluetoothMetadata/BluetoothMetadata.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | public protocol BluetoothMetadataFile: Codable {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[114/211] Emitting module BluetoothMetadata
/host/spi-builder-workspace/.build/checkouts/Bluetooth/Sources/BluetoothMetadata/BluetoothMetadata.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | public protocol BluetoothMetadataFile: Codable {
[115/211] Compiling BluetoothMetadata BluetoothMetadata.swift
/host/spi-builder-workspace/.build/checkouts/Bluetooth/Sources/BluetoothMetadata/BluetoothMetadata.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | public protocol BluetoothMetadataFile: Codable {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[116/211] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
BUILD FAILURE 6.2 wasm