The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FileKit, reference develop (9006d2), with Swift 6.4 for Wasm on 19 Sep 2026 00:14:47 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nvzqz/FileKit.git
Reference: develop
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/nvzqz/FileKit
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 9006d28 Fix warning and update project with Xcode 14.2
Cloned https://github.com/nvzqz/FileKit.git
Revision (git rev-parse @):
9006d2888025fbe893c3c396327b2fe45a8c177b
SUCCESS checkout https://github.com/nvzqz/FileKit.git at develop
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/nvzqz/FileKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

[27 / 35] FileKit
/host/spi-builder-workspace/Sources/DispatchEvent.swift:17:67: error: cannot find 'DispatchSource' in scope
15 |
16 |     /// The file-system object was deleted from the namespace.
17 |     public static let Delete = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.delete.rawValue)
   |                                                                   `- error: cannot find 'DispatchSource' in scope
18 |
19 |     /// The file-system object data changed.
/host/spi-builder-workspace/Sources/DispatchEvent.swift:20:66: error: cannot find 'DispatchSource' in scope
18 |
19 |     /// The file-system object data changed.
20 |     public static let Write = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.write.rawValue)
   |                                                                  `- error: cannot find 'DispatchSource' in scope
21 |
22 |     /// The file-system object changed in size.
/host/spi-builder-workspace/Sources/DispatchEvent.swift:23:67: error: cannot find 'DispatchSource' in scope
21 |
22 |     /// The file-system object changed in size.
23 |     public static let Extend = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.extend.rawValue)
   |                                                                   `- error: cannot find 'DispatchSource' in scope
24 |
25 |     /// The file-system object metadata changed.
/host/spi-builder-workspace/Sources/DispatchEvent.swift:26:70: error: cannot find 'DispatchSource' in scope
24 |
25 |     /// The file-system object metadata changed.
26 |     public static let Attribute = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.attrib.rawValue)
   |                                                                      `- error: cannot find 'DispatchSource' in scope
27 |
28 |     /// The file-system object link count changed.
/host/spi-builder-workspace/Sources/DispatchEvent.swift:29:65: error: cannot find 'DispatchSource' in scope
27 |
28 |     /// The file-system object link count changed.
29 |     public static let Link = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.link.rawValue)
   |                                                                 `- error: cannot find 'DispatchSource' in scope
30 |
31 |     /// The file-system object was renamed in the namespace.
/host/spi-builder-workspace/Sources/DispatchEvent.swift:32:67: error: cannot find 'DispatchSource' in scope
30 |
31 |     /// The file-system object was renamed in the namespace.
32 |     public static let Rename = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.rename.rawValue)
   |                                                                   `- error: cannot find 'DispatchSource' in scope
33 |
34 |     /// The file-system object was revoked.
/host/spi-builder-workspace/Sources/DispatchEvent.swift:35:67: error: cannot find 'DispatchSource' in scope
33 |
34 |     /// The file-system object was revoked.
35 |     public static let Revoke = DispatchFileSystemEvents(rawValue: DispatchSource.FileSystemEvent.revoke.rawValue)
   |                                                                   `- error: cannot find 'DispatchSource' in scope
36 |
37 |     /// The file-system object was created.
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:105:28: error: cannot find type 'DispatchQueue' in scope
103 |
104 |     /// The queue for the watcher.
105 |     fileprivate let queue: DispatchQueue?
    |                            `- error: cannot find type 'DispatchQueue' in scope
106 |
107 |     /// A file descriptor for the path.
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:111:29: error: cannot find type 'DispatchSourceProtocol' in scope
109 |
110 |     /// A dispatch source to monitor a file descriptor created from the path.
111 |     fileprivate var source: DispatchSourceProtocol?
    |                             `- error: cannot find type 'DispatchSourceProtocol' in scope
112 |
113 |     /// Current events
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:136:17: error: cannot find type 'DispatchQueue' in scope
134 |     init(path: Path,
135 |          events: DispatchFileSystemEvents,
136 |          queue: DispatchQueue,
    |                 `- error: cannot find type 'DispatchQueue' in scope
137 |          callback: ((DispatchFileSystemWatcher) -> Void)?
138 |         ) {
/host/spi-builder-workspace/Sources/DispatchWatcher.swift:328:30: error: cannot find type 'DispatchQueue' in scope
326 |     /// - Parameter callback: The callback to be called on changes.
327 |     public func watch(_ events: DispatchFileSystemEvents = .All,
328 |                       queue: DispatchQueue = DispatchQueue.global(qos: .default),
    |                              `- error: cannot find type 'DispatchQueue' in scope
329 |                       delegate: DispatchFileSystemWatcherDelegate? = nil,
330 |                       callback: ((DispatchFileSystemWatcher) -> Void)? = nil
/host/spi-builder-workspace/Sources/NSArray+FileKit.swift:30:1: error: type 'NSArray' does not conform to protocol 'WritableToFile'
28 | import Foundation
29 |
30 | extension NSArray: ReadableWritable, WritableToFile {
   | |- error: type 'NSArray' does not conform to protocol 'WritableToFile'
   | `- note: add stubs for conformance
31 |
32 |     /// Returns an array read from the given path.
/host/spi-builder-workspace/Sources/DataType.swift:100:10: note: protocol requires function 'write(toFile:atomically:)' with type '(String, Bool) -> Bool'
 98 |     ///            the writing failed.
 99 |     ///
100 |     func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
    |          `- note: protocol requires function 'write(toFile:atomically:)' with type '(String, Bool) -> Bool'
101 |
102 | }
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:30:1: error: type 'NSData' does not conform to protocol 'WritableToFile'
28 | import Foundation
29 |
30 | extension NSData: ReadableWritable, WritableToFile {
   | `- error: type 'NSData' does not conform to protocol 'WritableToFile'
31 |
32 |     /// Returns data read from the given path.
/host/spi-builder-workspace/Sources/NSData+FileKit.swift:30:1: error: unavailable instance method 'write(toFile:atomically:)' was used to satisfy a requirement of protocol 'WritableToFile': WASI does not support atomic file-writing as it does not have temporary directories
28 | import Foundation
29 |
30 | extension NSData: ReadableWritable, WritableToFile {
   | `- error: unavailable instance method 'write(toFile:atomically:)' was used to satisfy a requirement of protocol 'WritableToFile': WASI does not support atomic file-writing as it does not have temporary directories
31 |
32 |     /// Returns data read from the given path.
Foundation.NSData.write:3:13: note: 'write(toFile:atomically:)' declared here
1 | class NSData {
2 | @available(*, unavailable, message: "WASI does not support atomic file-writing as it does not have temporary directories")
3 |   open func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool}
  |             `- note: 'write(toFile:atomically:)' declared here
4 |
/host/spi-builder-workspace/Sources/DataType.swift:100:10: note: requirement 'write(toFile:atomically:)' declared here
 98 |     ///            the writing failed.
 99 |     ///
100 |     func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
    |          `- note: requirement 'write(toFile:atomically:)' declared here
101 |
102 | }
/host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift:27:1: error: type 'NSDictionary' does not conform to protocol 'WritableToFile'
25 | import Foundation
26 |
27 | extension NSDictionary: ReadableWritable, WritableToFile {
   | |- error: type 'NSDictionary' does not conform to protocol 'WritableToFile'
   | `- note: add stubs for conformance
28 |
29 |     /// Returns a dictionary read from the given path.
/host/spi-builder-workspace/Sources/DataType.swift:100:10: note: protocol requires function 'write(toFile:atomically:)' with type '(String, Bool) -> Bool'
 98 |     ///            the writing failed.
 99 |     ///
100 |     func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool
    |          `- note: protocol requires function 'write(toFile:atomically:)' with type '(String, Bool) -> Bool'
101 |
102 | }
/host/spi-builder-workspace/Sources/Path.swift:1178:12: warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
1176 |
1177 |     /// Initializes a path from the string interpolation paths.
1178 |     public init(stringInterpolation paths: Path...) {
     |            |- warning: initializer 'init(stringInterpolation:)' nearly matches defaulted requirement 'init(stringInterpolation:)' of protocol 'ExpressibleByStringInterpolation'
     |            |- note: candidate has non-matching type '(stringInterpolation: Path...)' [with StringInterpolation = DefaultStringInterpolation]
     |            `- note: move 'init(stringInterpolation:)' to another extension to silence this warning
1179 |         self.init(paths.reduce("", { $0 + $1.rawValue }))
1180 |     }
Swift.ExpressibleByStringInterpolation.init:2:1: note: requirement 'init(stringInterpolation:)' declared here
1 | protocol ExpressibleByStringInterpolation {
2 | init(stringInterpolation: Self.StringInterpolation)}
  | `- note: requirement 'init(stringInterpolation:)' declared here
3 |
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Array+File.swift /host/spi-builder-workspace/Sources/ArrayFile.swift /host/spi-builder-workspace/Sources/Bundle+FileKit.swift /host/spi-builder-workspace/Sources/Data+FileKit.swift /host/spi-builder-workspace/Sources/DataFile.swift /host/spi-builder-workspace/Sources/DataType.swift /host/spi-builder-workspace/Sources/Dictionary+File.swift /host/spi-builder-workspace/Sources/DictionaryFile.swift /host/spi-builder-workspace/Sources/DirectoryEnumerator.swift /host/spi-builder-workspace/Sources/DispatchEvent.swift /host/spi-builder-workspace/Sources/DispatchWatcher.swift /host/spi-builder-workspace/Sources/File.swift /host/spi-builder-workspace/Sources/FileKit.swift /host/spi-builder-workspace/Sources/FileKitError.swift /host/spi-builder-workspace/Sources/FilePermissions.swift /host/spi-builder-workspace/Sources/FileProtection.swift /host/spi-builder-workspace/Sources/FileSystemEvent.swift /host/spi-builder-workspace/Sources/FileSystemEventStream.swift /host/spi-builder-workspace/Sources/FileSystemWatcher.swift /host/spi-builder-workspace/Sources/FileType.swift /host/spi-builder-workspace/Sources/Image+FileKit.swift /host/spi-builder-workspace/Sources/ImageFile.swift /host/spi-builder-workspace/Sources/JSONType.swift /host/spi-builder-workspace/Sources/NSArray+FileKit.swift /host/spi-builder-workspace/Sources/NSData+FileKit.swift /host/spi-builder-workspace/Sources/NSDataFile.swift /host/spi-builder-workspace/Sources/NSDictionary+FileKit.swift /host/spi-builder-workspace/Sources/NSString+FileKit.swift /host/spi-builder-workspace/Sources/Operators.swift /host/spi-builder-workspace/Sources/Path.swift /host/spi-builder-workspace/Sources/Process+FileKit.swift /host/spi-builder-workspace/Sources/PropertyListType.swift /host/spi-builder-workspace/Sources/RelativePathType.swift /host/spi-builder-workspace/Sources/String+FileKit.swift /host/spi-builder-workspace/Sources/TextFile.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FileKit -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/Objects-normal/wasm32/FileKit_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/Objects-normal/wasm32/Modules/FileKit.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/Objects-normal/wasm32/Modules/FileKit.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/Objects-normal/wasm32/FileKit-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/Objects-normal/wasm32/FileKit-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/Objects-normal/wasm32/FileKit-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/FileKit.build/Debug-webassembly-wasm32/FileKit-t.build/Objects-normal/wasm32/Modules/FileKit.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm