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 MachOKit, reference 0.38.0 (954f8a), with Swift 6.1 for Android on 18 Aug 2025 19:47:06 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/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/MachOKit.git
Reference: 0.38.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/p-x9/MachOKit
 * tag               0.38.0     -> FETCH_HEAD
HEAD is now at 954f8ad Merge pull request #233 from p-x9/feature/export-symbol-func-variant
Cloned https://github.com/p-x9/MachOKit.git
Revision (git rev-parse @):
954f8ad0b5abb8ebcacb36238765559cde10caa2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/p-x9/MachOKit.git at 0.38.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/p-x9/MachOKit.git
https://github.com/p-x9/MachOKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-fileio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.11.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/swift-fileio.git"
    },
    {
      "identity" : "swift-crypto",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-crypto.git"
    }
  ],
  "manifest_display_name" : "MachOKit",
  "name" : "MachOKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "MachOKit",
      "targets" : [
        "MachOKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MachOKitC",
      "targets" : [
        "MachOKitC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MachOKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MachOKitTests",
      "path" : "Tests/MachOKitTests",
      "sources" : [
        "DyldCacheLoadedPrintTests.swift",
        "DyldCachePrintTests.swift",
        "FullDyldCachePrintTests.swift",
        "MachOFilePrintTests.swift",
        "MachOKitTests.swift",
        "MachOPrintTests.swift"
      ],
      "target_dependencies" : [
        "MachOKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MachOKitC",
      "module_type" : "ClangTarget",
      "name" : "MachOKitC",
      "path" : "Sources/MachOKitC",
      "product_memberships" : [
        "MachOKit",
        "MachOKitC"
      ],
      "sources" : [
        "mach-o-linux.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MachOKit",
      "module_type" : "SwiftTarget",
      "name" : "MachOKit",
      "path" : "Sources/MachOKit",
      "product_dependencies" : [
        "FileIO",
        "Crypto"
      ],
      "product_memberships" : [
        "MachOKit"
      ],
      "sources" : [
        "DyldCache+SubCaches.swift",
        "DyldCache+host.swift",
        "DyldCache.swift",
        "DyldCacheLoaded+SubCaches.swift",
        "DyldCacheLoaded+static.swift",
        "DyldCacheLoaded.swift",
        "Extension/Data+.swift",
        "Extension/FileHandle+.swift",
        "Extension/FixedWidthInteger+.swift",
        "Extension/Sequence+.swift",
        "Extension/String+.swift",
        "Extension/TrieTreeProtocol+.swift",
        "Extension/UUID+.swift",
        "Extension/UnsafePointer+.swift",
        "Extension/UnsafeRawPointer+.swift",
        "Extension/_FileIOProtocol+.swift",
        "Extension/dyld_chained_ptr+.swift",
        "FatFile.swift",
        "FullDyldCache+host.swift",
        "FullDyldCache.swift",
        "Header/CPU.swift",
        "Header/CPUSubType.swift",
        "Header/CPUType.swift",
        "Header/DyldCacheHeader/DyldCacheHeader.swift",
        "Header/DyldCacheHeader/DyldCacheType.swift",
        "Header/FatHeader/FatArch.swift",
        "Header/FatHeader/FatHeader.swift",
        "Header/MachHeader/FileType.swift",
        "Header/MachHeader/MachHeader+Flags+Bit.swift",
        "Header/MachHeader/MachHeader+Flags.swift",
        "Header/MachHeader/MachHeader.swift",
        "Header/Magic.swift",
        "LoadCommand/BuildVersionCommand.swift",
        "LoadCommand/DylibCommand.swift",
        "LoadCommand/DylibUseCommand.swift",
        "LoadCommand/DylinkerCommand.swift",
        "LoadCommand/EncryptionInfoCommand.swift",
        "LoadCommand/EntryPointCommand.swift",
        "LoadCommand/LinkerOptionCommand.swift",
        "LoadCommand/LoadCommand.swift",
        "LoadCommand/LoadCommandInfo.swift",
        "LoadCommand/LoadCommandType.swift",
        "LoadCommand/Model/BuildToolVersion.swift",
        "LoadCommand/Model/Dylib.swift",
        "LoadCommand/Model/DylibUseFlags.swift",
        "LoadCommand/Model/Platform.swift",
        "LoadCommand/Model/Section+Attribute.swift",
        "LoadCommand/Model/Section+Flags.swift",
        "LoadCommand/Model/Section+Type.swift",
        "LoadCommand/Model/Section.swift",
        "LoadCommand/Model/ThreadState.swift",
        "LoadCommand/Model/ThreadStateFlavor.swift",
        "LoadCommand/Model/Tool.swift",
        "LoadCommand/Model/VMProtection.swift",
        "LoadCommand/Model/Version.swift",
        "LoadCommand/NoteCommand.swift",
        "LoadCommand/RpathCommand.swift",
        "LoadCommand/SegmentCommand+Flags.swift",
        "LoadCommand/SegmentCommand.swift",
        "LoadCommand/SourceVersionCommand.swift",
        "LoadCommand/TargetTripleCommand.swift",
        "LoadCommand/ThreadCommand.swift",
        "LoadCommand/UUIDCommand.swift",
        "LoadCommand/VersionMinCommand.swift",
        "MachOFile+BindOperations.swift",
        "MachOFile+CodeSign.swift",
        "MachOFile+DyldChainedFixups.swift",
        "MachOFile+ExportTrie.swift",
        "MachOFile+FunctionStarts.swift",
        "MachOFile+LoadCommands.swift",
        "MachOFile+RebaseOperations.swift",
        "MachOFile+Strings.swift",
        "MachOFile+Symbols.swift",
        "MachOFile.swift",
        "MachOImage+BindOperations.swift",
        "MachOImage+CodeSign.swift",
        "MachOImage+DyldChainedFixups..swift",
        "MachOImage+ExportTrie.swift",
        "MachOImage+FunctionStarts.swift",
        "MachOImage+LoadCommands.swift",
        "MachOImage+RebaseOperations.swift",
        "MachOImage+Strings.swift",
        "MachOImage+Symbols.swift",
        "MachOImage+static.swift",
        "MachOImage.swift",
        "MachOKit.swift",
        "Model/Bind/BindOpcode.swift",
        "Model/Bind/BindOperation.swift",
        "Model/Bind/BindOperationsKind.swift",
        "Model/Bind/BindSpecial.swift",
        "Model/Bind/BindType.swift",
        "Model/Bind/ClassicBindType.swift",
        "Model/BindingSymbol.swift",
        "Model/ClassicBindingSymbol.swift",
        "Model/Codesign/CodeDirectory/CodeSignCodeDirectory+codeLimit64.swift",
        "Model/Codesign/CodeDirectory/CodeSignCodeDirectory+executableSegment.swift",
        "Model/Codesign/CodeDirectory/CodeSignCodeDirectory+runtime.swift",
        "Model/Codesign/CodeDirectory/CodeSignCodeDirectory+scatter.swift",
        "Model/Codesign/CodeDirectory/CodeSignCodeDirectory+teamID.swift",
        "Model/Codesign/CodeDirectory/CodeSignCodeDirectory.swift",
        "Model/Codesign/CodeSignBlobIndex.swift",
        "Model/Codesign/CodeSignExecSegmentFlags.swift",
        "Model/Codesign/CodeSignGenericBlob.swift",
        "Model/Codesign/CodeSignHashType.swift",
        "Model/Codesign/CodeSignMagic.swift",
        "Model/Codesign/CodeSignSlot.swift",
        "Model/Codesign/CodeSignSpecialSlotType.swift",
        "Model/Codesign/CodeSignSuperBlob.swift",
        "Model/CoreFoundation/CFString.swift",
        "Model/DataInCodeEntry.swift",
        "Model/DependedDylib.swift",
        "Model/DyldCache/DyldCacheDynamicData.swift",
        "Model/DyldCache/DyldCacheFunctionVariantEntry.swift",
        "Model/DyldCache/DyldCacheFunctionVariantInfo.swift",
        "Model/DyldCache/DyldCacheImageInfo.swift",
        "Model/DyldCache/DyldCacheImageTextInfo.swift",
        "Model/DyldCache/DyldCacheLocalSymbolsEntry.swift",
        "Model/DyldCache/DyldCacheLocalSymbolsInfo.swift",
        "Model/DyldCache/DyldCacheMappingAndSlideInfo.swift",
        "Model/DyldCache/DyldCacheMappingFlags.swift",
        "Model/DyldCache/DyldCacheMappingInfo.swift",
        "Model/DyldCache/DyldCachePrewarming.swift",
        "Model/DyldCache/DyldCachePrewarmingEntry.swift",
        "Model/DyldCache/DyldCacheTproMappingInfo.swift",
        "Model/DyldCache/DyldSubCacheEntry.swift",
        "Model/DyldCache/DylibIndex.swift",
        "Model/DyldCache/DylibsTrieNodeContent.swift",
        "Model/DyldCache/Loader/LoaderRef.swift",
        "Model/DyldCache/Loader/ObjCBinaryInfo.swift",
        "Model/DyldCache/Loader/PrebuiltLoader.swift",
        "Model/DyldCache/Loader/PrebuiltLoaderProtocol.swift",
        "Model/DyldCache/Loader/PrebuiltLoaderSet.swift",
        "Model/DyldCache/Loader/PrebuiltLoader_Pre1165_3.swift",
        "Model/DyldCache/Loader/SectionLocations.swift",
        "Model/DyldCache/ObjCOptimization/ObjCHeaderInfoRO.swift",
        "Model/DyldCache/ObjCOptimization/ObjCHeaderInfoRW.swift",
        "Model/DyldCache/ObjCOptimization/ObjCHeaderOptimizationRO.swift",
        "Model/DyldCache/ObjCOptimization/ObjCHeaderOptimizationRW.swift",
        "Model/DyldCache/ObjCOptimization/ObjCImageInfo.swift",
        "Model/DyldCache/ObjCOptimization/ObjCOptimization.swift",
        "Model/DyldCache/ObjCOptimization/OldObjCOptimization.swift",
        "Model/DyldCache/ProgramOffset.swift",
        "Model/DyldCache/ProgramsTrieNodeContent.swift",
        "Model/DyldCache/SlideInfo/DyldCacheSlideInfo.swift",
        "Model/DyldCache/SlideInfo/DyldCacheSlideInfo1.swift",
        "Model/DyldCache/SlideInfo/DyldCacheSlideInfo2.swift",
        "Model/DyldCache/SlideInfo/DyldCacheSlideInfo3.swift",
        "Model/DyldCache/SlideInfo/DyldCacheSlideInfo4.swift",
        "Model/DyldCache/SlideInfo/DyldCacheSlideInfo5.swift",
        "Model/DyldCache/SwiftOptimization.swift",
        "Model/DyldChain/DyldChainedFixupPointer.swift",
        "Model/DyldChain/DyldChainedFixupPointerContent.swift",
        "Model/DyldChain/DyldChainedFixupPointerFormat.swift",
        "Model/DyldChain/DyldChainedFixupPointerInfo.swift",
        "Model/DyldChain/DyldChainedFixupsHeader.swift",
        "Model/DyldChain/DyldChainedImport.swift",
        "Model/DyldChain/DyldChainedImportFormat.swift",
        "Model/DyldChain/DyldChainedPage.swift",
        "Model/DyldChain/DyldChainedStartsInImage.swift",
        "Model/DyldChain/DyldChainedStartsInSegment.swift",
        "Model/DyldChain/DyldChainedStartsOffsets.swift",
        "Model/DyldChain/DyldChainedSymbolsFormat.swift",
        "Model/Endian.swift",
        "Model/Export/ExportSymbolFlags.swift",
        "Model/Export/ExportSymbolKind.swift",
        "Model/Export/ExportTrieEntry.swift",
        "Model/ExportedSymbol.swift",
        "Model/FunctionStart.swift",
        "Model/IndirectSymbol.swift",
        "Model/Rebase.swift",
        "Model/Rebase/RebaseOpcode.swift",
        "Model/Rebase/RebaseOperation.swift",
        "Model/Rebase/RebaseType.swift",
        "Model/Relocation/Relocation.swift",
        "Model/Relocation/RelocationInfo.swift",
        "Model/Relocation/RelocationLength.swift",
        "Model/Relocation/RelocationType.swift",
        "Model/Relocation/ScatteredRelocationInfo.swift",
        "Model/StringTableEntry.swift",
        "Model/Symbol/Nlist.swift",
        "Model/Symbol/Stab.swift",
        "Model/Symbol/SymbolDescription.swift",
        "Model/Symbol/SymbolFlags.swift",
        "Model/Symbol/SymbolLibraryOrdinalType.swift",
        "Model/Symbol/SymbolReferenceFlag.swift",
        "Model/Symbol/SymbolType.swift",
        "Protocol/CodeSignProtocol.swift",
        "Protocol/DyldCacheLocalSymbolsEntryProtocol.swift",
        "Protocol/DyldCacheRepresentable.swift",
        "Protocol/DyldChainedFixupsProtocol.swift",
        "Protocol/DyldChainedImportProtocol.swift",
        "Protocol/LayoutWrapper.swift",
        "Protocol/LoadCommandWrapper.swift",
        "Protocol/LoadCommandsProtocol.swift",
        "Protocol/MachORepresentable.swift",
        "Protocol/StringTable.swift",
        "Protocol/SymbolProtocol.swift",
        "Protocol/_DyldCacheFileRepresentable.swift",
        "Util/BitFlags.swift",
        "Util/Sequence/DataSequence.swift",
        "Util/Sequence/MemorySequence.swift",
        "Util/SwiftDemangle.swift",
        "Util/TrieTree/DataTrieTree.swift",
        "Util/TrieTree/MemoryTrieTree.swift",
        "Util/TrieTree/Model/TrieNode.swift",
        "Util/TrieTree/Protocol/TrieNodeContent.swift",
        "Util/TrieTree/Protocol/TrieTreeProtocol.swift",
        "Util/exported.swift",
        "Util/global.swift"
      ],
      "target_dependencies" : [
        "MachOKitC"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:77: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
75 | }
76 |
77 | 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
78 |     public static var allCases: [Self] {
79 |         [
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/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:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:77: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
75 | }
76 |
77 | 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
78 |     public static var allCases: [Self] {
79 |         [
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/p-x9/swift-fileio.git
[1/209] Fetching swift-fileio
[210/16485] Fetching swift-fileio, swift-crypto
Fetched https://github.com/p-x9/swift-fileio.git from cache (2.70s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.74s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.12.0 (3.25s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.14.0 (4.47s)
Fetching https://github.com/apple/swift-asn1.git
[1/1629] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.49s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (1.75s)
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.12.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.14.0
Building for debugging...
[0/374] Write sources
[4/374] Compiling fiat_p256_adx_sqr.S
[5/374] Compiling fiat_p256_adx_mul.S
[6/374] Compiling fiat_curve25519_adx_square.S
[7/374] Compiling fiat_curve25519_adx_mul.S
[8/374] Write swift-version-24593BA9C3E375BF.txt
[9/374] Compiling MachOKitC mach-o-linux.c
[10/374] Compiling md5-x86_64-linux.S
[11/374] Compiling md5-x86_64-apple.S
[12/374] Compiling md5-586-linux.S
[13/374] Compiling md5-586-apple.S
[14/374] Compiling chacha20_poly1305_x86_64-linux.S
[15/377] Compiling CCryptoBoringSSLShims shims.c
[16/379] Compiling chacha20_poly1305_x86_64-apple.S
[17/381] Compiling chacha20_poly1305_armv8-apple.S
[18/381] Compiling chacha20_poly1305_armv8-win.S
[19/381] Compiling chacha-x86_64-linux.S
[20/381] Compiling chacha-x86_64-apple.S
[21/381] Compiling chacha20_poly1305_armv8-linux.S
[22/381] Compiling chacha-armv8-win.S
[23/381] Compiling chacha-x86-apple.S
[24/381] Compiling chacha-x86-linux.S
[25/381] Compiling chacha-armv8-apple.S
[26/381] Compiling chacha-armv8-linux.S
[27/381] Compiling chacha-armv4-linux.S
[28/381] Compiling aes128gcmsiv-x86_64-linux.S
[29/381] Compiling aes128gcmsiv-x86_64-apple.S
[30/381] Compiling x86_64-mont5-linux.S
[31/381] Compiling x86_64-mont5-apple.S
[32/381] Compiling aes.cc
[33/381] Compiling x86_64-mont-linux.S
[34/381] Compiling x86_64-mont-apple.S
[35/381] Compiling x86-mont-linux.S
[36/381] Compiling x86-mont-apple.S
[37/381] Compiling err_data.cc
[38/381] Compiling vpaes-x86_64-linux.S
[39/381] Compiling vpaes-x86_64-apple.S
[40/381] Compiling vpaes-x86-linux.S
[41/381] Compiling vpaes-armv8-win.S
[42/381] Compiling vpaes-x86-apple.S
[43/381] Compiling vpaes-armv8-linux.S
[44/381] Compiling vpaes-armv8-apple.S
[45/381] Compiling sha512-x86_64-apple.S
[46/381] Compiling vpaes-armv7-linux.S
[47/381] Compiling sha512-armv8-win.S
[48/381] Compiling sha512-x86_64-linux.S
[49/381] Compiling sha512-armv8-linux.S
[50/381] Compiling sha512-armv4-linux.S
[51/381] Compiling sha512-586-linux.S
[52/381] Compiling sha512-armv8-apple.S
[53/381] Compiling sha256-x86_64-linux.S
[54/381] Compiling sha256-armv8-win.S
[55/381] Compiling sha256-x86_64-apple.S
[56/381] Compiling sha512-586-apple.S
[57/381] Compiling a_bitstr.cc
[58/381] Compiling sha256-armv8-linux.S
[59/381] Compiling sha256-armv4-linux.S
[60/381] Compiling sha256-armv8-apple.S
[61/381] Compiling sha256-586-linux.S
[62/381] Compiling a_bool.cc
[62/381] Compiling sha256-586-apple.S
[64/381] Compiling sha1-x86_64-linux.S
[65/381] Compiling sha1-armv8-apple.S
[66/381] Compiling sha1-x86_64-apple.S
[67/381] Compiling sha1-586-linux.S
[68/381] Compiling sha1-armv4-large-linux.S
[69/381] Compiling sha1-armv8-win.S
[70/381] Compiling sha1-586-apple.S
[71/381] Compiling sha1-armv8-linux.S
[72/381] Compiling rsaz-avx2-apple.S
[73/381] Compiling rdrand-x86_64-apple.S
[74/381] Compiling rsaz-avx2-linux.S
[75/381] Compiling rdrand-x86_64-linux.S
[75/381] Compiling p256_beeu-x86_64-asm-linux.S
[77/381] Compiling p256_beeu-armv8-asm-linux.S
[78/381] Compiling p256_beeu-armv8-asm-win.S
[79/381] Compiling p256_beeu-x86_64-asm-apple.S
[80/381] Compiling p256_beeu-armv8-asm-apple.S
[81/381] Compiling p256-x86_64-asm-linux.S
[82/381] Compiling p256-armv8-asm-win.S
[83/381] Compiling p256-x86_64-asm-apple.S
[84/381] Compiling ghashv8-armv8-win.S
[85/381] Compiling p256-armv8-asm-apple.S
[86/381] Compiling ghashv8-armv7-linux.S
[86/381] Compiling p256-armv8-asm-linux.S
[86/381] Compiling ghash-x86_64-linux.S
[89/381] Compiling ghashv8-armv8-apple.S
[90/381] Compiling ghashv8-armv8-linux.S
[91/381] Compiling ghash-x86_64-apple.S
[92/381] Compiling ghash-x86-linux.S
[93/381] Compiling ghash-ssse3-x86_64-linux.S
[94/381] Compiling ghash-ssse3-x86_64-apple.S
[95/381] Compiling ghash-neon-armv8-win.S
[96/381] Compiling ghash-ssse3-x86-apple.S
[97/381] Compiling ghash-x86-apple.S
[98/381] Compiling ghash-ssse3-x86-linux.S
[99/381] Compiling ghash-neon-armv8-linux.S
[100/381] Compiling co-586-linux.S
[101/381] Compiling ghash-neon-armv8-apple.S
[102/381] Compiling ghash-armv4-linux.S
[103/381] Compiling co-586-apple.S
[104/381] Compiling bn-armv8-win.S
[105/381] Compiling bsaes-armv7-linux.S
[106/381] Compiling bn-armv8-linux.S
[107/381] Compiling bn-armv8-apple.S
[108/381] Compiling bn-586-linux.S
[109/381] Compiling bn-586-apple.S
[110/381] Compiling armv8-mont-linux.S
[111/381] Compiling armv8-mont-apple.S
[112/381] Compiling armv8-mont-win.S
[113/381] Compiling armv4-mont-linux.S
[114/381] Compiling aesv8-gcm-armv8-apple.S
[115/381] Compiling aesv8-gcm-armv8-win.S
[116/381] Compiling aesv8-armv8-win.S
[117/381] Compiling aesv8-armv8-linux.S
[118/381] Compiling aesv8-armv8-apple.S
[119/381] Compiling aesv8-gcm-armv8-linux.S
[120/381] Compiling aesv8-armv7-linux.S
[121/381] Compiling aesni-x86_64-apple.S
[122/381] Compiling aesni-x86-apple.S
[123/381] Compiling aesni-x86_64-linux.S
[124/381] Compiling aesni-x86-linux.S
[125/381] Compiling aes-gcm-avx512-x86_64-linux.S
[126/381] Compiling aes-gcm-avx512-x86_64-apple.S
[127/381] Compiling aes-gcm-avx2-x86_64-linux.S
[128/381] Compiling aesni-gcm-x86_64-linux.S
[128/381] Compiling aes-gcm-avx2-x86_64-apple.S
[130/381] Compiling aesni-gcm-x86_64-apple.S
[131/381] Compiling xwing.cc
[132/381] Compiling x_val.cc
[133/381] Compiling x_sig.cc
[134/381] Compiling x_spki.cc
[135/381] Compiling x_req.cc
[136/381] Compiling x_x509a.cc
[137/381] Compiling x_x509.cc
[138/381] Compiling x_pubkey.cc
[139/381] Compiling x_crl.cc
[140/381] Compiling x_name.cc
[141/381] Compiling x_exten.cc
[142/381] Compiling x_all.cc
[143/381] Compiling x_attrib.cc
[144/381] Compiling x_algor.cc
[145/381] Compiling x509spki.cc
[146/381] Compiling x509cset.cc
[147/381] Compiling x509_vfy.cc
[148/381] Compiling x509rset.cc
[149/381] Compiling x509_v3.cc
[150/381] Compiling x509name.cc
[151/381] Compiling x509_vpm.cc
[152/381] Compiling x509_txt.cc
[153/381] Compiling x509_trs.cc
[154/381] Compiling x509_req.cc
[155/381] Compiling x509_set.cc
[156/381] Compiling x509_ext.cc
[157/381] Compiling x509_lu.cc
[158/381] Compiling x509_obj.cc
[159/381] Compiling x509_def.cc
[160/381] Compiling x509_cmp.cc
[161/381] Compiling x509_d2.cc
[162/381] Compiling x509.cc
[163/381] Compiling x509_att.cc
[164/381] Compiling v3_skey.cc
[165/381] Compiling v3_purp.cc
[166/381] Compiling v3_utl.cc
[168/381] Compiling FileIO ConcatenatedStreamedFile.swift
[169/381] Compiling FileIO system.swift
[170/381] Compiling FileIO StreamedFile.swift
[171/381] Compiling FileIO FileIO.swift
[172/381] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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 | }
[173/381] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:49:51: error: cannot find 'O_RDWR' in scope
 47 |         var fdAndSizes: [(fd: CInt, size: off_t)] = []
 48 |         for url in urls {
 49 |             let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                                   `- error: cannot find 'O_RDWR' in scope
 50 |             guard _fastPath(fd > 0) else {
 51 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:49:60: error: cannot find 'O_RDONLY' in scope
 47 |         var fdAndSizes: [(fd: CInt, size: off_t)] = []
 48 |         for url in urls {
 49 |             let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                                            `- error: cannot find 'O_RDONLY' in scope
 50 |             guard _fastPath(fd > 0) else {
 51 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:52:50: error: cannot find 'errno' in scope
 50 |             guard _fastPath(fd > 0) else {
 51 |                 cleanup(fds: fdAndSizes.map(\.fd))
 52 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 53 |             }
 54 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:55:28: error: cannot find 'lseek' in scope
 53 |             }
 54 |
 55 |             let fileSize = lseek(fd, 0, SEEK_END)
    |                            `- error: cannot find 'lseek' in scope
 56 |             guard _fastPath(fileSize > 0) else {
 57 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:58:17: error: cannot find 'close' in scope
 56 |             guard _fastPath(fileSize > 0) else {
 57 |                 cleanup(fds: fdAndSizes.map(\.fd))
 58 |                 close(fd)
    |                 `- error: cannot find 'close' in scope
 59 |                 throw POSIXError(.init(rawValue: errno)!)
 60 |             }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:59:50: error: cannot find 'errno' in scope
 57 |                 cleanup(fds: fdAndSizes.map(\.fd))
 58 |                 close(fd)
 59 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 60 |             }
 61 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:67:23: error: cannot find 'mmap' in scope
 65 |         let fullSize = fdAndSizes.reduce(0, { $0 + $1.size })
 66 |
 67 |         let basePtr = mmap(
    |                       `- error: cannot find 'mmap' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:70:13: error: cannot find 'PROT_NONE' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
    |             `- error: cannot find 'PROT_NONE' in scope
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
 72 |             -1,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:13: error: cannot find 'MAP_PRIVATE' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |             `- error: cannot find 'MAP_PRIVATE' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:27: error: cannot find 'MAP_ANONYMOUS' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |                           `- error: cannot find 'MAP_ANONYMOUS' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:68:13: error: 'nil' requires a contextual type
 66 |
 67 |         let basePtr = mmap(
 68 |             nil,
    |             `- error: 'nil' requires a contextual type
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:69:13: error: generic parameter 'U' could not be inferred
 67 |         let basePtr = mmap(
 68 |             nil,
 69 |             numericCast(fullSize),
    |             `- error: generic parameter 'U' could not be inferred
 70 |             PROT_NONE,
 71 |             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:76:36: error: cannot find 'MAP_FAILED' in scope
 74 |         )
 75 |         guard let basePtr,
 76 |               _fastPath(basePtr != MAP_FAILED) else {
    |                                    `- error: cannot find 'MAP_FAILED' in scope
 77 |             cleanup(fds: fdAndSizes.map(\.fd))
 78 |             throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:78:46: error: cannot find 'errno' in scope
 76 |               _fastPath(basePtr != MAP_FAILED) else {
 77 |             cleanup(fds: fdAndSizes.map(\.fd))
 78 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
 79 |         }
 80 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:81:27: error: cannot find 'PROT_READ' in scope
 79 |         }
 80 |
 81 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 82 |         if isWritable { prot |= PROT_WRITE }
 83 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:82:33: error: cannot find 'PROT_WRITE' in scope
 80 |
 81 |         var prot: Int32 = PROT_READ
 82 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 83 |
 84 |         var offset = 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:29: error: cannot find 'mmap' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                             `- error: cannot find 'mmap' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:51: error: cannot find 'MAP_FIXED' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                   `- error: cannot find 'MAP_FIXED' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:63: error: cannot find 'MAP_PRIVATE' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                               `- error: cannot find 'MAP_PRIVATE' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:91:36: error: cannot find 'MAP_FAILED' in scope
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
    |                                    `- error: cannot find 'MAP_FAILED' in scope
 92 |                 cleanup(fds: fdAndSizes.map(\.fd))
 93 |                 throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:93:50: error: cannot find 'errno' in scope
 91 |                   _fastPath(ptr != MAP_FAILED) else {
 92 |                 cleanup(fds: fdAndSizes.map(\.fd))
 93 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 94 |             }
 95 |             files.append(
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:119:23: error: cannot find 'close' in scope
117 |
118 |     private static func cleanup(fds: [CInt]) {
119 |         fds.forEach { close($0) }
    |                       `- error: cannot find 'close' in scope
120 |     }
121 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[174/381] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
/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 | }
[174/381] Compiling v3_ocsp.cc
[174/381] Compiling v3_lib.cc
[174/381] Compiling v3_pcons.cc
[174/381] Compiling v3_ncons.cc
[174/381] Compiling v3_prn.cc
[174/381] Compiling v3_int.cc
[174/381] Compiling v3_pmaps.cc
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/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:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:77: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
75 | }
76 |
77 | 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
78 |     public static var allCases: [Self] {
79 |         [
[0/1] Planning build
Building for debugging...
[0/208] Compiling v3_ocsp.cc
[1/208] Compiling v3_prn.cc
[2/208] Compiling v3_int.cc
[3/208] Compiling v3_pcons.cc
[4/208] Compiling v3_info.cc
[5/208] Compiling v3_lib.cc
[6/208] Compiling v3_pmaps.cc
[7/208] Compiling v3_ncons.cc
[8/208] Write swift-version-24593BA9C3E375BF.txt
[9/208] Compiling v3_ia5.cc
[10/208] Compiling v3_cpols.cc
[11/208] Compiling v3_enum.cc
[12/208] Compiling v3_genn.cc
[13/208] Compiling v3_extku.cc
[14/212] Compiling v3_crld.cc
[15/215] Compiling v3_conf.cc
[17/215] Compiling FileIO system.swift
[17/215] Compiling v3_bitst.cc
[19/215] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:49:51: error: cannot find 'O_RDWR' in scope
 47 |         var fdAndSizes: [(fd: CInt, size: off_t)] = []
 48 |         for url in urls {
 49 |             let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                                   `- error: cannot find 'O_RDWR' in scope
 50 |             guard _fastPath(fd > 0) else {
 51 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:49:60: error: cannot find 'O_RDONLY' in scope
 47 |         var fdAndSizes: [(fd: CInt, size: off_t)] = []
 48 |         for url in urls {
 49 |             let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
    |                                                            `- error: cannot find 'O_RDONLY' in scope
 50 |             guard _fastPath(fd > 0) else {
 51 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:52:50: error: cannot find 'errno' in scope
 50 |             guard _fastPath(fd > 0) else {
 51 |                 cleanup(fds: fdAndSizes.map(\.fd))
 52 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 53 |             }
 54 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:55:28: error: cannot find 'lseek' in scope
 53 |             }
 54 |
 55 |             let fileSize = lseek(fd, 0, SEEK_END)
    |                            `- error: cannot find 'lseek' in scope
 56 |             guard _fastPath(fileSize > 0) else {
 57 |                 cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:58:17: error: cannot find 'close' in scope
 56 |             guard _fastPath(fileSize > 0) else {
 57 |                 cleanup(fds: fdAndSizes.map(\.fd))
 58 |                 close(fd)
    |                 `- error: cannot find 'close' in scope
 59 |                 throw POSIXError(.init(rawValue: errno)!)
 60 |             }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:59:50: error: cannot find 'errno' in scope
 57 |                 cleanup(fds: fdAndSizes.map(\.fd))
 58 |                 close(fd)
 59 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 60 |             }
 61 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:67:23: error: cannot find 'mmap' in scope
 65 |         let fullSize = fdAndSizes.reduce(0, { $0 + $1.size })
 66 |
 67 |         let basePtr = mmap(
    |                       `- error: cannot find 'mmap' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:70:13: error: cannot find 'PROT_NONE' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
    |             `- error: cannot find 'PROT_NONE' in scope
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
 72 |             -1,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:13: error: cannot find 'MAP_PRIVATE' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |             `- error: cannot find 'MAP_PRIVATE' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:27: error: cannot find 'MAP_ANONYMOUS' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |                           `- error: cannot find 'MAP_ANONYMOUS' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:68:13: error: 'nil' requires a contextual type
 66 |
 67 |         let basePtr = mmap(
 68 |             nil,
    |             `- error: 'nil' requires a contextual type
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:69:13: error: generic parameter 'U' could not be inferred
 67 |         let basePtr = mmap(
 68 |             nil,
 69 |             numericCast(fullSize),
    |             `- error: generic parameter 'U' could not be inferred
 70 |             PROT_NONE,
 71 |             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:76:36: error: cannot find 'MAP_FAILED' in scope
 74 |         )
 75 |         guard let basePtr,
 76 |               _fastPath(basePtr != MAP_FAILED) else {
    |                                    `- error: cannot find 'MAP_FAILED' in scope
 77 |             cleanup(fds: fdAndSizes.map(\.fd))
 78 |             throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:78:46: error: cannot find 'errno' in scope
 76 |               _fastPath(basePtr != MAP_FAILED) else {
 77 |             cleanup(fds: fdAndSizes.map(\.fd))
 78 |             throw POSIXError(.init(rawValue: errno)!)
    |                                              `- error: cannot find 'errno' in scope
 79 |         }
 80 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:81:27: error: cannot find 'PROT_READ' in scope
 79 |         }
 80 |
 81 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 82 |         if isWritable { prot |= PROT_WRITE }
 83 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:82:33: error: cannot find 'PROT_WRITE' in scope
 80 |
 81 |         var prot: Int32 = PROT_READ
 82 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 83 |
 84 |         var offset = 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:29: error: cannot find 'mmap' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                             `- error: cannot find 'mmap' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:51: error: cannot find 'MAP_FIXED' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                   `- error: cannot find 'MAP_FIXED' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:63: error: cannot find 'MAP_PRIVATE' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                               `- error: cannot find 'MAP_PRIVATE' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:91:36: error: cannot find 'MAP_FAILED' in scope
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
    |                                    `- error: cannot find 'MAP_FAILED' in scope
 92 |                 cleanup(fds: fdAndSizes.map(\.fd))
 93 |                 throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:93:50: error: cannot find 'errno' in scope
 91 |                   _fastPath(ptr != MAP_FAILED) else {
 92 |                 cleanup(fds: fdAndSizes.map(\.fd))
 93 |                 throw POSIXError(.init(rawValue: errno)!)
    |                                                  `- error: cannot find 'errno' in scope
 94 |             }
 95 |             files.append(
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/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:119:23: error: cannot find 'close' in scope
117 |
118 |     private static func cleanup(fds: [CInt]) {
119 |         fds.forEach { close($0) }
    |                       `- error: cannot find 'close' in scope
120 |     }
121 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
[20/215] Compiling FileIO ConcatenatedStreamedFile.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/215] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
/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 | }
[22/215] Compiling FileIO StreamedFile.swift
[23/215] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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 | }
[24/215] Compiling FileIO FileIO.swift
[24/215] Compiling v3_akeya.cc
[25/215] Compiling v3_bcons.cc
[25/215] Compiling t_x509a.cc
[27/215] Compiling v3_alt.cc
[28/215] Compiling v3_akey.cc
[29/215] Compiling t_crl.cc
[29/215] Compiling name_print.cc
[29/215] Compiling rsa_pss.cc
[29/215] Compiling policy.cc
[29/215] Compiling i2d_pr.cc
[29/215] Compiling t_x509.cc
[29/215] Compiling t_req.cc
BUILD FAILURE 6.1 android