Build Information
Successful build of gir2swift, reference 17.0.0 (d00424
), with Swift 6.2 (beta) for Linux on 23 Jun 2025 07:50:02 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/rhx/gir2swift.git
Reference: 17.0.0
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/rhx/gir2swift
* tag 17.0.0 -> FETCH_HEAD
HEAD is now at d004249 Merge branch 'development'
Cloned https://github.com/rhx/gir2swift.git
Revision (git rev-parse @):
d004249c82a8d374f1db928f3fcd99964a446937
SUCCESS checkout https://github.com/rhx/gir2swift.git at 17.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/rhx/gir2swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/rhx/SwiftLibXML.git
[1/306] Fetching swiftlibxml
Fetched https://github.com/rhx/SwiftLibXML.git from cache (0.35s)
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser
[1/10874] Fetching yams
[654/26254] Fetching yams, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.64s)
[7504/10874] Fetching yams
Fetched https://github.com/jpsim/Yams.git from cache (2.65s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 4.0.6 (3.44s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.74s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
Creating working copy for https://github.com/rhx/SwiftLibXML.git
Working copy of https://github.com/rhx/SwiftLibXML.git resolved at main (1b9b259)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 4.0.6
[1/1] Compiling plugin gir2swift-plugin
[2/2] Compiling plugin GenerateManual
Building for debugging...
[2/43] Write sources
[10/43] Write swift-version-24593BA9C3E375BF.txt
[11/43] Compiling writer.c
[12/43] Compiling api.c
[13/45] Compiling parser.c
[15/57] Compiling writer.c
[16/57] Compiling reader.c
[17/57] Compiling emitter.c
[18/57] Write sources
[19/57] Compiling emitter.c
[20/57] Write sources
[21/57] Compiling scanner.c
[21/57] Write sources
[24/57] Compiling reader.c
[25/76] Compiling api.c
[26/76] Compiling scanner.c
[28/91] Emitting module SwiftLibXML
[30/91] Emitting module Yams
[31/92] Compiling SwiftLibXML EmptySequence.swift
[32/92] Compiling Yams Mark.swift
[33/92] Compiling Yams Node.Mapping.swift
[34/92] Compiling ArgumentParserToolInfo ToolInfo.swift
[35/92] Emitting module ArgumentParserToolInfo
[36/93] Compiling Yams YamlError.swift
[38/131] Compiling ArgumentParserToolInfo ToolInfo.swift
[39/131] Emitting module ArgumentParserToolInfo
[39/132] Wrapping AST for ArgumentParserToolInfo for debugging
[43/170] Compiling ArgumentParser CompletionKind.swift
[44/170] Compiling ArgumentParser Errors.swift
[45/170] Compiling ArgumentParser Flag.swift
[46/170] Compiling ArgumentParser NameSpecification.swift
[47/170] Compiling ArgumentParser Option.swift
[48/175] Compiling SwiftLibXML XMLPath.swift
[49/175] Compiling SwiftLibXML XMLNameSpace.swift
[50/175] Compiling ArgumentParser OptionGroup.swift
[51/175] Compiling ArgumentParser AsyncParsableCommand.swift
[52/175] Compiling ArgumentParser CommandConfiguration.swift
[53/175] Compiling ArgumentParser CommandGroup.swift
[54/175] Compiling ArgumentParser EnumerableFlag.swift
[55/180] Compiling SwiftLibXML XMLAttribute.swift
[56/180] Compiling SwiftLibXML XMLNameSpace.swift
[57/180] Compiling SwiftLibXML XMLPath.swift
[58/180] Compiling SwiftLibXML XMLElement.swift
[60/180] Compiling SwiftLibXML XMLAttribute.swift
[61/180] Compiling SwiftLibXML EmptySequence.swift
[62/180] Compiling SwiftLibXML XMLDocument.swift
[68/182] Compiling ArgumentParser Argument.swift
[69/182] Compiling ArgumentParser ArgumentHelp.swift
[70/182] Compiling ArgumentParser FishCompletionsGenerator.swift
[71/182] Compiling ArgumentParser ZshCompletionsGenerator.swift
[73/183] Wrapping AST for SwiftLibXML for debugging
[77/183] Compiling ArgumentParser BashCompletionsGenerator.swift
[78/183] Compiling ArgumentParser CompletionsGenerator.swift
[78/183] Wrapping AST for SwiftLibXML for debugging
[89/183] Compiling ArgumentParser ArgumentVisibility.swift
[93/184] Emitting module Yams
[95/184] Wrapping AST for Yams for debugging
[103/184] Emitting module ArgumentParser
[104/184] Compiling Yams YamlError.swift
[111/185] Wrapping AST for Yams for debugging
[113/185] Compiling ArgumentParser ArgumentDefinition.swift
[114/185] Compiling ArgumentParser ArgumentSet.swift
[115/185] Compiling ArgumentParser CommandParser.swift
[116/185] Compiling ArgumentParser InputKey.swift
[117/185] Compiling ArgumentParser InputOrigin.swift
[118/185] Emitting module ArgumentParser
[125/185] Compiling ArgumentParser CollectionExtensions.swift
[126/185] Compiling ArgumentParser Platform.swift
[127/185] Compiling ArgumentParser SequenceExtensions.swift
[128/185] Compiling ArgumentParser StringExtensions.swift
[129/185] Compiling ArgumentParser Tree.swift
[135/185] Compiling ArgumentParser Name.swift
[136/185] Compiling ArgumentParser Parsed.swift
[137/185] Compiling ArgumentParser ParsedValues.swift
[138/185] Compiling ArgumentParser ParserError.swift
[139/185] Compiling ArgumentParser SplitArguments.swift
[140/185] Compiling ArgumentParser DumpHelpGenerator.swift
[141/185] Compiling ArgumentParser HelpCommand.swift
[142/185] Compiling ArgumentParser HelpGenerator.swift
[143/185] Compiling ArgumentParser MessageInfo.swift
[144/185] Compiling ArgumentParser UsageGenerator.swift
[145/185] Compiling ArgumentParser ExpressibleByArgument.swift
[146/185] Compiling ArgumentParser ParsableArguments.swift
[147/185] Compiling ArgumentParser ParsableArgumentsValidation.swift
[148/185] Compiling ArgumentParser ParsableCommand.swift
[149/185] Compiling ArgumentParser ArgumentDecoder.swift
[166/186] Wrapping AST for ArgumentParser for debugging
[168/227] Compiling libgir2swift GirArgument.swift
[169/227] Compiling libgir2swift GirBitfield.swift
[170/227] Compiling libgir2swift GirCType.swift
[171/227] Compiling libgir2swift GirCallback.swift
[172/227] Compiling libgir2swift GirClass.swift
[173/227] Compiling libgir2swift GirInterface.swift
[174/227] Compiling libgir2swift GirMethod.swift
[175/227] Compiling libgir2swift GirProperty.swift
[176/227] Compiling libgir2swift GirRecord.swift
[177/227] Compiling libgir2swift GirSignal.swift
[178/228] Wrapping AST for ArgumentParser for debugging
[180/269] Compiling libgir2swift Character+Utilities.swift
[181/269] Compiling libgir2swift Collection+Utilities.swift
[182/269] Compiling libgir2swift Streams.swift
[183/269] Compiling libgir2swift String+Substring.swift
[184/269] Compiling libgir2swift String+Utilities.swift
[185/274] Compiling libgir2swift GirEnumeration.swift
[186/274] Compiling libgir2swift GirField.swift
[187/274] Compiling libgir2swift GirFunction.swift
[188/274] Compiling libgir2swift GirInterface.swift
[189/274] Compiling libgir2swift GirMethod.swift
[190/274] Compiling libgir2swift GirProperty.swift
[196/279] Compiling libgir2swift GirBitfield.swift
[197/279] Compiling libgir2swift GirCType.swift
[198/279] Compiling libgir2swift GirCallback.swift
[199/279] Compiling libgir2swift GirClass.swift
[200/279] Compiling libgir2swift GirConstant.swift
[201/279] Compiling libgir2swift GirDatatype.swift
[202/279] Compiling libgir2swift GirRecord.swift
[203/279] Compiling libgir2swift GirSignal.swift
[204/279] Compiling libgir2swift GirThing.swift
[205/279] Compiling libgir2swift GirUnion.swift
[206/279] Compiling libgir2swift girtype+xml.swift
[224/279] Compiling libgir2swift Gir2Swift.swift
[225/279] Compiling libgir2swift GirType.swift
[226/279] Compiling libgir2swift TypeConversion.swift
[227/279] Compiling libgir2swift TypeReference.swift
[228/279] Compiling libgir2swift GirAlias.swift
[229/279] Compiling libgir2swift GirArgument.swift
[230/279] Compiling libgir2swift gtk2swiftdoc.swift
[231/279] Compiling libgir2swift ConversionContext.swift
[232/279] Compiling libgir2swift Gir+Enums.swift
[233/279] Compiling libgir2swift Gir+KnowTypeSets.swift
[234/279] Compiling libgir2swift Gir+KnownTypes.swift
[235/279] Compiling libgir2swift Gir.swift
[248/279] Compiling libgir2swift System.swift
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[249/279] Compiling libgir2swift XML+Utilities.swift
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[250/279] Compiling libgir2swift generation.swift
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[251/279] Compiling libgir2swift planning.swift
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[252/279] Compiling libgir2swift postprocessing.swift
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:146:49: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
144 | try newContent.write(toFile: fileName, atomically: true, encoding: .utf8)
145 | }
146 | outq.async(group: queues) { outputFiles.insert(fileName) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
147 | } catch {
148 | outq.async(group: queues) { print("\(error)", to: &Streams.stdErr) }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:136:18: warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
134 | if outputDirectory == nil { outputString += modulePrefix + preamble }
135 |
136 | func write(_ string: String, to fileName: String, preamble: String = preamble, append doAppend: Bool = false) {
| `- warning: concurrently-executed local function 'write(_:to:preamble:append:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
137 | do {
138 | if doAppend && fileManager.fileExists(atPath: fileName) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:206:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
204 | return convert(type)
205 | }.joined(separator: "\n\n")
206 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
207 | }
208 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:218:53: warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
216 | if useAlphaNames {
217 | try? preamble.write(toFile: f, atomically: true, encoding: .utf8)
218 | outq.async(group: queues) { outputFiles.insert(f) }
| `- warning: mutation of captured var 'outputFiles' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
219 | }
220 | }
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:229:49: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
227 | write(aliases, to: f)
228 | } else {
229 | outq.async(group: queues) { outputString += aliases } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
230 | }
231 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:236:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
234 | let f = "\(dir)/\(node)-callbacks.swift"
235 | write(callbacks, to: f)
236 | } else { outq.async(group: queues) { outputString += callbacks } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
237 | }
238 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:243:55: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
241 | let f = "\(dir)/\(node)-constants.swift"
242 | write(constants, to: f)
243 | } else { outq.async(group: queues) { outputString += constants } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
244 | }
245 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:250:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
248 | let f = "\(dir)/\(node)-enumerations.swift"
249 | write(enumerations, to: f)
250 | } else { outq.async(group: queues) { outputString += enumerations } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
251 | }
252 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:257:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
255 | let f = "\(dir)/\(node)-bitfields.swift"
256 | write(bitfields, to: f)
257 | } else { outq.async(group: queues) { outputString += bitfields } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
258 | }
259 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:265:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
263 | let f = "\(dir)/\(node)-unions.swift"
264 | write(unions, to: f)
265 | } else { outq.async(group: queues) { outputString += unions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
266 | }
267 | background.async(group: queues) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: concurrently-executed local function 'write(_:using:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:154:18: warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 | queue.async(group: queues) { write(string, to: fileName, append: doAppend) }
153 | }
154 | func write<T: GIR.Record>(_ types: [T], using ptrconvert: (String) -> (GIR.Record) -> String) {
| `- warning: capture of non-Sendable type 'τ_0_0.Type' in an isolated closure; this is an error in the Swift 6 language mode
155 | if let dir = outputDirectory {
156 | var output = ""
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:296:54: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
294 | let f = "\(dir)/\(node)-functions.swift"
295 | write(functions, to: f)
296 | } else { outq.async(group: queues) { outputString += functions } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
297 | }
298 | if !(namespace.isEmpty && extensionNamespace.isEmpty) {
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:314:53: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
312 | write(code, to: f, preamble: preamble)
313 | } else {
314 | outq.async(group: queues) { outputString += code }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
315 | }
316 | let indent = " "
/host/spi-builder-workspace/Sources/libgir2swift/utilities/generation.swift:345:63: warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
343 | if let f = outputFile {
344 | write(code, to: f, append: true)
345 | } else { outq.async(group: queues) { outputString += code } }
| `- warning: mutation of captured var 'outputString' in concurrently-executing code; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
346 | }
347 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[258/279] Compiling libgir2swift CodeBuilder.swift
[259/279] Compiling libgir2swift c2swift.swift
[260/279] Compiling libgir2swift emit-class.swift
[261/279] Compiling libgir2swift emit-signals.swift
[262/279] Compiling libgir2swift gir+swift.swift
[263/279] Compiling libgir2swift girtypes+swift.swift
[264/279] Emitting module libgir2swift
[265/280] Wrapping AST for libgir2swift for debugging
[267/282] Emitting module gir2swift
[268/282] Compiling gir2swift main.swift
[269/283] Wrapping AST for gir2swift for debugging
[270/283] Write Objects.LinkFileList
[271/283] Linking gir2swift
[273/283] Emitting module libgir2swift
[280/286] Wrapping AST for libgir2swift for debugging
[282/286] Compiling gir2swift main.swift
[283/286] Emitting module gir2swift
[284/287] Wrapping AST for gir2swift for debugging
[285/287] Write Objects.LinkFileList
[286/287] Linking gir2swift-tool
Build complete! (139.00s)
Build complete.
{
"dependencies" : [
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.6",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
},
{
"identity" : "swiftlibxml",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/rhx/SwiftLibXML.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "gir2swift",
"name" : "gir2swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "gir2swift",
"targets" : [
"gir2swift"
],
"type" : {
"executable" : null
}
},
{
"name" : "libgir2swift",
"targets" : [
"libgir2swift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "gir2swift-plugin",
"targets" : [
"gir2swift-plugin"
],
"type" : {
"plugin" : null
}
}
],
"targets" : [
{
"c99name" : "libgir2swift",
"module_type" : "SwiftTarget",
"name" : "libgir2swift",
"path" : "Sources/libgir2swift",
"product_dependencies" : [
"SwiftLibXML",
"ArgumentParser",
"Yams"
],
"product_memberships" : [
"gir2swift",
"libgir2swift",
"gir2swift-plugin"
],
"sources" : [
"emitting/CodeBuilder.swift",
"emitting/c2swift.swift",
"emitting/emit-class.swift",
"emitting/emit-signals.swift",
"emitting/gir+swift.swift",
"emitting/girtypes+swift.swift",
"emitting/gtk2swiftdoc.swift",
"models/ConversionContext.swift",
"models/Gir+Enums.swift",
"models/Gir+KnowTypeSets.swift",
"models/Gir+KnownTypes.swift",
"models/Gir.swift",
"models/Gir2Swift.swift",
"models/GirType.swift",
"models/TypeConversion.swift",
"models/TypeReference.swift",
"models/gir elements/GirAlias.swift",
"models/gir elements/GirArgument.swift",
"models/gir elements/GirBitfield.swift",
"models/gir elements/GirCType.swift",
"models/gir elements/GirCallback.swift",
"models/gir elements/GirClass.swift",
"models/gir elements/GirConstant.swift",
"models/gir elements/GirDatatype.swift",
"models/gir elements/GirEnumeration.swift",
"models/gir elements/GirField.swift",
"models/gir elements/GirFunction.swift",
"models/gir elements/GirInterface.swift",
"models/gir elements/GirMethod.swift",
"models/gir elements/GirProperty.swift",
"models/gir elements/GirRecord.swift",
"models/gir elements/GirSignal.swift",
"models/gir elements/GirThing.swift",
"models/gir elements/GirUnion.swift",
"models/girtype+xml.swift",
"utilities/Character+Utilities.swift",
"utilities/Collection+Utilities.swift",
"utilities/Streams.swift",
"utilities/String+Substring.swift",
"utilities/String+Utilities.swift",
"utilities/System.swift",
"utilities/XML+Utilities.swift",
"utilities/generation.swift",
"utilities/planning.swift",
"utilities/postprocessing.swift"
],
"type" : "library"
},
{
"c99name" : "gir2swiftTests",
"module_type" : "SwiftTarget",
"name" : "gir2swiftTests",
"path" : "Tests/gir2swiftTests",
"sources" : [
"gir2swiftTests.swift"
],
"target_dependencies" : [
"libgir2swift"
],
"type" : "test"
},
{
"c99name" : "gir2swift_plugin",
"module_type" : "PluginTarget",
"name" : "gir2swift-plugin",
"path" : "Plugins/gir2swift-plugin",
"plugin_capability" : {
"type" : "buildTool"
},
"product_memberships" : [
"gir2swift-plugin"
],
"sources" : [
"plugin.swift"
],
"target_dependencies" : [
"gir2swift"
],
"type" : "plugin"
},
{
"c99name" : "gir2swift",
"module_type" : "SwiftTarget",
"name" : "gir2swift",
"path" : "Sources/gir2swift",
"product_memberships" : [
"gir2swift",
"gir2swift-plugin"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"libgir2swift"
],
"type" : "executable"
}
],
"tools_version" : "5.6"
}
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
Done.