Build Information
Failed to build WasmKit, reference main (e7705f), with Swift 6.2 for Wasm on 12 Dec 2025 14:44:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftwasm/WasmKit.git
Reference: main
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/swiftwasm/WasmKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e7705f2 Bump Swift SDK for Wasm to 6.2.2 in `build-wasi` GHA job (#238)
Cloned https://github.com/swiftwasm/WasmKit.git
Revision (git rev-parse @):
e7705f2cbc053261caa26425feb61572ce22de21
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftwasm/WasmKit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftwasm/WasmKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:ea378e7d7954b9ce813c0ebc8f6bc113436e2b3d5aa4fd45225da8bf07e6be73
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-log
Fetching https://github.com/apple/swift-nio
[1/5747] Fetching swift-log
[634/22669] Fetching swift-log, swift-argument-parser
[9471/27890] Fetching swift-log, swift-argument-parser, swift-system
Fetched https://github.com/apple/swift-log from cache (0.53s)
[14359/22143] Fetching swift-argument-parser, swift-system
[16729/102859] Fetching swift-argument-parser, swift-system, swift-nio
Fetched https://github.com/apple/swift-system from cache (6.51s)
Fetched https://github.com/apple/swift-argument-parser from cache (6.52s)
Fetched https://github.com/apple/swift-nio from cache (6.62s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.8.0 (7.01s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.91.0 (0.91s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[1821/20207] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.47s)
[2942/18387] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.69s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.29s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.2 (0.70s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.3 (1.61s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.61s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.2
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.91.0
[0/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/48] Emitting module WIT
[9/51] Compiling WIT PackageBuilder.swift
[10/51] Compiling WIT RequestEvaluator.swift
[11/51] Compiling WIT SemanticsContext.swift
[12/51] Compiling WITExtractor WITBuilder.swift
[13/52] Compiling WIT ParseTypes.swift
[14/52] Compiling WIT ParseWorld.swift
[15/52] Compiling WIT Parser.swift
[16/52] Compiling WITExtractor TypeMapping.swift
[17/52] Compiling WIT Lexer.swift
[18/52] Compiling WIT PackageResolver.swift
[19/52] Emitting module WITExtractor
[20/52] Compiling WITExtractor ConvertCase.swift
[21/52] Compiling WIT ParseFunctionDecl.swift
[22/52] Compiling WIT ParseInterface.swift
[23/52] Compiling WIT ParseTop.swift
[24/52] Compiling WIT Type.swift
[25/52] Compiling WIT Validation.swift
[26/52] Compiling WIT SyntaxNode.swift
[27/52] Compiling WITExtractor SourcePrinter.swift
[28/52] Emitting module ArgumentParserToolInfo
[29/52] Compiling ArgumentParserToolInfo ToolInfo.swift
[30/53] Wrapping AST for ArgumentParserToolInfo for debugging
[32/97] Compiling ArgumentParser ArgumentHelp.swift
[33/97] Compiling ArgumentParser ArgumentVisibility.swift
[34/97] Compiling ArgumentParser CompletionKind.swift
[35/97] Compiling ArgumentParser Option.swift
[36/97] Compiling ArgumentParser ParsableArguments.swift
[37/97] Compiling ArgumentParser ParsableCommand.swift
[38/97] Compiling ArgumentParser BashCompletionsGenerator.swift
[39/97] Compiling ArgumentParser CompletionsGenerator.swift
[40/97] Compiling ArgumentParser FishCompletionsGenerator.swift
[41/97] Compiling ArgumentParser ArgumentDecoder.swift
[42/97] Compiling ArgumentParser ArgumentDefinition.swift
[43/97] Compiling ArgumentParser ArgumentSet.swift
[44/98] Compiling WITExtractor WITExtractor.swift
[45/98] Wrapping AST for WIT for debugging
[47/122] Compiling WITExtractor SourceSummary.swift
[48/122] Compiling WITExtractor SwiftAPIDigester.swift
[49/123] Wrapping AST for WITExtractor for debugging
[51/123] Compiling WITOverlayGenerator SourcePrinter.swift
[52/123] Compiling WITOverlayGenerator InterfaceTypeGenerator.swift
[53/123] Compiling WITOverlayGenerator TypeAccessory.swift
[54/126] Compiling WITOverlayGenerator HostExportInterface.swift
[55/126] Compiling WITOverlayGenerator HostWorldGenerator.swift
[56/126] Compiling WITOverlayGenerator WasmKitSourcePrinter.swift
[57/126] Compiling WITOverlayGenerator ConvertCase.swift
[58/126] Compiling WITOverlayGenerator SwiftName.swift
[59/126] Compiling WITOverlayGenerator TypeName.swift
[60/126] Emitting module WITOverlayGenerator
[61/126] Compiling WITOverlayGenerator DefinitionMapping.swift
[62/126] Compiling WITOverlayGenerator GuestExportFunction.swift
[63/126] Compiling WITOverlayGenerator GuestExportInterface.swift
[64/126] Compiling WITOverlayGenerator GuestPrelude.swift
[65/126] Compiling WITOverlayGenerator GuestWorldGenerator.swift
[66/126] Compiling WITOverlayGenerator HostExportFunction.swift
[67/126] Compiling WITOverlayGenerator StaticCanonicalLifting.swift
[68/126] Compiling WITOverlayGenerator StaticCanonicalLoading.swift
[69/126] Compiling WITOverlayGenerator StaticCanonicalLowering.swift
[70/126] Compiling WITOverlayGenerator StaticCanonicalStoring.swift
[71/126] Compiling WITOverlayGenerator CanonicalName.swift
[72/126] Compiling WITOverlayGenerator CanonicalOperation.swift
[73/126] Compiling WITOverlayGenerator SignatureTranslation.swift
[74/126] Compiling WITOverlayGenerator StaticCanonicalDeallocation.swift
[75/126] Emitting module ArgumentParser
[76/132] Compiling WITOverlayGenerator WITOverlayGen.swift
[77/132] Compiling ArgumentParser Mutex.swift
[78/132] Compiling ArgumentParser Platform.swift
[79/132] Compiling ArgumentParser SequenceExtensions.swift
[80/132] Compiling ArgumentParser StringExtensions.swift
[81/132] Compiling ArgumentParser SwiftExtensions.swift
[82/132] Compiling WITOverlayGenerator TypeDefinition.swift
[83/132] Compiling WITOverlayGenerator TypeGenerator.swift
[85/133] Wrapping AST for WITOverlayGenerator for debugging
[93/133] Compiling ArgumentParser Tree.swift
[94/133] Compiling ArgumentParser CodingKeyValidator.swift
[95/133] Compiling ArgumentParser NonsenseFlagsValidator.swift
[96/133] Compiling ArgumentParser ParsableArgumentsValidation.swift
[97/133] Compiling ArgumentParser PositionalArgumentsValidator.swift
[98/133] Compiling ArgumentParser UniqueNamesValidator.swift
[106/133] Compiling ArgumentParser InputKey.swift
[107/133] Compiling ArgumentParser InputOrigin.swift
[108/133] Compiling ArgumentParser Name.swift
[109/133] Compiling ArgumentParser Parsed.swift
[110/133] Compiling ArgumentParser ParsedValues.swift
[111/133] Compiling ArgumentParser ParserError.swift
[112/133] Compiling ArgumentParser SplitArguments.swift
[113/133] Compiling ArgumentParser DumpHelpGenerator.swift
[114/133] Compiling ArgumentParser HelpCommand.swift
[115/133] Compiling ArgumentParser HelpGenerator.swift
[116/133] Compiling ArgumentParser MessageInfo.swift
[117/133] Compiling ArgumentParser UsageGenerator.swift
[130/134] Wrapping AST for ArgumentParser for debugging
[132/137] Compiling WITTool Utilities.swift
[133/137] Compiling WITTool WITTool.swift
[134/137] Emitting module WITTool
[135/138] Wrapping AST for WITTool for debugging
[136/138] Write Objects.LinkFileList
[137/138] Linking WITTool-tool
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/WasmKitGDBHandler/LICENSE.txt
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/GDBRemoteProtocol/LICENSE.txt
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:7:58: warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
5 | struct Plugin: BuildToolPlugin {
6 | func createBuildCommands(context: PluginContext, target: Target) async throws -> [Command] {
7 | let witTool = try context.tool(named: "WITTool").path
| |- warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
| `- note: use 'url' instead
8 | let fixturesDir = target.directory.appending("Fixtures")
9 | let hostOverlayDir = context.pluginWorkDirectory.appending("GeneratedHostOverlay")
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:8:34: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
6 | func createBuildCommands(context: PluginContext, target: Target) async throws -> [Command] {
7 | let witTool = try context.tool(named: "WITTool").path
8 | let fixturesDir = target.directory.appending("Fixtures")
| |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
| `- note: use 'directoryURL' instead
9 | let hostOverlayDir = context.pluginWorkDirectory.appending("GeneratedHostOverlay")
10 | return try FileManager.default.contentsOfDirectory(atPath: fixturesDir.string).compactMap { singleFixture in
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:8:44: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
6 | func createBuildCommands(context: PluginContext, target: Target) async throws -> [Command] {
7 | let witTool = try context.tool(named: "WITTool").path
8 | let fixturesDir = target.directory.appending("Fixtures")
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
9 | let hostOverlayDir = context.pluginWorkDirectory.appending("GeneratedHostOverlay")
10 | return try FileManager.default.contentsOfDirectory(atPath: fixturesDir.string).compactMap { singleFixture in
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:9:38: warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
7 | let witTool = try context.tool(named: "WITTool").path
8 | let fixturesDir = target.directory.appending("Fixtures")
9 | let hostOverlayDir = context.pluginWorkDirectory.appending("GeneratedHostOverlay")
| |- warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
| `- note: use 'pluginWorkDirectoryURL' instead
10 | return try FileManager.default.contentsOfDirectory(atPath: fixturesDir.string).compactMap { singleFixture in
11 | let outputFile = hostOverlayDir.appending(singleFixture + "HostOverlay.swift")
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:9:58: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
7 | let witTool = try context.tool(named: "WITTool").path
8 | let fixturesDir = target.directory.appending("Fixtures")
9 | let hostOverlayDir = context.pluginWorkDirectory.appending("GeneratedHostOverlay")
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
10 | return try FileManager.default.contentsOfDirectory(atPath: fixturesDir.string).compactMap { singleFixture in
11 | let outputFile = hostOverlayDir.appending(singleFixture + "HostOverlay.swift")
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:10:80: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
8 | let fixturesDir = target.directory.appending("Fixtures")
9 | let hostOverlayDir = context.pluginWorkDirectory.appending("GeneratedHostOverlay")
10 | return try FileManager.default.contentsOfDirectory(atPath: fixturesDir.string).compactMap { singleFixture in
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
11 | let outputFile = hostOverlayDir.appending(singleFixture + "HostOverlay.swift")
12 | let inputFileDir = fixturesDir.appending(singleFixture, "wit")
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:11:45: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
9 | let hostOverlayDir = context.pluginWorkDirectory.appending("GeneratedHostOverlay")
10 | return try FileManager.default.contentsOfDirectory(atPath: fixturesDir.string).compactMap { singleFixture in
11 | let outputFile = hostOverlayDir.appending(singleFixture + "HostOverlay.swift")
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
12 | let inputFileDir = fixturesDir.appending(singleFixture, "wit")
13 | guard FileManager.default.isDirectory(filePath: inputFileDir.string) else { return nil }
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:12:44: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
10 | return try FileManager.default.contentsOfDirectory(atPath: fixturesDir.string).compactMap { singleFixture in
11 | let outputFile = hostOverlayDir.appending(singleFixture + "HostOverlay.swift")
12 | let inputFileDir = fixturesDir.appending(singleFixture, "wit")
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
13 | guard FileManager.default.isDirectory(filePath: inputFileDir.string) else { return nil }
14 |
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:13:74: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
11 | let outputFile = hostOverlayDir.appending(singleFixture + "HostOverlay.swift")
12 | let inputFileDir = fixturesDir.appending(singleFixture, "wit")
13 | guard FileManager.default.isDirectory(filePath: inputFileDir.string) else { return nil }
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
14 |
15 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: inputFileDir.string).map {
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:15:95: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
13 | guard FileManager.default.isDirectory(filePath: inputFileDir.string) else { return nil }
14 |
15 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: inputFileDir.string).map {
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
16 | inputFileDir.appending(subpath: $0)
17 | }
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:16:30: warning: 'appending(subpath:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
14 |
15 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: inputFileDir.string).map {
16 | inputFileDir.appending(subpath: $0)
| `- warning: 'appending(subpath:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
17 | }
18 | return Command.buildCommand(
/host/spi-builder-workspace/Plugins/GenerateOverlayForTesting/Plugin.swift:18:28: warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
16 | inputFileDir.appending(subpath: $0)
17 | }
18 | return Command.buildCommand(
| `- warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
19 | displayName: "Generating host overlay for \(singleFixture)",
20 | executable: witTool,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[1/1] Compiling plugin GenerateOverlayForTesting
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:27:32: warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
25 | }
26 | // TODO: Add proper API to PackagePlugin to get data directory
27 | let dataPath = context.pluginWorkDirectory // output
| |- warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
| `- note: use 'pluginWorkDirectoryURL' instead
28 | .removingLastComponent() // WITExtractorPlugin
29 | .removingLastComponent() // plugins
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:28:14: warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
26 | // TODO: Add proper API to PackagePlugin to get data directory
27 | let dataPath = context.pluginWorkDirectory // output
28 | .removingLastComponent() // WITExtractorPlugin
| `- warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
29 | .removingLastComponent() // plugins
30 | .removingLastComponent() // .build (by default)
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:29:14: warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
27 | let dataPath = context.pluginWorkDirectory // output
28 | .removingLastComponent() // WITExtractorPlugin
29 | .removingLastComponent() // plugins
| `- warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
30 | .removingLastComponent() // .build (by default)
31 |
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:30:14: warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
28 | .removingLastComponent() // WITExtractorPlugin
29 | .removingLastComponent() // plugins
30 | .removingLastComponent() // .build (by default)
| `- warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
31 |
32 | let buildPath = dataPath.appending([parameters.configuration.rawValue])
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:32:34: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
30 | .removingLastComponent() // .build (by default)
31 |
32 | let buildPath = dataPath.appending([parameters.configuration.rawValue])
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
33 | let llbuildManifest = dataPath.appending([parameters.configuration.rawValue + ".yaml"])
34 | guard let swiftcExecutable = ProcessInfo.processInfo.environment["WIT_EXTRACTOR_SWIFTC_PATH"]
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:33:40: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
31 |
32 | let buildPath = dataPath.appending([parameters.configuration.rawValue])
33 | let llbuildManifest = dataPath.appending([parameters.configuration.rawValue + ".yaml"])
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
34 | guard let swiftcExecutable = ProcessInfo.processInfo.environment["WIT_EXTRACTOR_SWIFTC_PATH"]
35 | ?? inferSwiftcExecutablePath(llbuildManifest: llbuildManifest) else {
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:38:34: warning: 'init(_:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
36 | throw PluginError(description: "Cloudn't infer `swiftc` command path from build directory. Please specify WIT_EXTRACTOR_SWIFTC_PATH")
37 | }
38 | let digesterExecutable = Path(swiftcExecutable).removingLastComponent().appending(["swift-api-digester"])
| `- warning: 'init(_:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
39 |
40 | let witOutputPath = context.pluginWorkDirectory.appending([target + ".wit"])
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:38:57: warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
36 | throw PluginError(description: "Cloudn't infer `swiftc` command path from build directory. Please specify WIT_EXTRACTOR_SWIFTC_PATH")
37 | }
38 | let digesterExecutable = Path(swiftcExecutable).removingLastComponent().appending(["swift-api-digester"])
| `- warning: 'removingLastComponent()' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
39 |
40 | let witOutputPath = context.pluginWorkDirectory.appending([target + ".wit"])
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:38:81: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
36 | throw PluginError(description: "Cloudn't infer `swiftc` command path from build directory. Please specify WIT_EXTRACTOR_SWIFTC_PATH")
37 | }
38 | let digesterExecutable = Path(swiftcExecutable).removingLastComponent().appending(["swift-api-digester"])
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
39 |
40 | let witOutputPath = context.pluginWorkDirectory.appending([target + ".wit"])
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:40:37: warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
38 | let digesterExecutable = Path(swiftcExecutable).removingLastComponent().appending(["swift-api-digester"])
39 |
40 | let witOutputPath = context.pluginWorkDirectory.appending([target + ".wit"])
| |- warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
| `- note: use 'pluginWorkDirectoryURL' instead
41 | let swiftOutputPath = context.pluginWorkDirectory.appending([target + "_WITOverlay.swift"])
42 |
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:40:57: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
38 | let digesterExecutable = Path(swiftcExecutable).removingLastComponent().appending(["swift-api-digester"])
39 |
40 | let witOutputPath = context.pluginWorkDirectory.appending([target + ".wit"])
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
41 | let swiftOutputPath = context.pluginWorkDirectory.appending([target + "_WITOverlay.swift"])
42 |
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:41:39: warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
39 |
40 | let witOutputPath = context.pluginWorkDirectory.appending([target + ".wit"])
41 | let swiftOutputPath = context.pluginWorkDirectory.appending([target + "_WITOverlay.swift"])
| |- warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
| `- note: use 'pluginWorkDirectoryURL' instead
42 |
43 | let tool = try context.tool(named: "WITTool")
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:41:59: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
39 |
40 | let witOutputPath = context.pluginWorkDirectory.appending([target + ".wit"])
41 | let swiftOutputPath = context.pluginWorkDirectory.appending([target + "_WITOverlay.swift"])
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
42 |
43 | let tool = try context.tool(named: "WITTool")
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:46:56: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
44 | var arguments = [
45 | "extract-wit",
46 | "--swift-api-digester", digesterExecutable.string,
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
47 | "--module-name", target,
48 | "--package-name", context.package.displayName,
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:49:48: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
47 | "--module-name", target,
48 | "--package-name", context.package.displayName,
49 | "--wit-output-path", witOutputPath.string,
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
50 | "--swift-output-path", swiftOutputPath.string,
51 | "-I", buildPath.appending(["Modules"]).string,
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:50:52: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
48 | "--package-name", context.package.displayName,
49 | "--wit-output-path", witOutputPath.string,
50 | "--swift-output-path", swiftOutputPath.string,
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
51 | "-I", buildPath.appending(["Modules"]).string,
52 | ]
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:51:29: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
49 | "--wit-output-path", witOutputPath.string,
50 | "--swift-output-path", swiftOutputPath.string,
51 | "-I", buildPath.appending(["Modules"]).string,
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
52 | ]
53 |
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:51:52: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
49 | "--wit-output-path", witOutputPath.string,
50 | "--swift-output-path", swiftOutputPath.string,
51 | "-I", buildPath.appending(["Modules"]).string,
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
52 | ]
53 |
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:64:65: warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
62 | arguments += ["-sdk", sdk]
63 | }
64 | let process = try Process.run(URL(fileURLWithPath: tool.path.string), arguments: arguments)
| |- warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
| `- note: use 'url' instead
65 | process.waitUntilExit()
66 | guard process.terminationStatus == 0 else {
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:64:70: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
62 | arguments += ["-sdk", sdk]
63 | }
64 | let process = try Process.run(URL(fileURLWithPath: tool.path.string), arguments: arguments)
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
65 | process.waitUntilExit()
66 | guard process.terminationStatus == 0 else {
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:68:54: warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
66 | guard process.terminationStatus == 0 else {
67 | throw PluginError(
68 | description: "Failed to run \(([tool.path.string] + arguments).joined(separator: " "))"
| |- warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
| `- note: use 'url' instead
69 | )
70 | }
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:68:59: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
66 | guard process.terminationStatus == 0 else {
67 | throw PluginError(
68 | description: "Failed to run \(([tool.path.string] + arguments).joined(separator: " "))"
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
69 | )
70 | }
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:73:32: warning: 'appendInterpolation' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
71 | print("""
72 | {
73 | "witOutputPath": "\(witOutputPath)",
| `- warning: 'appendInterpolation' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
74 | "swiftOutputPath": "\(swiftOutputPath)"
75 | }
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:74:34: warning: 'appendInterpolation' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
72 | {
73 | "witOutputPath": "\(witOutputPath)",
74 | "swiftOutputPath": "\(swiftOutputPath)"
| `- warning: 'appendInterpolation' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
75 | }
76 | """)
/host/spi-builder-workspace/Plugins/WITExtractorPlugin/Plugin.swift:81:74: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
79 | func inferSwiftcExecutablePath(llbuildManifest: Path) -> String? {
80 | // FIXME: This is completely not the right way but there is no right way for now...
81 | guard let contents = try? String(contentsOfFile: llbuildManifest.string, encoding: .utf8) else {
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
82 | return nil
83 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2/2] Compiling plugin WITExtractorPlugin
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:10:58: warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
8 | Diagnostics.emit(.error, "\"_CabiShims\" must be included as a dependency")
9 | }
10 | let witTool = try context.tool(named: "WITTool").path
| |- warning: 'path' is deprecated: renamed to 'url' [#DeprecatedDeclaration]
| `- note: use 'url' instead
11 | let witDir = target.directory.appending("wit")
12 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: witDir.string).map {
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:11:29: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
9 | }
10 | let witTool = try context.tool(named: "WITTool").path
11 | let witDir = target.directory.appending("wit")
| |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
| `- note: use 'directoryURL' instead
12 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: witDir.string).map {
13 | witDir.appending(subpath: $0)
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:11:39: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
9 | }
10 | let witTool = try context.tool(named: "WITTool").path
11 | let witDir = target.directory.appending("wit")
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
12 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: witDir.string).map {
13 | witDir.appending(subpath: $0)
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:12:85: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
10 | let witTool = try context.tool(named: "WITTool").path
11 | let witDir = target.directory.appending("wit")
12 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: witDir.string).map {
| `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
13 | witDir.appending(subpath: $0)
14 | }
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:13:20: warning: 'appending(subpath:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
11 | let witDir = target.directory.appending("wit")
12 | let inputFiles = try FileManager.default.subpathsOfDirectory(atPath: witDir.string).map {
13 | witDir.appending(subpath: $0)
| `- warning: 'appending(subpath:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
14 | }
15 | let outputFile = context.pluginWorkDirectory.appending("GeneratedOverlay", "\(target.name)Overlay.swift")
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:15:34: warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
13 | witDir.appending(subpath: $0)
14 | }
15 | let outputFile = context.pluginWorkDirectory.appending("GeneratedOverlay", "\(target.name)Overlay.swift")
| |- warning: 'pluginWorkDirectory' is deprecated: renamed to 'pluginWorkDirectoryURL' [#DeprecatedDeclaration]
| `- note: use 'pluginWorkDirectoryURL' instead
16 | let command = Command.buildCommand(
17 | displayName: "Generating WIT overlay for \(target.name)",
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:15:54: warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
13 | witDir.appending(subpath: $0)
14 | }
15 | let outputFile = context.pluginWorkDirectory.appending("GeneratedOverlay", "\(target.name)Overlay.swift")
| `- warning: 'appending' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
16 | let command = Command.buildCommand(
17 | displayName: "Generating WIT overlay for \(target.name)",
/host/spi-builder-workspace/Plugins/WITOverlayPlugin/Plugin.swift:16:31: warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
14 | }
15 | let outputFile = context.pluginWorkDirectory.appending("GeneratedOverlay", "\(target.name)Overlay.swift")
16 | let command = Command.buildCommand(
| `- warning: 'buildCommand(displayName:executable:arguments:environment:inputFiles:outputFiles:)' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
17 | displayName: "Generating WIT overlay for \(target.name)",
18 | executable: witTool,
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[3/3] Compiling plugin WITOverlayPlugin
[4/4] Compiling plugin GenerateManual
[5/5] Compiling plugin GenerateDoccReference
Building for debugging...
[5/83] Write sources
[36/83] Compiling _CWasmKit _CWasmKit.c
[36/83] Compiling CNIOWindows WSAStartup.c
[38/83] Compiling CSystem shims.c
[38/83] Compiling CNIOWindows shim.c
[40/83] Compiling CSystemExtras CSystemExtras.c
[41/83] Compiling CNIOWASI CNIOWASI.c
[42/83] Compiling CNIOLinux liburing_shims.c
[43/83] Compiling _AtomicsShims.c
[44/83] Compiling CNIOLinux shim.c
[44/83] Compiling CNIOOpenBSD shim.c
[46/83] Write sources
[50/83] Compiling CNIODarwin shim.c
[51/83] Compiling CNIOPosix event_loop_id.c
[52/83] Compiling _CabiShims shims.c
[53/83] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[55/95] Emitting module _NIODataStructures
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:27:8: error: The Heap module was unable to identify your C library.
25 | @preconcurrency import Bionic
26 | #else
27 | #error("The Heap module was unable to identify your C library.")
| `- error: The Heap module was unable to identify your C library.
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:170:47: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
168 | return "<empty heap>"
169 | }
170 | let descriptions = self.storage.map { String(describing: $0) }
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
171 | let maxLen: Int = descriptions.map { $0.count }.max()! // storage checked non-empty above
172 | let paddedDescs = descriptions.map { (desc: String) -> String in
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:208:21: error: cannot find 'log2' in scope
206 |
207 | func height(index: Int) -> Int {
208 | Int(log2(Double(index + 1)))
| `- error: cannot find 'log2' in scope
209 | }
210 | let myHeight = height(index: index)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[56/95] Emitting module WITExtractor
/host/spi-builder-workspace/Sources/WITExtractor/SwiftAPIDigester.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | /// A wrapper for the swift-api-digester tool.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/95] Emitting module WasmTypes
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
54 | /// Reads a value of `UInt8` type from the given pointer of guest memory
55 | public static func readFromGuest(_ pointer: UnsafeGuestRawPointer) -> UInt8 {
56 | pointer.withHostPointer(count: MemoryLayout<UInt8>.size) { hostPointer in
| `- note: called from here
57 | let pointer = hostPointer.assumingMemoryBound(to: UInt8.self)
58 | return pointer.baseAddress!.pointee
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
62 | /// Writes the given value at the given pointer of guest memory
63 | public static func writeToGuest(at pointer: UnsafeGuestRawPointer, value: UInt8) {
64 | pointer.withHostPointer(count: MemoryLayout<UInt8>.size) { hostPointer in
| `- note: called from here
65 | let pointer = hostPointer.assumingMemoryBound(to: UInt8.self)
66 | pointer.baseAddress!.pointee = value
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
72 | /// Reads a value of `UInt16` type from the given pointer of guest memory
73 | public static func readFromGuest(_ pointer: UnsafeGuestRawPointer) -> UInt16 {
74 | pointer.withHostPointer(count: MemoryLayout<UInt16>.size) { hostPointer in
| `- note: called from here
75 | let pointer = hostPointer.assumingMemoryBound(to: UInt16.self)
76 | let value = pointer.baseAddress!.pointee
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
101 | /// Reads a value of `UInt32` type from the given pointer of guest memory
102 | public static func readFromGuest(_ pointer: UnsafeGuestRawPointer) -> UInt32 {
103 | pointer.withHostPointer(count: MemoryLayout<UInt32>.size) { hostPointer in
| `- note: called from here
104 | let pointer = hostPointer.assumingMemoryBound(to: UInt32.self)
105 | let value = pointer.baseAddress!.pointee
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
130 | /// Reads a value of `UInt64` type from the given pointer of guest memory
131 | public static func readFromGuest(_ pointer: UnsafeGuestRawPointer) -> UInt64 {
132 | pointer.withHostPointer(count: MemoryLayout<UInt64>.size) { hostPointer in
| `- note: called from here
133 | let pointer = hostPointer.assumingMemoryBound(to: UInt64.self)
134 | let value = pointer.baseAddress!.pointee
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
[58/95] Compiling WITExtractor Diagnostic.swift
/host/spi-builder-workspace/Sources/WITExtractor/SwiftAPIDigester.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
| `- error: no such module 'Foundation'
2 |
3 | /// A wrapper for the swift-api-digester tool.
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
54 | /// Reads a value of `UInt8` type from the given pointer of guest memory
55 | public static func readFromGuest(_ pointer: UnsafeGuestRawPointer) -> UInt8 {
56 | pointer.withHostPointer(count: MemoryLayout<UInt8>.size) { hostPointer in
| `- note: called from here
57 | let pointer = hostPointer.assumingMemoryBound(to: UInt8.self)
58 | return pointer.baseAddress!.pointee
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
62 | /// Writes the given value at the given pointer of guest memory
63 | public static func writeToGuest(at pointer: UnsafeGuestRawPointer, value: UInt8) {
64 | pointer.withHostPointer(count: MemoryLayout<UInt8>.size) { hostPointer in
| `- note: called from here
65 | let pointer = hostPointer.assumingMemoryBound(to: UInt8.self)
66 | pointer.baseAddress!.pointee = value
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
72 | /// Reads a value of `UInt16` type from the given pointer of guest memory
73 | public static func readFromGuest(_ pointer: UnsafeGuestRawPointer) -> UInt16 {
74 | pointer.withHostPointer(count: MemoryLayout<UInt16>.size) { hostPointer in
| `- note: called from here
75 | let pointer = hostPointer.assumingMemoryBound(to: UInt16.self)
76 | let value = pointer.baseAddress!.pointee
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/Sources/WasmTypes/GuestMemory.swift:174:25: error: cannot use a value of protocol type in embedded Swift
101 | /// Reads a value of `UInt32` type from the given pointer of guest memory
102 | public static func readFromGuest(_ pointer: UnsafeGuestRawPointer) -> UInt32 {
103 | pointer.withHostPointer(count: MemoryLayout<UInt32>.size) { hostPointer in
| `- note: called from here
104 | let pointer = hostPointer.assumingMemoryBound(to: UInt32.self)
105 | let value = pointer.baseAddress!.pointee
:
172 | /// Executes the given closure with a mutable raw pointer to the host memory region mapped as guest memory.
173 | public func withHostPointer<R>(count: Int, _ body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R {
174 | try memorySpace.withUnsafeMutableBufferPointer(offset: UInt(offset), count: count) { buffer in
| `- error: cannot use a value of protocol type in embedded Swift
175 | try body(UnsafeMutableRawBufferPointer(start: buffer.baseAddress!, count: count))
176 | }
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:27:8: error: The Heap module was unable to identify your C library.
25 | @preconcurrency import Bionic
26 | #else
27 | #error("The Heap module was unable to identify your C library.")
| `- error: The Heap module was unable to identify your C library.
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:170:47: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
168 | return "<empty heap>"
169 | }
170 | let descriptions = self.storage.map { String(describing: $0) }
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
171 | let maxLen: Int = descriptions.map { $0.count }.max()! // storage checked non-empty above
172 | let paddedDescs = descriptions.map { (desc: String) -> String in
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:208:21: error: cannot find 'log2' in scope
206 |
207 | func height(index: Int) -> Int {
208 | Int(log2(Double(index + 1)))
| `- error: cannot find 'log2' in scope
209 | }
210 | let myHeight = height(index: index)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[59/95] Emitting module _NIOBase64
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIOBase64/Base64.swift:112:39: error: cannot use a value of protocol type 'any Error' in embedded Swift
27 | @inlinable
28 | public func base64Decoded() throws -> [UInt8] {
29 | try self._base64Decoded()
| `- note: called from here
30 | }
31 |
:
38 | @inlinable
39 | public func _base64Decoded() throws -> [UInt8] {
40 | try Base64.decode(string: self)
| `- note: called from here
41 | }
42 | }
:
110 | if bytes[i + 2] != Base64.encodePaddingCharacter {
111 | guard let byte2Index = Base64.encodingTable.firstIndex(of: bytes[i + 2]) else {
112 | throw Base64Error.invalidCharacter
| `- error: cannot use a value of protocol type 'any Error' in embedded Swift
113 | }
114 |
[59/95] Compiling c-nioatomics.c
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/CInterop.swift:27:8: error: Unsupported Platform
25 | import Bionic
26 | #else
27 | #error("Unsupported Platform")
| `- error: Unsupported Platform
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Constants.swift:30:8: error: Unsupported Platform
28 | import Android
29 | #else
30 | #error("Unsupported Platform")
| `- error: Unsupported Platform
31 | #endif
32 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Exports.swift:32:8: error: Unsupported Platform
30 | import Android
31 | #else
32 | #error("Unsupported Platform")
| `- error: Unsupported Platform
33 | #endif
34 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:24:8: error: Unsupported Platform
22 | import Android
23 | #else
24 | #error("Unsupported Platform")
| `- error: Unsupported Platform
25 | #endif
26 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:14:15: error: type 'Errno' does not conform to protocol 'Decodable'
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: type 'Errno' does not conform to protocol 'Decodable'
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
17 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
18 |
19 | /// Creates a strongly typed error number from a raw C error number.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:14:57: error: 'Codable' is unavailable: unavailable in embedded Swift
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:14:15: error: type 'Errno' does not conform to protocol 'Encodable'
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: type 'Errno' does not conform to protocol 'Encodable'
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
17 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
18 |
19 | /// Creates a strongly typed error number from a raw C error number.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:14:15: error: type 'Errno' does not conform to protocol 'Decodable'
12 | @frozen
13 | @available(System 0.0.1, *)
14 | public struct Errno: RawRepresentable, Error, Hashable, Codable {
| `- error: type 'Errno' does not conform to protocol 'Decodable'
15 | /// The raw C error number.
16 | @_alwaysEmitIntoClient
17 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
18 |
19 | /// Creates a strongly typed error number from a raw C error number.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:1532:27: error: cannot find 'system_errno' in scope
1530 | /// The corresponding C global variable is `errno`.
1531 | internal static var current: Errno {
1532 | get { Errno(rawValue: system_errno) }
| `- error: cannot find 'system_errno' in scope
1533 | set { system_errno = newValue.rawValue }
1534 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Errno.swift:1533:11: error: cannot find 'system_errno' in scope
1531 | internal static var current: Errno {
1532 | get { Errno(rawValue: system_errno) }
1533 | set { system_errno = newValue.rawValue }
| `- error: cannot find 'system_errno' in scope
1534 | }
1535 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:18:15: error: type 'FileDescriptor' does not conform to protocol 'Decodable'
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: type 'FileDescriptor' does not conform to protocol 'Decodable'
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
21 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
22 |
23 | /// Creates a strongly-typed file handle from a raw C file handle.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:18:59: error: 'Codable' is unavailable: unavailable in embedded Swift
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:18:15: error: type 'FileDescriptor' does not conform to protocol 'Encodable'
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: type 'FileDescriptor' does not conform to protocol 'Encodable'
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
21 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
22 |
23 | /// Creates a strongly-typed file handle from a raw C file handle.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:49:17: error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
52 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
53 |
54 | /// Creates a strongly-typed access mode from a raw C access mode.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:49:67: error: 'Codable' is unavailable: unavailable in embedded Swift
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:49:17: error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Encodable'
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Encodable'
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
52 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
53 |
54 | /// Creates a strongly-typed access mode from a raw C access mode.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:92:17: error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
95 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
96 |
97 | /// Create a strongly-typed options value from raw C options.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:92:61: error: 'Codable' is unavailable: unavailable in embedded Swift
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:92:17: error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Encodable'
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Encodable'
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
95 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
96 |
97 | /// Create a strongly-typed options value from raw C options.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:330:17: error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
333 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
334 |
335 | /// Create a strongly-typed seek origin from a raw C value.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:330:67: error: 'Codable' is unavailable: unavailable in embedded Swift
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:330:17: error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Encodable'
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Encodable'
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
333 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Encodable' because 'CInt' does not conform to 'Encodable'
334 |
335 | /// Create a strongly-typed seek origin from a raw C value.
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:18:15: error: type 'FileDescriptor' does not conform to protocol 'Decodable'
16 | @frozen
17 | @available(System 0.0.1, *)
18 | public struct FileDescriptor: RawRepresentable, Hashable, Codable {
| `- error: type 'FileDescriptor' does not conform to protocol 'Decodable'
19 | /// The raw C file handle.
20 | @_alwaysEmitIntoClient
21 | public let rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
22 |
23 | /// Creates a strongly-typed file handle from a raw C file handle.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:49:17: error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
47 | @frozen
48 | @available(System 0.0.1, *)
49 | public struct AccessMode: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.AccessMode' does not conform to protocol 'Decodable'
50 | /// The raw C access mode.
51 | @_alwaysEmitIntoClient
52 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
53 |
54 | /// Creates a strongly-typed access mode from a raw C access mode.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:92:17: error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
90 | @frozen
91 | @available(System 0.0.1, *)
92 | public struct OpenOptions: OptionSet, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.OpenOptions' does not conform to protocol 'Decodable'
93 | /// The raw C options.
94 | @_alwaysEmitIntoClient
95 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
96 |
97 | /// Create a strongly-typed options value from raw C options.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileDescriptor.swift:330:17: error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
328 | @frozen
329 | @available(System 0.0.1, *)
330 | public struct SeekOrigin: RawRepresentable, Sendable, Hashable, Codable {
| `- error: type 'FileDescriptor.SeekOrigin' does not conform to protocol 'Decodable'
331 | /// The raw C value.
332 | @_alwaysEmitIntoClient
333 | public var rawValue: CInt
| `- note: cannot automatically synthesize 'Decodable' because 'CInt' does not conform to 'Decodable'
334 |
335 | /// Create a strongly-typed seek origin from a raw C value.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/CInterop.swift:50:27: error: cannot find type 'mode_t' in scope
48 | public typealias Mode = CInt
49 | #else
50 | public typealias Mode = mode_t
| `- error: cannot find type 'mode_t' in scope
51 | #endif
52 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/CInterop.swift:41:27: error: cannot find type 'mode_t' in scope
39 | /// The C `mode_t` type.
40 | @available(System 0.0.1, *)
41 | public typealias CModeT = mode_t
| `- error: cannot find type 'mode_t' in scope
42 | #endif
43 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FileOperations.swift:89:53: error: extra argument in call
87 | let descOrError: Result<CInt, Errno> = valueOrErrno(retryOnInterrupt: retryOnInterrupt) {
88 | if let permissions = permissions {
89 | return system_open(path, oFlag, permissions.rawValue)
| `- error: extra argument in call
90 | }
91 | precondition(!options.contains(.create),
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:93:6: error: cannot find type 'off_t' in scope
91 | internal func system_lseek(
92 | _ fd: Int32, _ off: off_t, _ whence: Int32
93 | ) -> off_t {
| `- error: cannot find type 'off_t' in scope
94 | #if ENABLE_MOCKING
95 | if mockingEnabled { return _mockOffT(fd, off, whence) }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:92:23: error: cannot find type 'off_t' in scope
90 | // lseek
91 | internal func system_lseek(
92 | _ fd: Int32, _ off: off_t, _ whence: Int32
| `- error: cannot find type 'off_t' in scope
93 | ) -> off_t {
94 | #if ENABLE_MOCKING
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Exports.swift:35:29: error: cannot find type 'off_t' in scope
33 | #endif
34 |
35 | internal typealias _COffT = off_t
| `- error: cannot find type 'off_t' in scope
36 |
37 | // MARK: syscalls and variables
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:74:73: error: cannot find type 'off_t' in scope
72 | // pread
73 | internal func system_pread(
74 | _ fd: Int32, _ buf: UnsafeMutableRawPointer?, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
75 | ) -> Int {
76 | #if ENABLE_MOCKING
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:112:66: error: cannot find type 'off_t' in scope
110 | // pwrite
111 | internal func system_pwrite(
112 | _ fd: Int32, _ buf: UnsafeRawPointer?, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
113 | ) -> Int {
114 | #if ENABLE_MOCKING
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:153:55: error: cannot find type 'off_t' in scope
151 | #endif
152 |
153 | internal func system_ftruncate(_ fd: Int32, _ length: off_t) -> Int32 {
| `- error: cannot find type 'off_t' in scope
154 | #if ENABLE_MOCKING
155 | if mockingEnabled { return _mock(fd, length) }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:78:33: error: 'Decoder' is unavailable: unavailable in embedded Swift
76 | // Decoder is written explicitly to ensure that we validate invariants on
77 | // untrusted input.
78 | public init(from decoder: any Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
79 | let container = try decoder.container(keyedBy: CodingKeys.self)
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:72:21: error: 'Codable' is unavailable: unavailable in embedded Swift
70 |
71 | @available(System 0.0.1, *)
72 | extension FilePath: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
73 | // Encoder is synthesized; it probably should have been explicit and used
74 | // a single-value container, but making that change now is somewhat risky.
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:80:35: error: value of type 'KeyedDecodingContainer<FilePath.CodingKeys>' has no member 'decode'
78 | public init(from decoder: any Decoder) throws {
79 | let container = try decoder.container(keyedBy: CodingKeys.self)
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
| `- error: value of type 'KeyedDecodingContainer<FilePath.CodingKeys>' has no member 'decode'
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:80:70: error: cannot infer contextual base in reference to member '_storage'
78 | public init(from decoder: any Decoder) throws {
79 | let container = try decoder.container(keyedBy: CodingKeys.self)
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
| `- error: cannot infer contextual base in reference to member '_storage'
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:82:27: error: type 'DecodingError' has no member 'dataCorruptedError'
80 | self._storage = try container.decode(SystemString.self, forKey: ._storage)
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
| `- error: type 'DecodingError' has no member 'dataCorruptedError'
83 | forKey: ._storage,
84 | in: container,
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:83:18: error: cannot infer contextual base in reference to member '_storage'
81 | guard _invariantsSatisfied() else {
82 | throw DecodingError.dataCorruptedError(
83 | forKey: ._storage,
| `- error: cannot infer contextual base in reference to member '_storage'
84 | in: container,
85 | debugDescription:
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponentView.swift:183:1: error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
32 | public struct ComponentView: Sendable {
33 | internal var _path: FilePath
34 | internal var _start: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath) {
:
181 |
182 | @available(System 0.0.2, *)
183 | extension FilePath.ComponentView: _PathSlice {
| `- error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
184 | internal var _range: Range<SystemString.Index> {
185 | _start ..< _path._storage.endIndex
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponentView.swift:183:1: error: type 'FilePath.ComponentView' does not conform to protocol 'Encodable'
32 | public struct ComponentView: Sendable {
33 | internal var _path: FilePath
34 | internal var _start: SystemString.Index
| `- note: cannot automatically synthesize 'Encodable' because 'SystemString.Index' does not conform to 'Encodable'
35 |
36 | internal init(_ path: FilePath) {
:
181 |
182 | @available(System 0.0.2, *)
183 | extension FilePath.ComponentView: _PathSlice {
| `- error: type 'FilePath.ComponentView' does not conform to protocol 'Encodable'
184 | internal var _range: Range<SystemString.Index> {
185 | _start ..< _path._storage.endIndex
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponentView.swift:183:1: error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
32 | public struct ComponentView: Sendable {
33 | internal var _path: FilePath
34 | internal var _start: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath) {
:
181 |
182 | @available(System 0.0.2, *)
183 | extension FilePath.ComponentView: _PathSlice {
| `- error: type 'FilePath.ComponentView' does not conform to protocol 'Decodable'
184 | internal var _range: Range<SystemString.Index> {
185 | _start ..< _path._storage.endIndex
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:193:1: error: type 'FilePath.Root' does not conform to protocol 'Decodable'
32 | public struct Root: Sendable {
33 | internal var _path: FilePath
34 | internal var _rootEnd: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath, rootEnd: SystemString.Index) {
:
191 | }
192 | @available(System 0.0.2, *)
193 | extension FilePath.Root: _PathSlice {
| `- error: type 'FilePath.Root' does not conform to protocol 'Decodable'
194 | internal var _range: Range<SystemString.Index> {
195 | (..<_rootEnd).relative(to: _path._storage)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:193:1: error: type 'FilePath.Root' does not conform to protocol 'Decodable'
32 | public struct Root: Sendable {
33 | internal var _path: FilePath
34 | internal var _rootEnd: SystemString.Index
| `- note: cannot automatically synthesize 'Decodable' because 'SystemString.Index' does not conform to 'Decodable'
35 |
36 | internal init(_ path: FilePath, rootEnd: SystemString.Index) {
:
191 | }
192 | @available(System 0.0.2, *)
193 | extension FilePath.Root: _PathSlice {
| `- error: type 'FilePath.Root' does not conform to protocol 'Decodable'
194 | internal var _range: Range<SystemString.Index> {
195 | (..<_rootEnd).relative(to: _path._storage)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:190:1: error: type 'FilePath.Component' does not conform to protocol 'Decodable'
59 | public struct Component: Sendable {
60 | internal var _path: FilePath
61 | internal var _range: Range<SystemString.Index>
| `- note: cannot automatically synthesize 'Decodable' because 'Range<SystemString.Index>' does not conform to 'Decodable'
62 |
63 | // TODO: Make a small-component form to save on ARC overhead when
:
188 |
189 | @available(System 0.0.2, *)
190 | extension FilePath.Component: _PathSlice {
| `- error: type 'FilePath.Component' does not conform to protocol 'Decodable'
191 | }
192 | @available(System 0.0.2, *)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:190:1: error: type 'FilePath.Component' does not conform to protocol 'Decodable'
59 | public struct Component: Sendable {
60 | internal var _path: FilePath
61 | internal var _range: Range<SystemString.Index>
| `- note: cannot automatically synthesize 'Decodable' because 'Range<SystemString.Index>' does not conform to 'Decodable'
62 |
63 | // TODO: Make a small-component form to save on ARC overhead when
:
188 |
189 | @available(System 0.0.2, *)
190 | extension FilePath.Component: _PathSlice {
| `- error: type 'FilePath.Component' does not conform to protocol 'Decodable'
191 | }
192 | @available(System 0.0.2, *)
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:133:61: error: 'Codable' is unavailable: unavailable in embedded Swift
131 | // Unifying protocol for common functionality between roots, components,
132 | // and views onto SystemString and FilePath.
133 | internal protocol _StrSlice: _PlatformStringable, Hashable, Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
134 | var _storage: SystemString { get }
135 | var _range: Range<SystemString.Index> { get }
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePathComponents.swift:190:1: error: type 'FilePath.Component' does not conform to protocol 'Encodable'
59 | public struct Component: Sendable {
60 | internal var _path: FilePath
61 | internal var _range: Range<SystemString.Index>
| `- note: cannot automatically synthesize 'Encodable' because 'Range<SystemString.Index>' does not conform to 'Encodable'
62 |
63 | // TODO: Make a small-component form to save on ARC overhead when
:
188 |
189 | @available(System 0.0.2, *)
190 | extension FilePath.Component: _PathSlice {
| `- error: type 'FilePath.Component' does not conform to protocol 'Encodable'
191 | }
192 | @available(System 0.0.2, *)
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
| `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
[59/95] Compiling c-atomics.c
BUILD FAILURE 6.2 wasm