Build Information
Failed to build BluetoothLinux, reference master (077f9d
), with Swift 6.2 (beta) for Wasm on 30 Jul 2025 04:01:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/pureswift/bluetoothlinux.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/pureswift/bluetoothlinux
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 077f9d3 Merge pull request #49 from the-braveknight/master
Cloned https://github.com/pureswift/bluetoothlinux.git
Revision (git rev-parse @):
077f9d36afdae57e12c436842db56ef318e2fd23
SUCCESS checkout https://github.com/pureswift/bluetoothlinux.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/pureswift/bluetoothlinux.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/Bluetooth.git
[1/23834] Fetching bluetooth
Fetched https://github.com/PureSwift/Bluetooth.git from cache (2.30s)
Fetching https://github.com/PureSwift/Socket.git
[1/1321] Fetching socket
Fetched https://github.com/PureSwift/Socket.git from cache (0.42s)
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-system
[1/4776] Fetching swift-system
[4348/76142] Fetching swift-system, swift-syntax
Fetched https://github.com/apple/swift-system from cache (0.78s)
[3569/71366] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (8.64s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (13.55s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.0 (0.62s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.0
Creating working copy for https://github.com/PureSwift/Socket.git
Working copy of https://github.com/PureSwift/Socket.git resolved at main (3a0b240)
Creating working copy for https://github.com/PureSwift/Bluetooth.git
Working copy of https://github.com/PureSwift/Bluetooth.git resolved at master (52f228b)
[0/14] Write sources
[0/14] Copying CharacteristicUUID.json
[0/14] Copying CompanyIdentifier.json
[0/14] Write sources
[3/14] Copying ServiceUUID.json
[3/14] Copying MemberUUID.json
[3/14] Copying DescriptorUUID.json
[3/14] Copying DeclarationUUID.json
[7/14] Copying UnitIdentifier.json
[9/14] Write swift-version-24593BA9C3E375BF.txt
[11/19] Emitting module BluetoothMetadata
[12/19] Compiling BluetoothMetadata BluetoothMetadata.swift
[13/19] Compiling BluetoothMetadata BluetoothUUID.swift
[14/19] Compiling BluetoothMetadata resource_bundle_accessor.swift
[15/19] Compiling BluetoothMetadata CompanyIdentifier.swift
[16/20] Wrapping AST for BluetoothMetadata for debugging
[18/27] Compiling GenerateBluetooth Generate.swift
[19/27] Compiling GenerateBluetooth CompanyIdentifier.swift
[20/27] Compiling GenerateBluetooth BluetoothUUID.swift
[21/27] Emitting module GenerateBluetooth
[22/27] Compiling GenerateBluetooth UnitIdentifier.swift
[23/27] Compiling GenerateBluetooth Hexadecimal.swift
[24/27] Compiling GenerateBluetooth String.swift
[25/28] Wrapping AST for GenerateBluetooth for debugging
[26/28] Write Objects.LinkFileList
[27/28] Linking GenerateBluetooth-tool
[1/1] Compiling plugin GenerateBluetoothDefinitions
Building for debugging...
[1/76] Write sources
[3/76] Copying ServiceUUID.json
[3/76] Copying UnitIdentifier.json
[3/76] Copying MemberUUID.json
[3/76] Copying DescriptorUUID.json
[3/76] Copying DeclarationUUID.json
[3/76] Write sources
[3/76] Copying CharacteristicUUID.json
[3/76] Write sources
[3/76] Copying CompanyIdentifier.json
[3/76] Copying UnitIdentifier.json
[3/76] Copying ServiceUUID.json
[3/76] Copying MemberUUID.json
[3/76] Copying DescriptorUUID.json
[3/76] Copying DeclarationUUID.json
[3/76] Copying CompanyIdentifier.json
[3/76] Copying CharacteristicUUID.json
[3/76] Write sources
[39/76] Compiling CBluetoothLinuxTest dummy.c
[40/76] Compiling _SwiftSyntaxCShims dummy.c
[41/76] Compiling CSystem shims.c
[42/76] Compiling CSocket android.c
[43/76] Compiling CSocket shims.c
[44/76] Compiling CBluetoothLinux dummy.c
[45/76] Write swift-version-24593BA9C3E375BF.txt
[47/86] Emitting module SwiftSyntax601
[48/90] Compiling SwiftSyntax601 Empty.swift
[49/91] Emitting module SwiftSyntax600
[50/92] Compiling SwiftSyntax600 Empty.swift
[51/93] Emitting module SwiftSyntax509
[52/93] Compiling SwiftSyntax509 Empty.swift
[53/124] Emitting module SwiftSyntax510
[54/124] Compiling SwiftSyntax510 Empty.swift
[58/125] Wrapping AST for SwiftSyntax601 for debugging
[59/125] Wrapping AST for SwiftSyntax600 for debugging
[60/125] Wrapping AST for SwiftSyntax509 for debugging
[61/125] Wrapping AST for SwiftSyntax510 for debugging
[63/125] Emitting module BluetoothMetadata
[64/163] Wrapping AST for BluetoothMetadata for debugging
[66/191] Emitting module GenerateBluetooth
[67/192] Wrapping AST for GenerateBluetooth for debugging
[68/192] Write Objects.LinkFileList
error: emit-module command failed with exit code 1 (use -v to see invocation)
[70/192] 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)
[70/196] Linking GenerateBluetooth-tool
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/UnitIdentifiers.swift
[71/196] Generate Bluetooth Unit Identifier Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/DeclarationUUID.swift
[72/196] Generate Bluetooth Declaration UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/DescriptorUUID.swift
[73/196] Generate Bluetooth Descriptor UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/ServiceUUID.swift
[74/196] Generate Bluetooth Service UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/CharacteristicUUID.swift
[75/196] Generate Bluetooth Characteristic UUID Definitions
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/MemberUUID.swift
[76/196] Generate Bluetooth Member UUID Definitions
[78/196] Compiling SwiftSyntax AbsolutePosition.swift
[79/196] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[80/196] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[81/196] Compiling SwiftSyntax Assert.swift
[82/196] Compiling SwiftSyntax BumpPtrAllocator.swift
[83/196] Compiling SwiftSyntax CommonAncestor.swift
[84/196] Compiling SwiftSyntax Convenience.swift
[85/196] Compiling SwiftSyntax CustomTraits.swift
[86/196] Compiling SwiftSyntax EditorPlaceholder.swift
Generated /host/spi-builder-workspace/.build/plugins/outputs/bluetooth/Bluetooth/destination/GenerateBluetoothDefinitions/CompanyIdentifiers.swift
[86/205] Generate Bluetooth Company Identifier Definitions
[87/205] Write sources
[89/205] Compiling SwiftSyntax SourceLocation.swift
[90/205] Compiling SwiftSyntax SourcePresence.swift
[91/205] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[92/205] Compiling SwiftSyntax Syntax.swift
[93/205] Compiling SwiftSyntax SyntaxArena.swift
[94/205] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[95/205] Compiling SwiftSyntax SyntaxChildren.swift
[96/205] Compiling SwiftSyntax SyntaxCollection.swift
[97/205] Compiling SwiftSyntax SyntaxHashable.swift
[98/205] Compiling SwiftSyntax Identifier.swift
[99/205] Compiling SwiftSyntax MemoryLayout.swift
[100/205] Compiling SwiftSyntax MissingNodeInitializers.swift
[101/205] Compiling SwiftSyntax RawSyntax.swift
[102/205] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[103/205] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[104/205] Compiling SwiftSyntax RawSyntaxTokenView.swift
[105/205] Compiling SwiftSyntax SourceEdit.swift
[106/205] Compiling SwiftSyntax SourceLength.swift
[107/205] 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 {
[108/205] 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 {
[109/205] 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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[110/205] 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 {
[111/205] 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 {
BUILD FAILURE 6.2 wasm