The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PrivateHeaderKit, reference main (0281f9), with Swift 6.2 for Android on 23 Mar 2026 14:02:57 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lynnswap/PrivateHeaderKit.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/lynnswap/PrivateHeaderKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0281f9f Merge pull request #20 from lynnswap:codex/fix-dump-fd-handling
Cloned https://github.com/lynnswap/PrivateHeaderKit.git
Revision (git rev-parse @):
0281f9f36d713f3eb5d0f967cfb55c785c988d8b
SUCCESS checkout https://github.com/lynnswap/PrivateHeaderKit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/lynnswap/PrivateHeaderKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:ed06329bcd62885fa27d8bb2bd26ede56f367c486166aaeeac553557f3a78bad
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Fetching https://github.com/lynnswap/MachOObjCSection.git
[1/2318] Fetching machoobjcsection
Fetched https://github.com/lynnswap/MachOObjCSection.git from cache (0.48s)
Fetching https://github.com/lynnswap/MachOSwiftSection.git
[1/9275] Fetching machoswiftsection
Fetched https://github.com/lynnswap/MachOSwiftSection.git from cache (1.04s)
Fetching https://github.com/MxIris-Library-Forks/swift-memberwise-init-macro
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/lynnswap/DyldPrivate.git
Fetching https://github.com/christophhagen/BinaryCodable
Fetching https://github.com/onevcat/Rainbow
Fetching https://github.com/lynnswap/swift-apinotes.git
[1/667] Fetching swift-memberwise-init-macro
[182/686] Fetching swift-memberwise-init-macro, dyldprivate
[661/3627] Fetching swift-memberwise-init-macro, dyldprivate, binarycodable
[1805/3863] Fetching swift-memberwise-init-macro, dyldprivate, binarycodable, swift-apinotes
[2023/10602] Fetching swift-memberwise-init-macro, dyldprivate, binarycodable, swift-apinotes, swift-dependencies
[5751/12029] Fetching swift-memberwise-init-macro, dyldprivate, binarycodable, swift-apinotes, swift-dependencies, rainbow
Fetched https://github.com/lynnswap/swift-apinotes.git from cache (0.32s)
[7817/11793] Fetching swift-memberwise-init-macro, dyldprivate, binarycodable, swift-dependencies, rainbow
Fetched https://github.com/lynnswap/DyldPrivate.git from cache (0.32s)
[7933/11774] Fetching swift-memberwise-init-macro, binarycodable, swift-dependencies, rainbow
Fetched https://github.com/christophhagen/BinaryCodable from cache (0.33s)
[5194/8833] Fetching swift-memberwise-init-macro, swift-dependencies, rainbow
Fetching https://github.com/apple/swift-async-algorithms
Fetching https://github.com/lynnswap/SourceKitD.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetched https://github.com/MxIris-Library-Forks/swift-memberwise-init-macro from cache (0.49s)
Fetched https://github.com/onevcat/Rainbow from cache (0.49s)
Fetching https://github.com/lynnswap/MachOKit.git
Fetching https://github.com/MxIris-DeveloperTool-Forks/swift-clang
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.50s)
Fetching https://github.com/p-x9/swift-objc-dump.git
[1/161] Fetching sourcekitd
Fetched https://github.com/lynnswap/SourceKitD.git from cache (0.29s)
Fetching https://github.com/apple/swift-collections
[1/6228] Fetching swift-async-algorithms
[5482/6657] Fetching swift-async-algorithms, swift-objc-dump
[6658/6821] Fetching swift-async-algorithms, swift-objc-dump, swift-clang
Fetched https://github.com/p-x9/swift-objc-dump.git from cache (0.30s)
Fetching https://github.com/apple/swift-argument-parser
[1/6474] Fetching machokit
Fetched https://github.com/MxIris-DeveloperTool-Forks/swift-clang from cache (0.35s)
Fetching https://github.com/lynnswap/FrameworkToolbox.git
Fetched https://github.com/apple/swift-async-algorithms from cache (0.54s)
Fetching https://github.com/p-x9/swift-fileio.git
[6475/29102] Fetching machokit, swift-collections
[8286/103943] Fetching machokit, swift-collections, swift-syntax
Fetched https://github.com/lynnswap/MachOKit.git from cache (0.52s)
Fetching https://github.com/p-x9/AssociatedObject
[2560/97469] Fetching swift-collections, swift-syntax
[3309/97960] Fetching swift-collections, swift-syntax, frameworktoolbox
[4549/115374] Fetching swift-collections, swift-syntax, frameworktoolbox, swift-argument-parser
[7317/115620] Fetching swift-collections, swift-syntax, frameworktoolbox, swift-argument-parser, swift-fileio
Fetched https://github.com/lynnswap/FrameworkToolbox.git from cache (0.30s)
[9194/115129] Fetching swift-collections, swift-syntax, swift-argument-parser, swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.29s)
[11020/114883] Fetching swift-collections, swift-syntax, swift-argument-parser
[21692/115590] Fetching swift-collections, swift-syntax, swift-argument-parser, associatedobject
Fetched https://github.com/p-x9/AssociatedObject from cache (0.30s)
[34156/114883] Fetching swift-collections, swift-syntax, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.84s)
[37875/97469] Fetching swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections from cache (1.55s)
[52389/74841] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.71s)
Computing version for https://github.com/lynnswap/DyldPrivate.git
Computed https://github.com/lynnswap/DyldPrivate.git at 0.1.0 (5.39s)
Computing version for https://github.com/lynnswap/swift-apinotes.git
Computed https://github.com/lynnswap/swift-apinotes.git at 0.1.0 (0.33s)
Fetching https://github.com/SwiftyLab/MetaCodable
Fetching https://github.com/jpsim/Yams
[1/11509] Fetching yams
[232/169750] Fetching yams, metacodable
Fetched https://github.com/jpsim/Yams from cache (7.83s)
Fetched https://github.com/SwiftyLab/MetaCodable from cache (8.00s)
Computing version for https://github.com/MxIris-DeveloperTool-Forks/swift-clang
Computed https://github.com/MxIris-DeveloperTool-Forks/swift-clang at 0.1.0 (8.31s)
Computing version for https://github.com/lynnswap/SourceKitD.git
Computed https://github.com/lynnswap/SourceKitD.git at 0.1.0 (0.43s)
Computing version for https://github.com/lynnswap/FrameworkToolbox.git
Computed https://github.com/lynnswap/FrameworkToolbox.git at 0.3.3 (0.37s)
Fetching https://github.com/apple/swift-log.git
[1/6252] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.46s)
Computing version for https://github.com/lynnswap/MachOKit.git
warning: 'machokit': /Package.swift:135:1: warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
133 | }
134 |
135 | extension SwiftSetting: CaseIterable {
    | |- warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
136 |     public static var allCases: [Self] {
137 |         [
Computed https://github.com/lynnswap/MachOKit.git at 0.47.0 (0.92s)
Fetching https://github.com/p-x9/swift-binary-parse-support.git
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/p-x9/ObjectArchiveKit.git
Fetching https://github.com/apple/swift-crypto.git
[1/48] Fetching swift-fileio-extra
[49/290] Fetching swift-fileio-extra, swift-binary-parse-support
[291/500] Fetching swift-fileio-extra, swift-binary-parse-support, objectarchivekit
Fetched https://github.com/p-x9/swift-fileio-extra.git from cache (0.26s)
Fetched https://github.com/p-x9/ObjectArchiveKit.git from cache (0.26s)
[1/17246] Fetching swift-crypto
Fetched https://github.com/p-x9/swift-binary-parse-support.git from cache (1.74s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.78s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.13.0 (2.10s)
Computing version for https://github.com/p-x9/swift-objc-dump.git
Computed https://github.com/p-x9/swift-objc-dump.git at 0.8.0 (0.31s)
Computing version for https://github.com/p-x9/swift-binary-parse-support.git
Computed https://github.com/p-x9/swift-binary-parse-support.git at 0.2.1 (0.32s)
Computing version for https://github.com/p-x9/ObjectArchiveKit.git
Computed https://github.com/p-x9/ObjectArchiveKit.git at 0.3.0 (0.37s)
Computing version for https://github.com/p-x9/swift-fileio-extra.git
Computed https://github.com/p-x9/swift-fileio-extra.git at 0.2.2 (0.36s)
Computing version for https://github.com/p-x9/AssociatedObject
Computed https://github.com/p-x9/AssociatedObject at 0.14.0 (0.33s)
Fetching https://github.com/p-x9/swift-literal-type-inference.git
Fetching https://github.com/p-x9/swift-object-association.git
[1/207] Fetching swift-object-association
[208/318] Fetching swift-object-association, swift-literal-type-inference
Fetched https://github.com/p-x9/swift-object-association.git from cache (0.25s)
Fetched https://github.com/p-x9/swift-literal-type-inference.git from cache (0.25s)
Computing version for https://github.com/p-x9/swift-object-association.git
Computed https://github.com/p-x9/swift-object-association.git at 0.5.0 (0.59s)
Computing version for https://github.com/p-x9/swift-literal-type-inference.git
Computed https://github.com/p-x9/swift-literal-type-inference.git at 0.5.0 (0.32s)
Computing version for https://github.com/SwiftyLab/MetaCodable
Computed https://github.com/SwiftyLab/MetaCodable at 1.6.0 (0.55s)
Computing version for https://github.com/christophhagen/BinaryCodable
Computed https://github.com/christophhagen/BinaryCodable at 3.2.0 (0.33s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 6.2.1 (0.31s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.11.0 (0.36s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-clocks
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/swift-concurrency-extras
[1/2550] Fetching combine-schedulers
[2551/3867] Fetching combine-schedulers, swift-clocks
[3868/4761] Fetching combine-schedulers, swift-clocks, swift-concurrency-extras
[4155/10484] Fetching combine-schedulers, swift-clocks, swift-concurrency-extras, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.35s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.35s)
[4042/6617] Fetching swift-concurrency-extras, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.35s)
[3205/5723] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.65s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.6 (1.00s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.1.0 (0.42s)
Fetching https://github.com/OpenCombine/OpenCombine.git
[1/8284] Fetching opencombine
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (0.57s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (2.77s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.2.1 (2.15s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.4.1 (0.55s)
Computing version for https://github.com/apple/swift-async-algorithms
Computed https://github.com/apple/swift-async-algorithms at 1.1.3 (0.49s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.37s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.3.2 (0.32s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (0.57s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (0.33s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.36s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (1.00s)
Fetching https://github.com/apple/swift-asn1.git
[1/1769] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.29s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.6.0 (0.70s)
Computing version for https://github.com/MxIris-Library-Forks/swift-memberwise-init-macro
Computed https://github.com/MxIris-Library-Forks/swift-memberwise-init-macro at 0.5.3-fork.1 (0.50s)
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.6.0
Creating working copy for https://github.com/p-x9/swift-binary-parse-support.git
Working copy of https://github.com/p-x9/swift-binary-parse-support.git resolved at 0.2.1
Creating working copy for https://github.com/apple/swift-async-algorithms
Working copy of https://github.com/apple/swift-async-algorithms resolved at 1.1.3
Creating working copy for https://github.com/MxIris-Library-Forks/swift-memberwise-init-macro
Working copy of https://github.com/MxIris-Library-Forks/swift-memberwise-init-macro resolved at 0.5.3-fork.1
Creating working copy for https://github.com/lynnswap/swift-apinotes.git
Working copy of https://github.com/lynnswap/swift-apinotes.git resolved at 0.1.0
Creating working copy for https://github.com/p-x9/ObjectArchiveKit.git
Working copy of https://github.com/p-x9/ObjectArchiveKit.git resolved at 0.3.0
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.3.2
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.11.0
Creating working copy for https://github.com/lynnswap/DyldPrivate.git
Working copy of https://github.com/lynnswap/DyldPrivate.git resolved at 0.1.0
Creating working copy for https://github.com/lynnswap/MachOObjCSection.git
Working copy of https://github.com/lynnswap/MachOObjCSection.git resolved at 3dbf6a856cbdc856d4d7c1fe6bbf81161e0fbe9c
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.9.0
Creating working copy for https://github.com/lynnswap/SourceKitD.git
Working copy of https://github.com/lynnswap/SourceKitD.git resolved at 0.1.0
Creating working copy for https://github.com/lynnswap/MachOSwiftSection.git
Working copy of https://github.com/lynnswap/MachOSwiftSection.git resolved at 2fbb1a78e316a2beaf2911488ecda6455e205f84
Creating working copy for https://github.com/SwiftyLab/MetaCodable
Working copy of https://github.com/SwiftyLab/MetaCodable resolved at 1.6.0
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 6.2.1
Creating working copy for https://github.com/lynnswap/MachOKit.git
Working copy of https://github.com/lynnswap/MachOKit.git resolved at 0.47.0
Creating working copy for https://github.com/p-x9/AssociatedObject
Working copy of https://github.com/p-x9/AssociatedObject resolved at 0.14.0
Creating working copy for https://github.com/p-x9/swift-object-association.git
Working copy of https://github.com/p-x9/swift-object-association.git resolved at 0.5.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/p-x9/swift-literal-type-inference.git
Working copy of https://github.com/p-x9/swift-literal-type-inference.git resolved at 0.5.0
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.1.0
Creating working copy for https://github.com/p-x9/swift-objc-dump.git
Working copy of https://github.com/p-x9/swift-objc-dump.git resolved at 0.8.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.6
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.2.1
Creating working copy for https://github.com/p-x9/swift-fileio.git
Working copy of https://github.com/p-x9/swift-fileio.git resolved at 0.13.0
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git 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.7.1
Creating working copy for https://github.com/christophhagen/BinaryCodable
Working copy of https://github.com/christophhagen/BinaryCodable resolved at 3.2.0
Creating working copy for https://github.com/lynnswap/FrameworkToolbox.git
Working copy of https://github.com/lynnswap/FrameworkToolbox.git resolved at 0.3.3
Creating working copy for https://github.com/MxIris-DeveloperTool-Forks/swift-clang
Working copy of https://github.com/MxIris-DeveloperTool-Forks/swift-clang resolved at 0.1.0
Creating working copy for https://github.com/p-x9/swift-fileio-extra.git
Working copy of https://github.com/p-x9/swift-fileio-extra.git resolved at 0.2.2
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
warning: 'machokit': /host/spi-builder-workspace/.build/checkouts/MachOKit/Package.swift:135:1: warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
133 | }
134 |
135 | extension SwiftSetting: CaseIterable {
    | |- warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
136 |     public static var allCases: [Self] {
137 |         [
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/601.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/601.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.37s)
[1/1] Compiling plugin MetaProtocolCodable
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/542] Write sources
[15/542] Compiling AssociatedObjectC associated_object_key.c
[16/542] Compiling _SwiftSyntaxCShims dummy.c
[17/542] Write sources
[37/542] Write swift-version--11D90AFD9DD3AB2.txt
[38/542] Write sources
[39/542] Compiling UtilitiesC PtrAuthWrapper.c
[41/546] Emitting module SwiftSyntax600
[41/546] Compiling aes.cc
[42/546] Compiling bio_mem.cc
[43/548] Compiling errno.cc
[44/548] Compiling fd.cc
[45/573] Compiling cbb.cc
[46/573] Compiling a_bitstr.cc
[48/579] Emitting module SwiftSyntax601
[49/579] Compiling SwiftSyntax601 Empty.swift
[50/580] Compiling MachOMacros MachOMacroPlugin.swift
[52/580] Emitting module SwiftSyntax510
[53/580] Compiling SwiftSyntax510 Empty.swift
[54/581] Emitting module MachOMacros
[55/581] Compiling MachOMacros LayoutMacro.swift
[55/581] Write sources
[60/582] Compiling MemberwiseInitMacros SyntaxHelpers.swift
[61/582] Emitting module SwiftSyntax509
[62/582] Compiling SwiftSyntax509 Empty.swift
[62/582] Wrapping AST for SwiftSyntax601 for debugging
[64/584] Emitting module MemberwiseInitMacros
[65/584] Wrapping AST for SwiftSyntax510 for debugging
[65/584] Write sources
[77/584] Compiling SwiftSyntax600 Empty.swift
[78/585] Compiling MemberwiseInitMacros AccesssLevelSyntax.swift
[79/585] Compiling MemberwiseInitMacros AttributeRemover.swift
[80/585] Compiling MemberwiseInitMacros MacroPlugin.swift
[81/585] Compiling MemberwiseInitMacros MemberwiseInitMacro.swift
[82/585] Compiling MemberwiseInitMacros CustomConfiguration.swift
[83/585] Compiling MemberwiseInitMacros DeprecationDiagnostics.swift
[84/585] Compiling MemberwiseInitMacros Diagnostics.swift
[85/585] Compiling MemberwiseInitMacros ExprTypeInference.swift
[85/585] Wrapping AST for MachOMacros for debugging
[87/593] Write Objects.LinkFileList
[88/621] Wrapping AST for SwiftSyntax509 for debugging
[90/621] Compiling MemberwiseInitMacros UncheckedMemberwiseInitMacro.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[91/621] Emitting module PrivateHeaderKitTooling
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/FileOps.swift:9:64: error: cannot find 'getpid' in scope
  7 |
  8 | public enum FileOps {
  9 |     public static func buildStageDir(outDir: URL, pid: Int32 = getpid(), date: Date = Date()) -> URL {
    |                                                                `- error: cannot find 'getpid' in scope
 10 |         let formatter = DateFormatter()
 11 |         formatter.locale = Locale(identifier: "en_US_POSIX")
[91/686] Linking MachOMacros-tool
[92/686] Wrapping AST for SwiftSyntax600 for debugging
[93/686] Compiling MachOSwiftSectionC ValueWitnessTable.c
[94/686] Compiling MachOSwiftSectionC Functions.c
[95/686] Compiling MachOSwiftSectionC CallAccessor.c
[95/686] Write sources
[99/686] Compiling MachOObjCSectionC dummy.c
[100/686] Compiling MachOKitC mach-o-linux.c
[100/686] Write sources
[108/691] Emitting module Logging
[109/691] Compiling MemberwiseInitMacros String.swift
[110/691] Compiling SwiftSyntax EditorPlaceholder.swift
[111/691] Compiling SwiftSyntax Identifier.swift
[113/692] Emitting module FrameworkToolboxMacros
[114/692] Compiling FrameworkToolboxMacros FrameworkToolboxCompatibleMacro.swift
[115/692] Compiling FrameworkToolboxMacros FrameworkToolboxMacroPlugin.swift
[116/693] Compiling SwiftSyntax AbsolutePosition.swift
[117/693] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[118/693] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[119/693] Compiling SwiftSyntax Assert.swift
[120/693] Compiling SwiftSyntax BumpPtrAllocator.swift
[121/693] Compiling SwiftSyntax CommonAncestor.swift
[122/693] Compiling SwiftSyntax Convenience.swift
[123/693] Compiling SwiftSyntax CustomTraits.swift
[125/704] Wrapping AST for MemberwiseInitMacros for debugging
[126/704] Wrapping AST for FrameworkToolboxMacros for debugging
[127/704] Write Objects.LinkFileList
[131/704] Compiling SwiftSyntax MemoryLayout.swift
[132/704] Compiling SwiftSyntax MissingNodeInitializers.swift
[133/704] Compiling SwiftSyntax RawSyntax.swift
[134/704] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[135/704] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[136/704] Compiling SwiftSyntax RawSyntaxTokenView.swift
[137/704] Compiling SwiftSyntax SourceEdit.swift
[138/704] Compiling SwiftSyntax SourceLength.swift
[138/704] Linking MemberwiseInitMacros-tool
[139/704] Linking FrameworkToolboxMacros-tool
[141/706] Emitting module IssueReportingPackageSupport
[148/706] Compiling SwiftSyntax SourceLocation.swift
[149/706] Compiling SwiftSyntax SourcePresence.swift
[150/706] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[151/706] Compiling IssueReportingPackageSupport _Test.swift
[152/709] Emitting module MemberwiseInit
[153/709] Compiling MemberwiseInit MemberwiseInit.swift
[161/710] Compiling Semantic SemanticStringComponent.swift
[162/710] Compiling Semantic SemanticType.swift
[163/710] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[164/710] Compiling SwiftSyntax SyntaxChildren.swift
[165/710] Compiling SwiftSyntax SyntaxCollection.swift
[166/710] Compiling SwiftSyntax SyntaxHashable.swift
[168/710] Emitting module Semantic
[177/710] Wrapping AST for IssueReportingPackageSupport for debugging
[178/730] Wrapping AST for MemberwiseInit for debugging
[179/730] Write sources
[184/730] Compiling DyldPrivate dummy.c
[186/748] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[187/748] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[190/752] Compiling InternalCollectionsUtilities _SortedCollection.swift
[191/752] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[197/753] Compiling InternalCollectionsUtilities String+Padding.swift
[198/753] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[199/756] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[200/756] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[201/756] Compiling InternalCollectionsUtilities Span+Extras.swift
[202/756] Compiling InternalCollectionsUtilities Debugging.swift
[203/756] Compiling InternalCollectionsUtilities Descriptions.swift
[204/756] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[205/756] Compiling InternalCollectionsUtilities Integer rank.swift
[206/756] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[207/756] Compiling InternalCollectionsUtilities UInt+reversed.swift
[208/756] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[209/756] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[210/756] Compiling FrameworkToolbox AccessLevel.swift
[211/756] Emitting module FrameworkToolbox
[212/756] Compiling FrameworkToolbox FrameworkToolbox.swift
[213/757] Compiling IssueReporting WithExpectedIssue.swift
[214/757] Compiling IssueReporting WithIssueContext.swift
[215/757] Emitting module InternalCollectionsUtilities
[217/764] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[218/764] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[219/765] Wrapping AST for Semantic for debugging
[221/820] Compiling Logging MetadataProvider.swift
[222/820] Compiling Logging Locks.swift
[223/820] Compiling OrderedCollections OrderedDictionary.swift
[224/820] Compiling OrderedCollections OrderedSet+Codable.swift
[225/820] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[226/820] Compiling OrderedCollections OrderedSet+Descriptions.swift
[227/820] Compiling OrderedCollections OrderedSet+Diffing.swift
[228/820] Compiling OrderedCollections OrderedSet+Equatable.swift
[229/820] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[230/820] Compiling OrderedCollections OrderedSet+Hashable.swift
[231/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[232/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[233/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[234/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[235/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[236/827] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[237/827] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[238/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[239/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[240/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[241/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[242/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[243/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[244/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[245/827] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[246/827] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[247/827] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[248/827] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[249/827] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[250/827] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[251/827] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[252/827] Compiling OrderedCollections OrderedDictionary+Values.swift
[253/827] Compiling FileIO system.swift
[257/827] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[258/827] Compiling OrderedCollections _HashTable+Testing.swift
[259/827] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[260/827] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:13: error: cannot find 'msync' in scope
154 |         data.withUnsafeBytes { buffer in
155 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:57: error: cannot find 'MS_SYNC' in scope
154 |         data.withUnsafeBytes { buffer in
155 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:9: error: cannot find 'msync' in scope
201 |             .assumingMemoryBound(to: T.self)
202 |             .pointee = value
203 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
204 |     }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:49: error: cannot find 'MS_SYNC' in scope
201 |             .assumingMemoryBound(to: T.self)
202 |             .pointee = value
203 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
204 |     }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:13: error: cannot find 'msync' in scope
 97 |         data.withUnsafeBytes { buffer in
 98 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 99 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
100 |         }
101 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:57: error: cannot find 'MS_SYNC' in scope
 97 |         data.withUnsafeBytes { buffer in
 98 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 99 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
100 |         }
101 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:9: error: cannot find 'msync' in scope
103 |     @inlinable @inline(__always)
104 |     public func sync() {
105 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
106 |     }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:26: error: cannot find 'MS_SYNC' in scope
103 |     @inlinable @inline(__always)
104 |     public func sync() {
105 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
106 |     }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:13: error: cannot find 'msync' in scope
150 |         data.withUnsafeBytes { buffer in
151 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
153 |         }
154 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:68: error: cannot find 'MS_SYNC' in scope
150 |         data.withUnsafeBytes { buffer in
151 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
153 |         }
154 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:9: error: cannot find 'msync' in scope
205 |             .assumingMemoryBound(to: T.self)
206 |             .pointee = value
207 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
208 |     }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:49: error: cannot find 'MS_SYNC' in scope
205 |             .assumingMemoryBound(to: T.self)
206 |             .pointee = value
207 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
208 |     }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:9: error: cannot find 'msync' in scope
282 |     @inlinable @inline(__always)
283 |     public func sync() {
284 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
285 |     }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:58: error: cannot find 'MS_SYNC' in scope
282 |     @inlinable @inline(__always)
283 |     public func sync() {
284 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
285 |     }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:9: error: cannot find 'msync' in scope
346 |             .assumingMemoryBound(to: T.self)
347 |             .pointee = value
348 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
349 |     }
350 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:49: error: cannot find 'MS_SYNC' in scope
346 |             .assumingMemoryBound(to: T.self)
347 |             .pointee = value
348 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
349 |     }
350 | }
[261/827] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:34:13: error: cannot find 'close' in scope
 32 |         unmap()
 33 |         if fileDescriptor >= 0 {
 34 |             close(fileDescriptor)
    |             `- error: cannot find 'close' in scope
 35 |         }
 36 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:41:47: error: cannot find 'O_RDWR' in scope
 39 | extension MemoryMappedFile {
 40 |     public static func open(url: URL, isWritable: Bool) throws -> MemoryMappedFile {
 41 |         let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                               `- error: cannot find 'O_RDWR' in scope
 42 |         guard _fastPath(fd > 0) else {
 43 |             throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:41:56: error: cannot find 'O_RDONLY' in scope
 39 | extension MemoryMappedFile {
 40 |     public static func open(url: URL, isWritable: Bool) throws -> MemoryMappedFile {
 41 |         let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                                        `- error: cannot find 'O_RDONLY' in scope
 42 |         guard _fastPath(fd > 0) else {
 43 |             throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:43:46: error: cannot find 'errno' in scope
 41 |         let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
 42 |         guard _fastPath(fd > 0) else {
 43 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
 44 |         }
 45 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:46:24: error: cannot find 'lseek' in scope
 44 |         }
 45 |
 46 |         let fileSize = lseek(fd, 0, SEEK_END)
    |                        `- error: cannot find 'lseek' in scope
 47 |         guard _fastPath(fileSize >= 0) else {
 48 |             close(fd)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:48:13: error: cannot find 'close' in scope
 46 |         let fileSize = lseek(fd, 0, SEEK_END)
 47 |         guard _fastPath(fileSize >= 0) else {
 48 |             close(fd)
    |             `- error: cannot find 'close' in scope
 49 |             throw POSIXError(.init(rawValue: errno)!)
 50 |         }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:49:46: error: cannot find 'errno' in scope
 47 |         guard _fastPath(fileSize >= 0) else {
 48 |             close(fd)
 49 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
 50 |         }
 51 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:61:27: error: cannot find 'PROT_READ' in scope
 59 |         }
 60 |
 61 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 62 |         if isWritable { prot |= PROT_WRITE }
 63 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:62:33: error: cannot find 'PROT_WRITE' in scope
 60 |
 61 |         var prot: Int32 = PROT_READ
 62 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 63 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
 64 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:19: error: cannot find 'mmap' in scope
 61 |         var prot: Int32 = PROT_READ
 62 |         if isWritable { prot |= PROT_WRITE }
 63 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                   `- error: cannot find 'mmap' in scope
 64 |         guard let ptr,
 65 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:50: error: cannot find 'MAP_SHARED' in scope
 61 |         var prot: Int32 = PROT_READ
 62 |         if isWritable { prot |= PROT_WRITE }
 63 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                                                  `- error: cannot find 'MAP_SHARED' in scope
 64 |         guard let ptr,
 65 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:24: error: 'nil' requires a contextual type
 61 |         var prot: Int32 = PROT_READ
 62 |         if isWritable { prot |= PROT_WRITE }
 63 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                        `- error: 'nil' requires a contextual type
 64 |         guard let ptr,
 65 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:65:32: error: cannot find 'MAP_FAILED' in scope
 63 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
 64 |         guard let ptr,
 65 |               _fastPath(ptr != MAP_FAILED) else {
    |                                `- error: cannot find 'MAP_FAILED' in scope
 66 |             close(fd)
 67 |             throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:66:13: error: cannot find 'close' in scope
 64 |         guard let ptr,
 65 |               _fastPath(ptr != MAP_FAILED) else {
 66 |             close(fd)
    |             `- error: cannot find 'close' in scope
 67 |             throw POSIXError(.init(rawValue: errno)!)
 68 |         }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:67:46: error: cannot find 'errno' in scope
 65 |               _fastPath(ptr != MAP_FAILED) else {
 66 |             close(fd)
 67 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
 68 |         }
 69 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:13: error: cannot find 'msync' in scope
 97 |         data.withUnsafeBytes { buffer in
 98 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 99 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
100 |         }
101 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:57: error: cannot find 'MS_SYNC' in scope
 97 |         data.withUnsafeBytes { buffer in
 98 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 99 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
100 |         }
101 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:9: error: cannot find 'msync' in scope
103 |     @inlinable @inline(__always)
104 |     public func sync() {
105 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
106 |     }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:26: error: cannot find 'MS_SYNC' in scope
103 |     @inlinable @inline(__always)
104 |     public func sync() {
105 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
106 |     }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:109:9: error: cannot find 'munmap' in scope
107 |
108 |     internal func unmap() {
109 |         munmap(ptr, size)
    |         `- error: cannot find 'munmap' in scope
110 |     }
111 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:118:15: error: cannot find 'ftruncate' in scope
116 |         guard _fastPath(newSize >= 0) else { return }
117 |
118 |         guard ftruncate(fileDescriptor, off_t(newSize)) == 0 else {
    |               `- error: cannot find 'ftruncate' in scope
119 |             throw POSIXError(.init(rawValue: errno)!)
120 |         }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:119:46: error: cannot find 'errno' in scope
117 |
118 |         guard ftruncate(fileDescriptor, off_t(newSize)) == 0 else {
119 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
120 |         }
121 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:124:27: error: cannot find 'PROT_READ' in scope
122 |         unmap()
123 |
124 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
125 |         if isWritable { prot |= PROT_WRITE }
126 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:125:33: error: cannot find 'PROT_WRITE' in scope
123 |
124 |         var prot: Int32 = PROT_READ
125 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
126 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
127 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:19: error: cannot find 'mmap' in scope
124 |         var prot: Int32 = PROT_READ
125 |         if isWritable { prot |= PROT_WRITE }
126 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                   `- error: cannot find 'mmap' in scope
127 |         guard let ptr,
128 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:44: error: cannot find 'MAP_SHARED' in scope
124 |         var prot: Int32 = PROT_READ
125 |         if isWritable { prot |= PROT_WRITE }
126 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                                            `- error: cannot find 'MAP_SHARED' in scope
127 |         guard let ptr,
128 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:24: error: 'nil' requires a contextual type
124 |         var prot: Int32 = PROT_READ
125 |         if isWritable { prot |= PROT_WRITE }
126 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                        `- error: 'nil' requires a contextual type
127 |         guard let ptr,
128 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:128:22: error: cannot find 'MAP_FAILED' in scope
126 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
127 |         guard let ptr,
128 |               ptr != MAP_FAILED else {
    |                      `- error: cannot find 'MAP_FAILED' in scope
129 |             throw POSIXError(.init(rawValue: errno)!)
130 |         }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:129:46: error: cannot find 'errno' in scope
127 |         guard let ptr,
128 |               ptr != MAP_FAILED else {
129 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
130 |         }
131 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:13: error: cannot find 'msync' in scope
150 |         data.withUnsafeBytes { buffer in
151 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
153 |         }
154 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:68: error: cannot find 'MS_SYNC' in scope
150 |         data.withUnsafeBytes { buffer in
151 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
153 |         }
154 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:9: error: cannot find 'msync' in scope
205 |             .assumingMemoryBound(to: T.self)
206 |             .pointee = value
207 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
208 |     }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:49: error: cannot find 'MS_SYNC' in scope
205 |             .assumingMemoryBound(to: T.self)
206 |             .pointee = value
207 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
208 |     }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:9: error: cannot find 'msync' in scope
282 |     @inlinable @inline(__always)
283 |     public func sync() {
284 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
285 |     }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:58: error: cannot find 'MS_SYNC' in scope
282 |     @inlinable @inline(__always)
283 |     public func sync() {
284 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
285 |     }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:9: error: cannot find 'msync' in scope
346 |             .assumingMemoryBound(to: T.self)
347 |             .pointee = value
348 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
349 |     }
350 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:49: error: cannot find 'MS_SYNC' in scope
346 |             .assumingMemoryBound(to: T.self)
347 |             .pointee = value
348 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
349 |     }
350 | }
[262/827] Compiling PrivateHeaderKitTooling Which.swift
[263/827] Compiling PrivateHeaderKitTooling StreamingSubprocess.swift
[264/827] Compiling PrivateHeaderKitTooling VersionUtils.swift
[265/827] Compiling PrivateHeaderKitTooling ToolingError.swift
[266/827] Compiling FileIO StreamedFile.swift
[267/827] Compiling OrderedCollections _HashTable.swift
[268/827] Compiling OrderedCollections _Hashtable+Header.swift
[273/827] Compiling OrderedCollections _HashTable+Bucket.swift
[274/827] Compiling OrderedCollections _HashTable+BucketIterator.swift
[275/827] Emitting module SwiftRetain
[276/827] Compiling OrderedCollections OrderedSet+Initializers.swift
[277/827] Compiling OrderedCollections OrderedSet+Insertions.swift
[278/827] Compiling OrderedCollections OrderedSet+Invariants.swift
[279/827] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[280/827] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[281/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[282/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[283/827] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[284/827] Compiling OrderedCollections OrderedDictionary+Codable.swift
[285/827] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[286/827] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[287/827] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[288/827] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[289/827] Compiling OrderedCollections OrderedDictionary+Elements.swift
[290/827] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[291/827] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[292/827] Compiling SwiftRetain Retain.swift
[294/828] Compiling FileIO FileIO.swift
[297/828] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:50:51: error: cannot find 'O_RDWR' in scope
 48 |         var fdAndSizes: [(fd: CInt, size: off_t)] = []
 49 |         for url in urls {
 50 |             let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                                   `- error: cannot find 'O_RDWR' in scope
 51 |             guard _fastPath(fd > 0) else {
 52 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:50:60: error: cannot find 'O_RDONLY' in scope
 48 |         var fdAndSizes: [(fd: CInt, size: off_t)] = []
 49 |         for url in urls {
 50 |             let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                                            `- error: cannot find 'O_RDONLY' in scope
 51 |             guard _fastPath(fd > 0) else {
 52 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:53:50: error: cannot find 'errno' in scope
 51 |             guard _fastPath(fd > 0) else {
 52 |                 cleanup(fds: fdAndSizes.map(\.fd))
 53 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 54 |             }
 55 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:56:28: error: cannot find 'lseek' in scope
 54 |             }
 55 |
 56 |             let fileSize = lseek(fd, 0, SEEK_END)
    |                            `- error: cannot find 'lseek' in scope
 57 |             guard _fastPath(fileSize > 0) else {
 58 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:59:17: error: cannot find 'close' in scope
 57 |             guard _fastPath(fileSize > 0) else {
 58 |                 cleanup(fds: fdAndSizes.map(\.fd))
 59 |                 close(fd)
    |                 `- error: cannot find 'close' in scope
 60 |                 throw POSIXError(.init(rawValue: errno)!)
 61 |             }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:60:50: error: cannot find 'errno' in scope
 58 |                 cleanup(fds: fdAndSizes.map(\.fd))
 59 |                 close(fd)
 60 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 61 |             }
 62 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:68:23: error: cannot find 'mmap' in scope
 66 |         let fullSize = fdAndSizes.reduce(0, { $0 + $1.size })
 67 |
 68 |         let basePtr = mmap(
    |                       `- error: cannot find 'mmap' in scope
 69 |             nil,
 70 |             numericCast(fullSize),
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:13: error: cannot find 'PROT_NONE' in scope
 69 |             nil,
 70 |             numericCast(fullSize),
 71 |             PROT_NONE,
    |             `- error: cannot find 'PROT_NONE' in scope
 72 |             MAP_PRIVATE | MAP_ANONYMOUS,
 73 |             -1,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:72:13: error: cannot find 'MAP_PRIVATE' in scope
 70 |             numericCast(fullSize),
 71 |             PROT_NONE,
 72 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |             `- error: cannot find 'MAP_PRIVATE' in scope
 73 |             -1,
 74 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:72:27: error: cannot find 'MAP_ANONYMOUS' in scope
 70 |             numericCast(fullSize),
 71 |             PROT_NONE,
 72 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |                           `- error: cannot find 'MAP_ANONYMOUS' in scope
 73 |             -1,
 74 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:69:13: error: 'nil' requires a contextual type
 67 |
 68 |         let basePtr = mmap(
 69 |             nil,
    |             `- error: 'nil' requires a contextual type
 70 |             numericCast(fullSize),
 71 |             PROT_NONE,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:70:13: error: generic parameter 'U' could not be inferred
 68 |         let basePtr = mmap(
 69 |             nil,
 70 |             numericCast(fullSize),
    |             `- error: generic parameter 'U' could not be inferred
 71 |             PROT_NONE,
 72 |             MAP_PRIVATE | MAP_ANONYMOUS,
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:77:36: error: cannot find 'MAP_FAILED' in scope
 75 |         )
 76 |         guard let basePtr,
 77 |               _fastPath(basePtr != MAP_FAILED) else {
    |                                    `- error: cannot find 'MAP_FAILED' in scope
 78 |             cleanup(fds: fdAndSizes.map(\.fd))
 79 |             throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:79:46: error: cannot find 'errno' in scope
 77 |               _fastPath(basePtr != MAP_FAILED) else {
 78 |             cleanup(fds: fdAndSizes.map(\.fd))
 79 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
 80 |         }
 81 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:82:27: error: cannot find 'PROT_READ' in scope
 80 |         }
 81 |
 82 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 83 |         if isWritable { prot |= PROT_WRITE }
 84 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:83:33: error: cannot find 'PROT_WRITE' in scope
 81 |
 82 |         var prot: Int32 = PROT_READ
 83 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 84 |
 85 |         var offset = 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:29: error: cannot find 'mmap' in scope
 88 |             let size: Int = numericCast(size)
 89 |             let ptr = basePtr.advanced(by: offset)
 90 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                             `- error: cannot find 'mmap' in scope
 91 |             guard ptr == mappedPtr,
 92 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:51: error: cannot find 'MAP_FIXED' in scope
 88 |             let size: Int = numericCast(size)
 89 |             let ptr = basePtr.advanced(by: offset)
 90 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                   `- error: cannot find 'MAP_FIXED' in scope
 91 |             guard ptr == mappedPtr,
 92 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:63: error: cannot find 'MAP_PRIVATE' in scope
 88 |             let size: Int = numericCast(size)
 89 |             let ptr = basePtr.advanced(by: offset)
 90 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                               `- error: cannot find 'MAP_PRIVATE' in scope
 91 |             guard ptr == mappedPtr,
 92 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:92:36: error: cannot find 'MAP_FAILED' in scope
 90 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
 91 |             guard ptr == mappedPtr,
 92 |                   _fastPath(ptr != MAP_FAILED) else {
    |                                    `- error: cannot find 'MAP_FAILED' in scope
 93 |                 cleanup(fds: fdAndSizes.map(\.fd))
 94 |                 throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:94:50: error: cannot find 'errno' in scope
 92 |                   _fastPath(ptr != MAP_FAILED) else {
 93 |                 cleanup(fds: fdAndSizes.map(\.fd))
 94 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             files.append(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:120:23: error: cannot find 'close' in scope
118 |
119 |     private static func cleanup(fds: [CInt]) {
120 |         fds.forEach { close($0) }
    |                       `- error: cannot find 'close' in scope
121 |     }
122 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:13: error: cannot find 'msync' in scope
154 |         data.withUnsafeBytes { buffer in
155 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:57: error: cannot find 'MS_SYNC' in scope
154 |         data.withUnsafeBytes { buffer in
155 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:9: error: cannot find 'msync' in scope
201 |             .assumingMemoryBound(to: T.self)
202 |             .pointee = value
203 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
204 |     }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:49: error: cannot find 'MS_SYNC' in scope
201 |             .assumingMemoryBound(to: T.self)
202 |             .pointee = value
203 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
204 |     }
205 | }
[298/828] Compiling OrderedCollections _HashTable+Constants.swift
[300/828] Emitting module ObjCTypeDecodeKit
[301/828] Compiling FileIO ConcatenatedStreamedFile.swift
[302/829] Compiling ObjCTypeDecodeKit ObjCPropertyTypeDecoder.swift
[303/829] Emitting module IssueReporting
[306/829] Wrapping AST for SwiftRetain for debugging
[307/829] Compiling Logging LogHandler.swift
[310/829] Compiling ObjCTypeDecodeKit ObjCMethodTypeDecoder.swift
[311/829] Compiling PrivateHeaderKitTooling SignalForwarding.swift
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/FileOps.swift:9:64: error: cannot find 'getpid' in scope
  7 |
  8 | public enum FileOps {
  9 |     public static func buildStageDir(outDir: URL, pid: Int32 = getpid(), date: Date = Date()) -> URL {
    |                                                                `- error: cannot find 'getpid' in scope
 10 |         let formatter = DateFormatter()
 11 |         formatter.locale = Locale(identifier: "en_US_POSIX")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/FileOps.swift:35:13: error: cannot find 'rmdir' in scope
 33 |     public static func tryRemoveEmpty(_ url: URL, fileManager: FileManager = .default) {
 34 |         // Match Python behavior: only remove if the directory is empty.
 35 |         _ = rmdir(url.path)
    |             `- error: cannot find 'rmdir' in scope
 36 |     }
 37 |
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:22: error: cannot find 'open' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                      `- error: cannot find 'open' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:33: error: cannot find 'O_CREAT' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                 `- error: cannot find 'O_CREAT' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:43: error: cannot find 'O_RDWR' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                           `- error: cannot find 'O_RDWR' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:51: error: cannot find 'S_IRUSR' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                   `- error: cannot find 'S_IRUSR' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:61: error: cannot find 'S_IWUSR' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                             `- error: cannot find 'S_IWUSR' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:71: error: cannot find 'S_IRGRP' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                                       `- error: cannot find 'S_IRGRP' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:81: error: cannot find 'S_IROTH' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                                                 `- error: cannot find 'S_IROTH' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:24:12: error: cannot find 'flock' in scope
22 |         self.fd = opened
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
   |            `- error: cannot find 'flock' in scope
25 |             close(opened)
26 |             self.fd = nil
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:24:26: error: cannot find 'LOCK_EX' in scope
22 |         self.fd = opened
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
   |                          `- error: cannot find 'LOCK_EX' in scope
25 |             close(opened)
26 |             self.fd = nil
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:24:36: error: cannot find 'LOCK_NB' in scope
22 |         self.fd = opened
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
   |                                    `- error: cannot find 'LOCK_NB' in scope
25 |             close(opened)
26 |             self.fd = nil
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:25:13: error: cannot find 'close' in scope
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
25 |             close(opened)
   |             `- error: cannot find 'close' in scope
26 |             self.fd = nil
27 |             throw ToolingError.message("output directory is locked: \(outDir.path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:30:13: error: cannot find 'ftruncate' in scope
28 |         }
29 |
30 |         _ = ftruncate(opened, 0)
   |             `- error: cannot find 'ftruncate' in scope
31 |         let started = ISO8601DateFormatter().string(from: Date())
32 |         let text = "pid=\(getpid())\nstarted=\(started)\n"
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:32:27: error: cannot find 'getpid' in scope
30 |         _ = ftruncate(opened, 0)
31 |         let started = ISO8601DateFormatter().string(from: Date())
32 |         let text = "pid=\(getpid())\nstarted=\(started)\n"
   |                           `- error: cannot find 'getpid' in scope
33 |         _ = text.withCString { ptr in
34 |             write(opened, ptr, strlen(ptr))
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:34:13: error: cannot find 'write' in scope
32 |         let text = "pid=\(getpid())\nstarted=\(started)\n"
33 |         _ = text.withCString { ptr in
34 |             write(opened, ptr, strlen(ptr))
   |             `- error: cannot find 'write' in scope
35 |         }
36 |         _ = fsync(opened)
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:36:13: error: cannot find 'fsync' in scope
34 |             write(opened, ptr, strlen(ptr))
35 |         }
36 |         _ = fsync(opened)
   |             `- error: cannot find 'fsync' in scope
37 |     }
38 |
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:42:13: error: cannot find 'flock' in scope
40 |         guard let fd else { return }
41 |         self.fd = nil
42 |         _ = flock(fd, LOCK_UN)
   |             `- error: cannot find 'flock' in scope
43 |         close(fd)
44 |         if removeFile {
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:42:23: error: cannot find 'LOCK_UN' in scope
40 |         guard let fd else { return }
41 |         self.fd = nil
42 |         _ = flock(fd, LOCK_UN)
   |                       `- error: cannot find 'LOCK_UN' in scope
43 |         close(fd)
44 |         if removeFile {
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:43:9: error: cannot find 'close' in scope
41 |         self.fd = nil
42 |         _ = flock(fd, LOCK_UN)
43 |         close(fd)
   |         `- error: cannot find 'close' in scope
44 |         if removeFile {
45 |             try? FileManager.default.removeItem(at: lockPath)
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/FileOps.swift:9:64: error: cannot find 'getpid' in scope
  7 |
  8 | public enum FileOps {
  9 |     public static func buildStageDir(outDir: URL, pid: Int32 = getpid(), date: Date = Date()) -> URL {
    |                                                                `- error: cannot find 'getpid' in scope
 10 |         let formatter = DateFormatter()
 11 |         formatter.locale = Locale(identifier: "en_US_POSIX")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/FileOps.swift:35:13: error: cannot find 'rmdir' in scope
 33 |     public static func tryRemoveEmpty(_ url: URL, fileManager: FileManager = .default) {
 34 |         // Match Python behavior: only remove if the directory is empty.
 35 |         _ = rmdir(url.path)
    |             `- error: cannot find 'rmdir' in scope
 36 |     }
 37 |
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:22: error: cannot find 'open' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                      `- error: cannot find 'open' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:33: error: cannot find 'O_CREAT' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                 `- error: cannot find 'O_CREAT' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:43: error: cannot find 'O_RDWR' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                           `- error: cannot find 'O_RDWR' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:51: error: cannot find 'S_IRUSR' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                   `- error: cannot find 'S_IRUSR' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:61: error: cannot find 'S_IWUSR' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                             `- error: cannot find 'S_IWUSR' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:71: error: cannot find 'S_IRGRP' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                                       `- error: cannot find 'S_IRGRP' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:18:81: error: cannot find 'S_IROTH' in scope
16 |         let path = lockPath.path
17 |
18 |         let opened = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
   |                                                                                 `- error: cannot find 'S_IROTH' in scope
19 |         if opened < 0 {
20 |             throw ToolingError.message("failed to open lock file: \(path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:24:12: error: cannot find 'flock' in scope
22 |         self.fd = opened
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
   |            `- error: cannot find 'flock' in scope
25 |             close(opened)
26 |             self.fd = nil
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:24:26: error: cannot find 'LOCK_EX' in scope
22 |         self.fd = opened
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
   |                          `- error: cannot find 'LOCK_EX' in scope
25 |             close(opened)
26 |             self.fd = nil
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:24:36: error: cannot find 'LOCK_NB' in scope
22 |         self.fd = opened
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
   |                                    `- error: cannot find 'LOCK_NB' in scope
25 |             close(opened)
26 |             self.fd = nil
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:25:13: error: cannot find 'close' in scope
23 |
24 |         if flock(opened, LOCK_EX | LOCK_NB) != 0 {
25 |             close(opened)
   |             `- error: cannot find 'close' in scope
26 |             self.fd = nil
27 |             throw ToolingError.message("output directory is locked: \(outDir.path)")
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:30:13: error: cannot find 'ftruncate' in scope
28 |         }
29 |
30 |         _ = ftruncate(opened, 0)
   |             `- error: cannot find 'ftruncate' in scope
31 |         let started = ISO8601DateFormatter().string(from: Date())
32 |         let text = "pid=\(getpid())\nstarted=\(started)\n"
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:32:27: error: cannot find 'getpid' in scope
30 |         _ = ftruncate(opened, 0)
31 |         let started = ISO8601DateFormatter().string(from: Date())
32 |         let text = "pid=\(getpid())\nstarted=\(started)\n"
   |                           `- error: cannot find 'getpid' in scope
33 |         _ = text.withCString { ptr in
34 |             write(opened, ptr, strlen(ptr))
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:34:13: error: cannot find 'write' in scope
32 |         let text = "pid=\(getpid())\nstarted=\(started)\n"
33 |         _ = text.withCString { ptr in
34 |             write(opened, ptr, strlen(ptr))
   |             `- error: cannot find 'write' in scope
35 |         }
36 |         _ = fsync(opened)
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:36:13: error: cannot find 'fsync' in scope
34 |             write(opened, ptr, strlen(ptr))
35 |         }
36 |         _ = fsync(opened)
   |             `- error: cannot find 'fsync' in scope
37 |     }
38 |
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:42:13: error: cannot find 'flock' in scope
40 |         guard let fd else { return }
41 |         self.fd = nil
42 |         _ = flock(fd, LOCK_UN)
   |             `- error: cannot find 'flock' in scope
43 |         close(fd)
44 |         if removeFile {
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:42:23: error: cannot find 'LOCK_UN' in scope
40 |         guard let fd else { return }
41 |         self.fd = nil
42 |         _ = flock(fd, LOCK_UN)
   |                       `- error: cannot find 'LOCK_UN' in scope
43 |         close(fd)
44 |         if removeFile {
/host/spi-builder-workspace/Sources/PrivateHeaderKitTooling/OutputLock.swift:43:9: error: cannot find 'close' in scope
41 |         self.fd = nil
42 |         _ = flock(fd, LOCK_UN)
43 |         close(fd)
   |         `- error: cannot find 'close' in scope
44 |         if removeFile {
45 |             try? FileManager.default.removeItem(at: lockPath)
BUILD FAILURE 6.2 android