Build Information
Failed to build WebAPIKit, reference main (2832a1
), with Swift 6.2 (beta) for Linux on 20 Jun 2025 15:41:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftwasm/WebAPIKit.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/WebAPIKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2832a10 Regenerate with @webref/idl 3.60.3
Cloned https://github.com/swiftwasm/WebAPIKit.git
Revision (git rev-parse @):
2832a10fdfd8b4990591d2b72d35cfacf7c647f3
SUCCESS checkout https://github.com/swiftwasm/WebAPIKit.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftwasm/WebAPIKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/swiftwasm/JavaScriptKit.git
[1/23836] Fetching javascriptkit
Fetched https://github.com/swiftwasm/JavaScriptKit.git from cache (1.34s)
Computing version for https://github.com/swiftwasm/JavaScriptKit.git
Computed https://github.com/swiftwasm/JavaScriptKit.git at 0.30.0 (1.84s)
Fetching https://github.com/swiftlang/swift-syntax
[1/70906] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (4.36s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (7.52s)
Creating working copy for https://github.com/swiftwasm/JavaScriptKit.git
Working copy of https://github.com/swiftwasm/JavaScriptKit.git resolved at 0.30.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
[1/1] Compiling plugin BridgeJSCommandPlugin
[2/2] Compiling plugin BridgeJS
[3/3] Compiling plugin PackageToJS
Building for debugging...
[3/43] Write sources
[22/43] Compiling _CJavaScriptKit _CJavaScriptKit.c
[23/43] Compiling _CJavaScriptBigIntSupport _CJavaScriptKit+I64.c
[24/43] Compiling _CJavaScriptEventLoop _CJavaScriptEventLoop.c
[25/43] Write swift-version-24593BA9C3E375BF.txt
[27/83] Emitting module WebIDL
[28/85] Compiling JavaScriptKit JSException.swift
[29/85] Compiling JavaScriptKit JSValue.swift
[30/85] Compiling JavaScriptKit Features.swift
[31/85] Compiling JavaScriptKit JSBigInt.swift
[32/85] Compiling JavaScriptKit JSClosure.swift
[35/87] Compiling WebIDL Typedef.swift
[37/87] Compiling WebIDL Value.swift
[38/87] Compiling JavaScriptKit JSArray.swift
[39/87] Compiling JavaScriptKit JSDate.swift
[40/87] Compiling JavaScriptKit JSError.swift
[41/87] Emitting module JavaScriptKit
[42/87] Compiling WebIDL Dictionary.swift
[43/87] Compiling WebIDL Enum.swift
[44/87] Compiling JavaScriptKit JSTypedArray.swift
[45/87] Compiling JavaScriptKit ConstructibleFromJSValue.swift
[46/87] Compiling JavaScriptKit ConvertibleToJSValue.swift
[47/87] Compiling JavaScriptKit Deprecated.swift
[54/87] Compiling JavaScriptKit JSFunction.swift
[56/87] Compiling WebIDL Interface.swift
[57/87] Compiling WebIDL InterfaceMixin.swift
[65/87] Compiling JavaScriptKit JSThrowingFunction.swift
[66/87] Compiling JavaScriptKit JSBridgedType.swift
[69/88] Wrapping AST for WebIDL for debugging
[71/102] Compiling JavaScriptKit Macros.swift
[72/102] Compiling JavaScriptKit ThreadLocal.swift
[73/103] Wrapping AST for JavaScriptKit for debugging
[75/114] Compiling JavaScriptBigIntSupport Int64+I64.swift
[76/114] Compiling JavaScriptBigIntSupport JSBigInt+I64.swift
[77/114] Emitting module JavaScriptBigIntSupport
[78/115] Wrapping AST for JavaScriptBigIntSupport for debugging
[80/115] Compiling JavaScriptEventLoop JobQueue.swift
[81/115] Compiling JavaScriptEventLoop JavaScriptEventLoop+ExecutorFactory.swift
[82/115] Compiling JavaScriptEventLoop JavaScriptEventLoop+LegacyHooks.swift
[83/115] Compiling WebIDLToSwift WebIDL+SwiftRepresentation.swift
[84/116] Compiling WebIDLToSwift PackageManifest.swift
/host/spi-builder-workspace/Sources/WebIDLToSwift/Shell.swift:30:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
28 | task.standardError = FileHandle.standardError
29 | task.arguments = arguments
30 | task.launchPath = findExecutable(executable)
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
| `- note: use 'executableURL' instead
31 | task.currentDirectoryURL = projectRoot
32 | task.launch()
/host/spi-builder-workspace/Sources/WebIDLToSwift/Shell.swift:32:14: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
30 | task.launchPath = findExecutable(executable)
31 | task.currentDirectoryURL = projectRoot
32 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
| `- note: use 'run' instead
33 | task.waitUntilExit()
34 | if task.terminationStatus != 0 {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[85/116] Compiling WebIDLToSwift Shell.swift
/host/spi-builder-workspace/Sources/WebIDLToSwift/Shell.swift:30:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
28 | task.standardError = FileHandle.standardError
29 | task.arguments = arguments
30 | task.launchPath = findExecutable(executable)
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
| `- note: use 'executableURL' instead
31 | task.currentDirectoryURL = projectRoot
32 | task.launch()
/host/spi-builder-workspace/Sources/WebIDLToSwift/Shell.swift:32:14: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
30 | task.launchPath = findExecutable(executable)
31 | task.currentDirectoryURL = projectRoot
32 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
| `- note: use 'run' instead
33 | task.waitUntilExit()
34 | if task.terminationStatus != 0 {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[86/116] Compiling WebIDLToSwift Module.swift
[87/116] Compiling WebIDLToSwift ModuleState.swift
[88/116] Compiling WebIDLToSwift SwiftRepresentation.swift
[89/116] Compiling WebIDLToSwift SwiftSource.swift
[90/116] Compiling WebIDLToSwift WebIDLToSwift.swift
[91/116] Compiling WebIDLToSwift UnionType+SwiftRepresentable.swift
[92/116] Compiling WebIDLToSwift UnionType.swift
[93/116] Emitting module JavaScriptEventLoop
[94/116] Compiling JavaScriptEventLoop JSSending.swift
[95/116] Compiling JavaScriptEventLoop WebWorkerDedicatedExecutor.swift
[96/116] Compiling JavaScriptEventLoop WebWorkerTaskExecutor.swift
[97/116] Compiling JavaScriptEventLoop JavaScriptEventLoop.swift
[98/117] Wrapping AST for JavaScriptEventLoop for debugging
[100/124] Compiling ECMAScript BridgedDictionary.swift
[101/124] Compiling ECMAScript Iterators.swift
[102/124] Compiling ECMAScript ArrayBufferView.swift
[103/124] Compiling ECMAScript Attributes.swift
[104/124] Compiling ECMAScript DataView.swift
[105/124] Emitting module ECMAScript
[106/124] Compiling ECMAScript ArrayBuffer.swift
[107/125] Wrapping AST for ECMAScript for debugging
[109/128] Compiling WebAPIBase ToJSValue.swift
[110/128] Emitting module WebAPIBase
[111/128] Compiling WebAPIBase Generated.swift
[112/129] Wrapping AST for WebAPIBase for debugging
[114/134] Compiling DOM Support.swift
[115/134] Compiling DOM RotationMatrixType.swift
[116/134] Compiling DOM RenderingContext.swift
[117/134] Compiling WebIDLToSwift ClosurePattern.swift
/host/spi-builder-workspace/Sources/WebIDLToSwift/ClosurePattern.swift:114:23: warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
112 | @inlinable public static subscript(name: JSString, in jsObject: JSObject) -> \(closureType) {
113 | get {
114 | \(getter)
| |- warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
| `- note: use 'String(describing:)' to silence this warning
115 | }
116 | set {
/host/spi-builder-workspace/Sources/WebIDLToSwift/ClosurePattern.swift:117:23: warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
115 | }
116 | set {
117 | \(setter)
| |- warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
| `- note: use 'String(describing:)' to silence this warning
118 | }
119 | }
[118/134] Compiling WebIDLToSwift IDLBuilder.swift
/host/spi-builder-workspace/Sources/WebIDLToSwift/ClosurePattern.swift:114:23: warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
112 | @inlinable public static subscript(name: JSString, in jsObject: JSObject) -> \(closureType) {
113 | get {
114 | \(getter)
| |- warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
| `- note: use 'String(describing:)' to silence this warning
115 | }
116 | set {
/host/spi-builder-workspace/Sources/WebIDLToSwift/ClosurePattern.swift:117:23: warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
115 | }
116 | set {
117 | \(setter)
| |- warning: string interpolation produces a debug description for a function value; did you mean to make this explicit?
| `- note: use 'String(describing:)' to silence this warning
118 | }
119 | }
[119/134] Compiling WebIDLToSwift IDLParser.swift
/host/spi-builder-workspace/Sources/WebIDLToSwift/IDLParser.swift:12:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
10 | task.standardError = FileHandle.standardError
11 | task.arguments = ["start", "--silent"] + modules
12 | task.launchPath = findExecutable("npm")
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
| `- note: use 'executableURL' instead
13 | task.currentDirectoryURL = URL(fileURLWithPath: #file)
14 | .deletingLastPathComponent()
/host/spi-builder-workspace/Sources/WebIDLToSwift/IDLParser.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
14 | .deletingLastPathComponent()
15 | .appendingPathComponent("../../parse-idl")
16 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
| `- note: use 'run' instead
17 | return pipe.fileHandleForReading.readDataToEndOfFile()
18 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[120/134] Compiling WebIDLToSwift MergeDeclarations.swift
/host/spi-builder-workspace/Sources/WebIDLToSwift/IDLParser.swift:12:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
10 | task.standardError = FileHandle.standardError
11 | task.arguments = ["start", "--silent"] + modules
12 | task.launchPath = findExecutable("npm")
| |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
| `- note: use 'executableURL' instead
13 | task.currentDirectoryURL = URL(fileURLWithPath: #file)
14 | .deletingLastPathComponent()
/host/spi-builder-workspace/Sources/WebIDLToSwift/IDLParser.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
14 | .deletingLastPathComponent()
15 | .appendingPathComponent("../../parse-idl")
16 | task.launch()
| |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
| `- note: use 'run' instead
17 | return pipe.fileHandleForReading.readDataToEndOfFile()
18 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[121/134] Emitting module WebIDLToSwift
[122/135] Wrapping AST for WebIDLToSwift for debugging
[123/135] Write Objects.LinkFileList
[124/135] Linking WebIDLToSwift
[126/135] Emitting module DOM
[127/135] Compiling DOM Generated.swift
[128/143] Wrapping AST for DOM for debugging
[130/146] Compiling WebSockets Generated.swift
[131/146] Emitting module WebSockets
[133/147] Emitting module FileSystem
[134/147] Emitting module Gamepad
[135/147] Compiling Gamepad Generated.swift
[137/148] Compiling FileSystem Generated.swift
[139/149] Emitting module SVG
[140/149] Compiling SVG Generated.swift
[142/152] Emitting module WebAudio
[143/152] Compiling WebAudio Generated.swift
[144/153] Wrapping AST for WebAudio for debugging
[146/155] Emitting module WebAnimations
[147/155] Compiling WebAnimations Generated.swift
[148/156] Wrapping AST for WebAnimations for debugging
[150/159] Compiling WebGL1 Support.swift
[151/159] Compiling CSSOM Generated.swift
[152/159] Emitting module CSSOM
[154/160] Compiling WebGL1 Generated.swift
[155/160] Emitting module WebGL1
[156/161] Wrapping AST for WebGL1 for debugging
[158/167] Compiling WebGPU Support.swift
[159/167] Compiling WebGL2 Support.swift
[160/167] Emitting module WebGL2
[161/167] Compiling WebGL2 Generated.swift
[162/168] Wrapping AST for WebGL2 for debugging
[164/171] Compiling WebAPIKitDemo main.swift
/host/spi-builder-workspace/Sources/WebAPIKitDemo/main.swift:7:14: error: no exact matches in call to initializer
5 | let document = globalThis.document
6 |
7 | let button = HTMLElement(from: document.createElement(localName: "button"))!
| `- error: no exact matches in call to initializer
8 | button.innerText = "Hello World!"
9 | _ = document.body!.appendChild(node: button)
/host/spi-builder-workspace/.build/checkouts/JavaScriptKit/Sources/JavaScriptKit/JSBridgedType.swift:33:12: note: candidate expects value of type 'JSValue' for parameter #1 (got 'Element')
31 | public var jsValue: JSValue { jsObject.jsValue }
32 |
33 | public init?(from value: JSValue) {
| `- note: candidate expects value of type 'JSValue' for parameter #1 (got 'Element')
34 | guard let object = value.object else { return nil }
35 | self.init(from: object)
36 | }
37 |
38 | public init?(from object: JSObject) {
| `- note: candidate expects value of type 'JSObject' for parameter #1 (got 'Element')
39 | guard let constructor = Self.constructor, object.isInstanceOf(constructor) else { return nil }
40 | self.init(unsafelyWrapping: object)
/host/spi-builder-workspace/Sources/WebAPIKitDemo/main.swift:13:18: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
11 | console.log(data: "Hello, world!")
12 |
13 | button.onclick = { _ in
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
14 | runWebGLDemo()
15 | return .undefined
error: emit-module command failed with exit code 1 (use -v to see invocation)
[165/171] Emitting module WebAPIKitDemo
/host/spi-builder-workspace/Sources/WebAPIKitDemo/main.swift:7:14: error: no exact matches in call to initializer
5 | let document = globalThis.document
6 |
7 | let button = HTMLElement(from: document.createElement(localName: "button"))!
| `- error: no exact matches in call to initializer
8 | button.innerText = "Hello World!"
9 | _ = document.body!.appendChild(node: button)
/host/spi-builder-workspace/.build/checkouts/JavaScriptKit/Sources/JavaScriptKit/JSBridgedType.swift:33:12: note: candidate expects value of type 'JSValue' for parameter #1 (got 'Element')
31 | public var jsValue: JSValue { jsObject.jsValue }
32 |
33 | public init?(from value: JSValue) {
| `- note: candidate expects value of type 'JSValue' for parameter #1 (got 'Element')
34 | guard let object = value.object else { return nil }
35 | self.init(from: object)
36 | }
37 |
38 | public init?(from object: JSObject) {
| `- note: candidate expects value of type 'JSObject' for parameter #1 (got 'Element')
39 | guard let constructor = Self.constructor, object.isInstanceOf(constructor) else { return nil }
40 | self.init(unsafelyWrapping: object)
/host/spi-builder-workspace/Sources/WebAPIKitDemo/main.swift:13:18: error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
11 | console.log(data: "Hello, world!")
12 |
13 | button.onclick = { _ in
| `- error: cannot infer return type for closure with multiple statements; add explicit type to disambiguate
14 | runWebGLDemo()
15 | return .undefined
[166/171] Compiling WebAPIKitDemo WebGLDemo.swift
/host/spi-builder-workspace/Sources/WebAPIKitDemo/WebGLDemo.swift:90:11: error: initializer for conditional binding must have Optional type, not 'WebGLProgram'
88 |
89 | func createProgram(vShader: WebGLShader, fShader: WebGLShader) -> WebGLProgram? {
90 | guard let program = createProgram() else { return nil }
| `- error: initializer for conditional binding must have Optional type, not 'WebGLProgram'
91 |
92 | attachShader(program: program, shader: vShader)
/host/spi-builder-workspace/Sources/WebAPIKitDemo/WebGLDemo.swift:121:16: error: no exact matches in call to initializer
119 | func runWebGLDemo() {
120 | // Get A WebGL context
121 | let canvas = HTMLCanvasElement(from: document.createElement(localName: "canvas"))!
| `- error: no exact matches in call to initializer
122 | _ = document.body?.appendChild(node: canvas)
123 | guard let context = canvas.getContext(WebGL2RenderingContext.self) else {
/host/spi-builder-workspace/.build/checkouts/JavaScriptKit/Sources/JavaScriptKit/JSBridgedType.swift:33:12: note: candidate expects value of type 'JSValue' for parameter #1 (got 'Element')
31 | public var jsValue: JSValue { jsObject.jsValue }
32 |
33 | public init?(from value: JSValue) {
| `- note: candidate expects value of type 'JSValue' for parameter #1 (got 'Element')
34 | guard let object = value.object else { return nil }
35 | self.init(from: object)
36 | }
37 |
38 | public init?(from object: JSObject) {
| `- note: candidate expects value of type 'JSObject' for parameter #1 (got 'Element')
39 | guard let constructor = Self.constructor, object.isInstanceOf(constructor) else { return nil }
40 | self.init(unsafelyWrapping: object)
/host/spi-builder-workspace/Sources/WebAPIKitDemo/WebGLDemo.swift:150:15: error: cannot infer contextual base in reference to member 'arrayBuffer'
148 | context.bufferData(
149 | target: WebGL2RenderingContext.ARRAY_BUFFER,
150 | srcData: .arrayBuffer(
| `- error: cannot infer contextual base in reference to member 'arrayBuffer'
151 | Float32Array([
152 | 0.0, 0.0,
[167/171] Emitting module WebGPU
BUILD FAILURE 6.2 linux