The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-pjsip-gen, reference 0.2.0 (36b4a6), with Swift 6.1 for Android on 18 Oct 2026 07:17:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/laconicman/swift-pjsip-gen.git
Reference: 0.2.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/laconicman/swift-pjsip-gen
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 36b4a69 Merge pull request #11 from laconicman/docs/6-release-0.2.0
Cloned https://github.com/laconicman/swift-pjsip-gen.git
Revision (git rev-parse @):
36b4a69974bbc34e12fafeabe8e7ef09e284a77f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/laconicman/swift-pjsip-gen.git at 0.2.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/laconicman/swift-pjsip-gen.git
https://github.com/laconicman/swift-pjsip-gen.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:639806e3270a7d76362a869fc7a464db4368085eea7ecdf63d02ce60a0298950
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[1/1] Compiling plugin PJSIPSwiftGenCommand
[2/2] Compiling plugin PJSIPSwiftGenPlugin
Building for debugging...
[2/15] Write sources
[6/15] Write swift-version-24593BA9C3E375BF.txt
[8/31] Compiling PJSIPSwiftGenCore MacroResolver.swift
[9/31] Compiling PJSIPSwiftGenCore CHeaderParser.swift
[10/31] Compiling PJSIPSwiftGenCore StructGenerator.swift
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/StructGenerator.swift:18:57: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 16 |         contentsOfFile: headerPath, encoding: .utf8
 17 |     ) else {
 18 |         fputs("  Error: cannot read '\(headerPath)'\n", stderr)
    |                                                         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 19 |         return report
 20 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/StructGenerator.swift:24:81: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 22 |     let source = stripBlockComments(rawSource)
 23 |     guard let fields = parseStruct(named: structName, in: source) else {
 24 |         fputs("  Error: struct '\(structName)' not found in '\(headerPath)'\n", stderr)
    |                                                                                 `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 25 |         return report
 26 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
[11/31] Compiling PJSIPSwiftGenCore TypeDiscoverer.swift
[12/31] Compiling PJSIPSwiftGenCore GeneratorUtils.swift
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/GeneratorUtils.swift:6:39: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 4 |     do {
 5 |         try content.write(toFile: path, atomically: true, encoding: .utf8)
 6 |         fputs("  Written: \(path)\n", stderr)
   |                                       `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 7 |     } catch {
 8 |         fputs("  Error writing '\(path)': \(error)\n", stderr)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/GeneratorUtils.swift:8:56: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 6 |         fputs("  Written: \(path)\n", stderr)
 7 |     } catch {
 8 |         fputs("  Error writing '\(path)': \(error)\n", stderr)
   |                                                        `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 9 |     }
10 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/GeneratorUtils.swift:22:52: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 |        let existing = try? String(contentsOfFile: path, encoding: .utf8),
21 |        !existing.hasPrefix(autoGenMarker) {
22 |         fputs("  Skipped (overridden): \(path)\n", stderr)
   |                                                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |         return
24 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/GeneratorUtils.swift:86:59: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
84 |         fputs("  Warning: guard '#if \(condition)' on \(what) could not be evaluated; "
85 |               + "omitted (the compiling direction). If it should be present, check the "
86 |               + "headers dir passed to MacroResolver.\n", stderr)
   |                                                           `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
87 |     }
88 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
[13/31] Compiling PJSIPSwiftGenCore EnumGenerator.swift
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/EnumGenerator.swift:18:57: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 16 |         contentsOfFile: headerPath, encoding: .utf8
 17 |     ) else {
 18 |         fputs("  Error: cannot read '\(headerPath)'\n", stderr)
    |                                                         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 19 |         return report
 20 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/EnumGenerator.swift:24:77: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 22 |     let source = stripBlockComments(rawSource)
 23 |     guard let cases = parseEnum(named: enumName, in: source) else {
 24 |         fputs("  Error: enum '\(enumName)' not found in '\(headerPath)'\n", stderr)
    |                                                                             `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 25 |         return report
 26 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
[14/31] Emitting module PJSIPSwiftGenCore
[15/31] Compiling PJSIPSwiftGenCore Config.swift
[16/32] Wrapping AST for PJSIPSwiftGenCore for debugging
[18/34] Emitting module pjsip_swift_gen
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:41:20: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 39 | guard let verbRaw = nextArg(),
 40 |       let subcommand = Subcommand(rawValue: verbRaw) else {
 41 |     printUsage(to: stderr)
    |                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 42 |     exit(1)
 43 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:46:57: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 44 |
 45 | guard let configPath = nextArg() else {
 46 |     fputs("Error: missing <config.json> argument.\n\n", stderr)
    |                                                         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 47 |     printUsage(to: stderr)
 48 |     exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:47:20: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 45 | guard let configPath = nextArg() else {
 46 |     fputs("Error: missing <config.json> argument.\n\n", stderr)
 47 |     printUsage(to: stderr)
    |                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 48 |     exit(1)
 49 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:60:56: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 58 |         pjsipHeadersDirOverride = nextArg()
 59 |     default:
 60 |         fputs("Error: unknown argument '\(arg)'.\n\n", stderr)
    |                                                        `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 61 |         printUsage(to: stderr)
 62 |         exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:61:24: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 59 |     default:
 60 |         fputs("Error: unknown argument '\(arg)'.\n\n", stderr)
 61 |         printUsage(to: stderr)
    |                        `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 62 |         exit(1)
 63 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:72:52: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 70 |
 71 | guard let configData = try? Data(contentsOf: configURL) else {
 72 |     fputs("Error: cannot read '\(configPath)'.\n", stderr)
    |                                                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 73 |     exit(1)
 74 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:80:47: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 78 |     config = try JSONDecoder().decode(PJSIPSwiftGenConfig.self, from: configData)
 79 | } catch {
 80 |     fputs("Error parsing config: \(error)\n", stderr)
    |                                               `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 81 |     exit(1)
 82 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:97:9: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 95 |         or pass `--pjsip-headers-dir DIR` on the command line.
 96 |         """,
 97 |         stderr
    |         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 98 |     )
 99 |     exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:108:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
106 |     result = try discoverTypes(config: config, pjprojectRoot: pjRoot)
107 | } catch {
108 |     fputs("Error: \(error)\n", stderr)
    |                                `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
109 |     exit(1)
110 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:124:68: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 | case .generate:
123 |     guard let outputDir else {
124 |         fputs("Error: --output-dir is required for `generate`.\n", stderr)
    |                                                                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
125 |         exit(1)
126 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:130:9: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
128 |     fputs(
129 |         "Discovered \(result.enums.count) enums, \(result.structs.count) structs.\n",
130 |         stderr
    |         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
131 |     )
132 |
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:147:73: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
145 |     if !macros.isResolved {
146 |         fputs("  Warning: could not preprocess '\(pjRoot)' to resolve macro guards; "
147 |               + "every guarded member will be omitted and reported.\n", stderr)
    |                                                                         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
148 |     }
149 |
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:174:55: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
172 |     }
173 |
174 |     fputs("Done. Generated files in \(outputDir).\n", stderr)
    |                                                       `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
175 |
176 |     // A guard we could not evaluate is NOT a warning to scroll past. Inside a SwiftPM
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:190:14: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
188 |         that and re-run — do not ship this output.
189 |         \(report.unresolved.map { "  - " + $0 }.joined(separator: "\n"))\n
190 |         """, stderr)
    |              `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
191 |         exit(1)
192 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
[19/34] Compiling pjsip_swift_gen main.swift
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:41:20: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 39 | guard let verbRaw = nextArg(),
 40 |       let subcommand = Subcommand(rawValue: verbRaw) else {
 41 |     printUsage(to: stderr)
    |                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 42 |     exit(1)
 43 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:46:57: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 44 |
 45 | guard let configPath = nextArg() else {
 46 |     fputs("Error: missing <config.json> argument.\n\n", stderr)
    |                                                         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 47 |     printUsage(to: stderr)
 48 |     exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:47:20: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 45 | guard let configPath = nextArg() else {
 46 |     fputs("Error: missing <config.json> argument.\n\n", stderr)
 47 |     printUsage(to: stderr)
    |                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 48 |     exit(1)
 49 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:60:56: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 58 |         pjsipHeadersDirOverride = nextArg()
 59 |     default:
 60 |         fputs("Error: unknown argument '\(arg)'.\n\n", stderr)
    |                                                        `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 61 |         printUsage(to: stderr)
 62 |         exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:61:24: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 59 |     default:
 60 |         fputs("Error: unknown argument '\(arg)'.\n\n", stderr)
 61 |         printUsage(to: stderr)
    |                        `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 62 |         exit(1)
 63 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:72:52: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 70 |
 71 | guard let configData = try? Data(contentsOf: configURL) else {
 72 |     fputs("Error: cannot read '\(configPath)'.\n", stderr)
    |                                                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 73 |     exit(1)
 74 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:80:47: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 78 |     config = try JSONDecoder().decode(PJSIPSwiftGenConfig.self, from: configData)
 79 | } catch {
 80 |     fputs("Error parsing config: \(error)\n", stderr)
    |                                               `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 81 |     exit(1)
 82 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:97:9: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 95 |         or pass `--pjsip-headers-dir DIR` on the command line.
 96 |         """,
 97 |         stderr
    |         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 98 |     )
 99 |     exit(1)
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:108:32: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
106 |     result = try discoverTypes(config: config, pjprojectRoot: pjRoot)
107 | } catch {
108 |     fputs("Error: \(error)\n", stderr)
    |                                `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
109 |     exit(1)
110 | }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:124:68: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
122 | case .generate:
123 |     guard let outputDir else {
124 |         fputs("Error: --output-dir is required for `generate`.\n", stderr)
    |                                                                    `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
125 |         exit(1)
126 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:130:9: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
128 |     fputs(
129 |         "Discovered \(result.enums.count) enums, \(result.structs.count) structs.\n",
130 |         stderr
    |         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
131 |     )
132 |
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:147:73: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
145 |     if !macros.isResolved {
146 |         fputs("  Warning: could not preprocess '\(pjRoot)' to resolve macro guards; "
147 |               + "every guarded member will be omitted and reported.\n", stderr)
    |                                                                         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
148 |     }
149 |
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:174:55: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
172 |     }
173 |
174 |     fputs("Done. Generated files in \(outputDir).\n", stderr)
    |                                                       `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
175 |
176 |     // A guard we could not evaluate is NOT a warning to scroll past. Inside a SwiftPM
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:190:14: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
188 |         that and re-run — do not ship this output.
189 |         \(report.unresolved.map { "  - " + $0 }.joined(separator: "\n"))\n
190 |         """, stderr)
    |              `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
191 |         exit(1)
192 |     }
/usr/include/stdio.h:145:14: note: var declared here
143 | extern FILE *stdin;		/* Standard input stream.  */
144 | extern FILE *stdout;		/* Standard output stream.  */
145 | extern FILE *stderr;		/* Standard error output stream.  */
    |              `- note: var declared here
146 | /* C89/C99 say they're macros.  Make them happy.  */
147 | #define stdin stdin
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:37:29: error: main actor-isolated var 'rawArgs' can not be referenced from a nonisolated context
 34 | }
 35 |
 36 | var rawArgs = Array(CommandLine.arguments.dropFirst())
    |     `- note: var declared here
 37 | func nextArg() -> String? { rawArgs.isEmpty ? nil : rawArgs.removeFirst() }
    |      |                      `- error: main actor-isolated var 'rawArgs' can not be referenced from a nonisolated context
    |      `- note: add '@MainActor' to make global function 'nextArg()' part of global actor 'MainActor'
 38 |
 39 | guard let verbRaw = nextArg(),
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:37:53: error: main actor-isolated var 'rawArgs' can not be mutated from a nonisolated context
 34 | }
 35 |
 36 | var rawArgs = Array(CommandLine.arguments.dropFirst())
    |     `- note: mutation of this var is only permitted within the actor
 37 | func nextArg() -> String? { rawArgs.isEmpty ? nil : rawArgs.removeFirst() }
    |      |                                              `- error: main actor-isolated var 'rawArgs' can not be mutated from a nonisolated context
    |      `- note: add '@MainActor' to make global function 'nextArg()' part of global actor 'MainActor'
 38 |
 39 | guard let verbRaw = nextArg(),
/host/spi-builder-workspace/Sources/PJSIPSwiftGenCore/StructGenerator.swift:18:57: warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 16 |         contentsOfFile: headerPath, encoding: .utf8
 17 |     ) else {
 18 |         fputs("  Error: cannot read '\(headerPath)'\n", stderr)
    |                                                         `- warning: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 19 |         return report
 20 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:64:23: note: var declared here
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
    |                       `- note: var declared here
 65 |
 66 | /* C99 and earlier plus current C++ standards say these must be macros. */
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:639806e3270a7d76362a869fc7a464db4368085eea7ecdf63d02ce60a0298950
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin PJSIPSwiftGenCommand
[2/2] Compiling plugin PJSIPSwiftGenPlugin
Building for debugging...
[2/11] Write swift-version-24593BA9C3E375BF.txt
[4/27] Compiling PJSIPSwiftGenCore StructGenerator.swift
[5/27] Compiling PJSIPSwiftGenCore EnumGenerator.swift
[6/27] Compiling PJSIPSwiftGenCore Config.swift
[7/27] Compiling PJSIPSwiftGenCore CHeaderParser.swift
[8/27] Emitting module PJSIPSwiftGenCore
[9/27] Compiling PJSIPSwiftGenCore MacroResolver.swift
[10/27] Compiling PJSIPSwiftGenCore GeneratorUtils.swift
[11/27] Compiling PJSIPSwiftGenCore TypeDiscoverer.swift
[13/29] Compiling pjsip_swift_gen main.swift
[14/29] Emitting module pjsip_swift_gen
[15/30] Wrapping AST for pjsip-swift-gen for debugging
[16/30] Write Objects.LinkFileList
[17/30] Linking pjsip-swift-gen-tool
[19/30] Compiling PJSIPSwiftGenCore TypeDiscoverer.swift
[20/30] Compiling PJSIPSwiftGenCore StructGenerator.swift
[21/30] Compiling PJSIPSwiftGenCore CHeaderParser.swift
[22/30] Compiling PJSIPSwiftGenCore EnumGenerator.swift
[23/30] Compiling PJSIPSwiftGenCore MacroResolver.swift
[24/30] Compiling PJSIPSwiftGenCore GeneratorUtils.swift
[25/30] Emitting module PJSIPSwiftGenCore
[26/30] Compiling PJSIPSwiftGenCore Config.swift
[27/31] Wrapping AST for PJSIPSwiftGenCore for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/33] Emitting module pjsip_swift_gen
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:15:49: error: cannot find type 'FILE' in scope
 13 | }
 14 |
 15 | func printUsage(to stream: UnsafeMutablePointer<FILE>) {
    |                                                 `- error: cannot find type 'FILE' in scope
 16 |     fputs(
 17 |         """
[30/33] Compiling pjsip_swift_gen main.swift
/host/spi-builder-workspace/Sources/pjsip-swift-gen/main.swift:15:49: error: cannot find type 'FILE' in scope
 13 | }
 14 |
 15 | func printUsage(to stream: UnsafeMutablePointer<FILE>) {
    |                                                 `- error: cannot find type 'FILE' in scope
 16 |     fputs(
 17 |         """
BUILD FAILURE 6.1 android