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 DangerSwiftPeriphery, reference 1.4.1 (5f23e6), with Swift 6.1 for Android on 29 May 2025 09:59:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/taji-taji/DangerSwiftPeriphery.git
Reference: 1.4.1
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/taji-taji/DangerSwiftPeriphery
 * tag               1.4.1      -> FETCH_HEAD
HEAD is now at 5f23e62 Change isDevelop flag to release 1.4.1
Cloned https://github.com/taji-taji/DangerSwiftPeriphery.git
Revision (git rev-parse @):
5f23e62994752abfee679f944a8f8d20a0228b9e
SUCCESS checkout https://github.com/taji-taji/DangerSwiftPeriphery.git at 1.4.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/taji-taji/DangerSwiftPeriphery.git
https://github.com/taji-taji/DangerSwiftPeriphery.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/danger/swift.git"
    },
    {
      "identity" : "swift-shell",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/taji-taji/swift-shell.git"
    },
    {
      "identity" : "periphery",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/peripheryapp/periphery"
    }
  ],
  "manifest_display_name" : "DangerSwiftPeriphery",
  "name" : "DangerSwiftPeriphery",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "DangerSwiftPeriphery",
      "targets" : [
        "DangerSwiftPeriphery"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DangerSwiftPeriphery",
      "module_type" : "SwiftTarget",
      "name" : "DangerSwiftPeriphery",
      "path" : "Sources/DangerSwiftPeriphery",
      "product_dependencies" : [
        "Danger",
        "periphery",
        "SwiftShell"
      ],
      "product_memberships" : [
        "DangerSwiftPeriphery"
      ],
      "sources" : [
        "CheckstyleOutputParser.swift",
        "CurrentPathProvider.swift",
        "DangerDSL+Extensions.swift",
        "DangerPeriphery.swift",
        "FileDiff.swift",
        "Logger.swift",
        "PeripheryScanCommandBuilder.swift",
        "PeripheryScanExecutor.swift",
        "PeripheryScanOptions.swift",
        "PeripheryScanOptionsBuilder.swift",
        "PullRequestDiffProvidable.swift",
        "ShellExecutor.swift",
        "Violation.swift",
        "ViolationNotifier.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/peripheryapp/periphery
Fetching https://github.com/taji-taji/swift-shell.git
Fetching https://github.com/danger/swift.git
[1/148] Fetching swift-shell
[149/10412] Fetching swift-shell, swift
[7950/22601] Fetching swift-shell, swift, periphery
Fetched https://github.com/danger/swift.git from cache (0.61s)
[8437/12337] Fetching swift-shell, periphery
Fetched https://github.com/taji-taji/swift-shell.git from cache (0.95s)
Fetched https://github.com/peripheryapp/periphery from cache (0.97s)
Computing version for https://github.com/taji-taji/swift-shell.git
Computed https://github.com/taji-taji/swift-shell.git at 1.0.2 (3.39s)
Computing version for https://github.com/danger/swift.git
Computed https://github.com/danger/swift.git at 3.21.1 (0.58s)
Fetching https://github.com/shibapm/Logger
Fetching https://github.com/nerdishbynature/octokit.swift
Fetching https://github.com/mxcl/Version
[1/288] Fetching version
[289/404] Fetching version, logger
[401/5399] Fetching version, logger, octokit.swift
Fetched https://github.com/shibapm/Logger from cache (0.39s)
Fetched https://github.com/mxcl/Version from cache (0.39s)
Fetched https://github.com/nerdishbynature/octokit.swift from cache (0.39s)
Computing version for https://github.com/nerdishbynature/octokit.swift
Computed https://github.com/nerdishbynature/octokit.swift at 0.14.0 (0.94s)
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1554] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (1.69s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 3.3.0 (3.00s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.1.0 (0.98s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (3.53s)
Computing version for https://github.com/peripheryapp/periphery
Computed https://github.com/peripheryapp/periphery at 2.21.2 (1.01s)
Fetching https://github.com/tadija/AEXML
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/apple/swift-syntax
Fetching https://github.com/ileitch/swift-filename-matcher
[1/54] Fetching swift-filename-matcher
[55/2181] Fetching swift-filename-matcher, aexml
Fetched https://github.com/ileitch/swift-filename-matcher from cache (0.47s)
[1/10657] Fetching yams
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/kateinoigakukun/swift-indexstore
Fetched https://github.com/tadija/AEXML from cache (0.60s)
[3412/10976] Fetching yams, swift-indexstore
[6608/15367] Fetching yams, swift-indexstore, swift-system
Fetched https://github.com/kateinoigakukun/swift-indexstore from cache (0.31s)
[8371/15048] Fetching yams, swift-system
[11320/30427] Fetching yams, swift-system, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (0.54s)
[7082/26036] Fetching yams, swift-argument-parser
[21009/96488] Fetching yams, swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (2.20s)
Fetched https://github.com/jpsim/Yams from cache (5.91s)
Fetched https://github.com/apple/swift-syntax from cache (5.93s)
Computing version for https://github.com/kateinoigakukun/swift-indexstore
Computed https://github.com/kateinoigakukun/swift-indexstore at 0.3.0 (6.48s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 600.0.1 (0.79s)
Computing version for https://github.com/ileitch/swift-filename-matcher
Computed https://github.com/ileitch/swift-filename-matcher at 0.1.2 (0.59s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (0.51s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.4.0 (0.62s)
Computing version for https://github.com/tadija/AEXML
Computed https://github.com/tadija/AEXML at 4.7.0 (0.92s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (1.00s)
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at 3.3.0
Creating working copy for https://github.com/ileitch/swift-filename-matcher
Working copy of https://github.com/ileitch/swift-filename-matcher resolved at 0.1.2
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.4.0
Creating working copy for https://github.com/kateinoigakukun/swift-indexstore
Working copy of https://github.com/kateinoigakukun/swift-indexstore resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/peripheryapp/periphery
Working copy of https://github.com/peripheryapp/periphery resolved at 2.21.2
Creating working copy for https://github.com/nerdishbynature/octokit.swift
Working copy of https://github.com/nerdishbynature/octokit.swift resolved at 0.14.0
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/mxcl/Version
Working copy of https://github.com/mxcl/Version resolved at 2.1.0
Creating working copy for https://github.com/tadija/AEXML
Working copy of https://github.com/tadija/AEXML resolved at 4.7.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
Creating working copy for https://github.com/danger/swift.git
Working copy of https://github.com/danger/swift.git resolved at 3.21.1
Creating working copy for https://github.com/taji-taji/swift-shell.git
Working copy of https://github.com/taji-taji/swift-shell.git resolved at 1.0.2
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/50] Write sources
[7/50] Compiling reader.c
[8/50] Compiling _SwiftSyntaxCShims dummy.c
[8/50] Write sources
[25/50] Compiling _CIndexStore dummy.c
[25/50] Compiling parser.c
[27/50] Compiling writer.c
[28/50] Compiling CSystem shims.c
[29/50] Compiling api.c
[30/50] Write swift-version-24593BA9C3E375BF.txt
[31/50] Compiling emitter.c
[32/50] Compiling scanner.c
[34/103] Emitting module SystemPackage
[35/106] Compiling SystemPackage Util+StringArray.swift
[36/106] Compiling SystemPackage Util.swift
[37/106] Compiling SystemPackage UtilConsumers.swift
[38/106] Emitting module SwiftSyntax600
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[39/106] Compiling SwiftSyntax600 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[40/106] Emitting module SwiftSyntax510
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[41/106] Compiling SwiftSyntax510 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[42/108] Compiling SystemPackage FilePathTempPosix.swift
[43/108] Compiling SystemPackage FilePathTempWindows.swift
[44/108] Compiling SystemPackage FilePathWindows.swift
[45/108] Compiling SystemPackage FilePermissions.swift
[46/108] Compiling SystemPackage MachPort.swift
[47/108] Compiling SystemPackage PlatformString.swift
[48/108] Compiling SystemPackage SystemString.swift
[49/108] Compiling SwiftSyntax509 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[50/108] Emitting module SwiftSyntax509
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[51/108] Compiling SwiftIndexStore IndexStoreError.swift
[52/108] Compiling SwiftIndexStore IndexStoreOccurrence.swift
[53/108] Compiling SwiftIndexStore IndexStoreRelation.swift
[54/108] Compiling SwiftIndexStore IndexStoreSymbol.swift
[58/109] Compiling SwiftIndexStore IndexStoreUnit.swift
[61/134] Compiling Yams Anchor.swift
[62/134] Compiling Yams Constructor.swift
[63/134] Compiling Yams Node.Scalar.swift
[64/134] Compiling Yams Node.Sequence.swift
[65/134] Compiling Yams Parser.swift
[66/134] Compiling Yams RedundancyAliasingStrategy.swift
[67/134] Compiling Yams Representer.swift
[68/134] Compiling Yams Resolver.swift
[69/134] Compiling Yams String+Yams.swift
[70/134] Compiling Yams Tag.swift
[71/134] Compiling Yams YamlAnchorProviding.swift
[72/134] Compiling SystemPackage Exports.swift
[73/134] Compiling SystemPackage Mocking.swift
[74/134] Compiling SystemPackage RawBuffer.swift
[75/134] Compiling SystemPackage Syscalls.swift
[76/134] Compiling SystemPackage WindowsSyscallAdapters.swift
[78/135] Compiling SwiftIndexStore UnfairLock.swift
[79/135] Compiling SwiftIndexStore SwiftIndexStore.swift
[80/135] Compiling SwiftIndexStore LibIndexStore.swift
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                     `- error: cannot find 'RTLD_LAZY' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                                 `- error: cannot find 'RTLD_LOCAL' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
 28 |         #endif
 29 |
 30 |         let dylib = dlopen(url.path, flags)!
    |                     `- error: cannot find 'dlopen' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:33:29: error: cannot find 'dlsym' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
 33 |             guard let sym = dlsym(dylib, symbol) else {
    |                             `- error: cannot find 'dlsym' in scope
 34 |                 throw IndexStoreError.missingSymbol(symbol)
 35 |             }
[81/135] Emitting module FilenameMatcher
[82/135] Compiling FilenameMatcher FilenameMatcher.swift
[83/175] Emitting module RequestKit
[84/175] Compiling SwiftShell Shell.swift
[85/175] Compiling SwiftShell ShellError.swift
[86/179] Emitting module SwiftShell
error: emit-module command failed with exit code 1 (use -v to see invocation)
[87/195] Emitting module SwiftIndexStore
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                     `- error: cannot find 'RTLD_LAZY' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                                 `- error: cannot find 'RTLD_LOCAL' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
 28 |         #endif
 29 |
 30 |         let dylib = dlopen(url.path, flags)!
    |                     `- error: cannot find 'dlopen' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
[88/195] Compiling SwiftSyntax AbsolutePosition.swift
[89/195] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[90/201] Emitting module Logger
[91/201] Compiling Logger Logger.swift
[93/202] Emitting module DangerShellExecutor
[94/202] Compiling DangerShellExecutor ShellExecutor.swift
[95/202] Compiling RequestKit Router.swift
[96/203] Compiling RequestKit JSONPostRouter.swift
[97/203] Compiling RequestKit RequestKitSession.swift
[98/203] Compiling SwiftIndexStore OptionSetDisplayable.swift
[99/203] Compiling SwiftIndexStore Process+Extension.swift
[101/211] Compiling AEXML Document.swift
[102/211] Compiling AEXML Error.swift
[103/211] Emitting module AEXML
[104/211] Compiling AEXML Parser.swift
[105/211] Compiling AEXML Options.swift
[106/211] Compiling AEXML Builders.swift
[107/211] Compiling AEXML Element.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/19] Write swift-version-24593BA9C3E375BF.txt
[3/82] Emitting module SwiftSyntax510
[4/82] Compiling SwiftSyntax510 Empty.swift
[5/85] Emitting module SwiftSyntax600
[6/88] Compiling SwiftSyntax600 Empty.swift
[9/94] Emitting module SwiftSyntax509
[10/94] Compiling SwiftSyntax509 Empty.swift
[11/95] Compiling RequestKit RequestKitSession.swift
[13/95] Emitting module RequestKit
[14/96] Compiling SwiftShell ShellError.swift
[15/97] Compiling SwiftIndexStore LibIndexStore.swift
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                     `- error: cannot find 'RTLD_LAZY' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                                 `- error: cannot find 'RTLD_LOCAL' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
 28 |         #endif
 29 |
 30 |         let dylib = dlopen(url.path, flags)!
    |                     `- error: cannot find 'dlopen' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:33:29: error: cannot find 'dlsym' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
 33 |             guard let sym = dlsym(dylib, symbol) else {
    |                             `- error: cannot find 'dlsym' in scope
 34 |                 throw IndexStoreError.missingSymbol(symbol)
 35 |             }
[16/98] Emitting module SwiftShell
[17/98] Compiling SwiftShell Shell.swift
[18/99] Compiling SwiftIndexStore OptionSetDisplayable.swift
[19/99] Emitting module Logger
[20/99] Compiling Logger Logger.swift
[21/100] Compiling SystemPackage Errno.swift
[22/100] Compiling SystemPackage ErrnoWindows.swift
[23/100] Compiling SwiftIndexStore IndexStoreUnit.swift
[25/100] Compiling RequestKit JSONPostRouter.swift
[26/100] Compiling SwiftIndexStore UnfairLock.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/100] Emitting module SwiftIndexStore
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                     `- error: cannot find 'RTLD_LAZY' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                                 `- error: cannot find 'RTLD_LOCAL' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
 28 |         #endif
 29 |
 30 |         let dylib = dlopen(url.path, flags)!
    |                     `- error: cannot find 'dlopen' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
[29/100] Compiling SystemPackage FileDescriptor.swift
[30/100] Compiling SystemPackage FileHelpers.swift
[31/166] Compiling SwiftIndexStore SwiftIndexStore.swift
[32/166] Compiling SwiftIndexStore Process+Extension.swift
[33/168] Emitting module FilenameMatcher
[34/168] Compiling SwiftSyntax SyntaxTraits.swift
[35/168] Compiling SwiftSyntax SyntaxVisitor.swift
[36/168] Compiling SwiftSyntax TokenKind.swift
[37/168] Compiling SwiftSyntax Tokens.swift
[38/168] Compiling SwiftSyntax SourceLength.swift
[39/168] Compiling SwiftSyntax SourceLocation.swift
[40/168] Compiling SwiftSyntax SyntaxKind.swift
[41/168] Compiling SwiftSyntax SyntaxRewriter.swift
BUILD FAILURE 6.1 android