The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-addr2line, reference main (77986d), with Swift 6.2 (beta) for Android on 26 Aug 2025 19:03:42 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/swift-parca.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ordo-one/swift-parca
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 77986da Update README.md
Cloned https://github.com/ordo-one/swift-parca.git
Revision (git rev-parse @):
77986da5a0f9bce3c94959bbb6943d3c8a8a49c1
SUCCESS checkout https://github.com/ordo-one/swift-parca.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ordo-one/swift-parca.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-8C5A4AE7A8CE2BA.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Emitting module addr2line_swift
/host/spi-builder-workspace/Sources/Demangle.swift:8:12: error: Unsupported Platform
 6 |     @preconcurrency import Musl
 7 | #else
 8 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 9 | #endif
10 |
/host/spi-builder-workspace/Sources/addr2line.swift:8:12: error: Unsupported Platform
 6 |     @preconcurrency import Musl
 7 | #else
 8 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 9 | #endif
10 |
/host/spi-builder-workspace/Sources/Demangle.swift:23:28: error: cannot find 'dlopen' in scope
21 |
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
   |                            `- error: cannot find 'dlopen' in scope
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
25 |             stderrLog("Warning: swift_demangle symbol not found")
/host/spi-builder-workspace/Sources/Demangle.swift:23:40: error: cannot find 'RTLD_NOW' in scope
21 |
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
   |                                        `- error: cannot find 'RTLD_NOW' in scope
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
25 |             stderrLog("Warning: swift_demangle symbol not found")
/host/spi-builder-workspace/Sources/Demangle.swift:24:25: error: cannot find 'dlsym' in scope
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
   |                         `- error: cannot find 'dlsym' in scope
25 |             stderrLog("Warning: swift_demangle symbol not found")
26 |             return nil
/host/spi-builder-workspace/Sources/Demangle.swift:23:35: error: 'nil' requires a contextual type
21 |
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
   |                                   `- error: 'nil' requires a contextual type
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
25 |             stderrLog("Warning: swift_demangle symbol not found")
[4/8] Compiling addr2line_swift Demangle.swift
/host/spi-builder-workspace/Sources/Demangle.swift:8:12: error: Unsupported Platform
 6 |     @preconcurrency import Musl
 7 | #else
 8 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 9 | #endif
10 |
/host/spi-builder-workspace/Sources/addr2line.swift:8:12: error: Unsupported Platform
 6 |     @preconcurrency import Musl
 7 | #else
 8 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 9 | #endif
10 |
/host/spi-builder-workspace/Sources/Demangle.swift:23:28: error: cannot find 'dlopen' in scope
21 |
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
   |                            `- error: cannot find 'dlopen' in scope
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
25 |             stderrLog("Warning: swift_demangle symbol not found")
/host/spi-builder-workspace/Sources/Demangle.swift:23:40: error: cannot find 'RTLD_NOW' in scope
21 |
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
   |                                        `- error: cannot find 'RTLD_NOW' in scope
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
25 |             stderrLog("Warning: swift_demangle symbol not found")
/host/spi-builder-workspace/Sources/Demangle.swift:24:25: error: cannot find 'dlsym' in scope
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
   |                         `- error: cannot find 'dlsym' in scope
25 |             stderrLog("Warning: swift_demangle symbol not found")
26 |             return nil
/host/spi-builder-workspace/Sources/Demangle.swift:23:35: error: 'nil' requires a contextual type
21 |
22 |     static let swiftDemangleFunction: Swift_Demangle? = {
23 |         let RTLD_DEFAULT = dlopen(nil, RTLD_NOW)
   |                                   `- error: 'nil' requires a contextual type
24 |         guard let sym = dlsym(RTLD_DEFAULT, "swift_demangle") else {
25 |             stderrLog("Warning: swift_demangle symbol not found")
/host/spi-builder-workspace/Sources/Demangle.swift:54:27: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
52 |         }
53 |         defer { cDemangled.deallocate() }
54 |         fputs(cDemangled, stdout)
   |                           `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
55 |         return true
56 |     }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
[5/8] Compiling addr2line_swift addr2line.swift
/host/spi-builder-workspace/Sources/Demangle.swift:8:12: error: Unsupported Platform
 6 |     @preconcurrency import Musl
 7 | #else
 8 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 9 | #endif
10 |
/host/spi-builder-workspace/Sources/addr2line.swift:8:12: error: Unsupported Platform
 6 |     @preconcurrency import Musl
 7 | #else
 8 |     #error("Unsupported Platform")
   |            `- error: Unsupported Platform
 9 | #endif
10 |
/host/spi-builder-workspace/Sources/addr2line.swift:48:17: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
46 |
47 |         setvbuf(inputPipe, nil, _IONBF, 0)
48 |         setvbuf(stdout, nil, _IOLBF, 0)
   |                 `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
49 |
50 |         var linePtr: UnsafeMutablePointer<CChar>? = nil
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/addr2line.swift:67:29: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
65 |             // Not Swift, print what is passed from addr2line
66 |             if !isDemangled {
67 |                 fputs(line, stdout)
   |                             `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
68 |             }
69 |             fputc(Int32(UInt8(ascii: "\n")), stdout)
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
/host/spi-builder-workspace/Sources/addr2line.swift:69:46: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
67 |                 fputs(line, stdout)
68 |             }
69 |             fputc(Int32(UInt8(ascii: "\n")), stdout)
   |                                              `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
70 |         }
71 |     }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
BUILD FAILURE 6.2 android