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 pixivswift, reference v1.1.10 (72a109), with Swift 6.1 for Android on 30 May 2025 02:17:35 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/theBreadCompany/pixivswift.git
Reference: v1.1.10
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/theBreadCompany/pixivswift
 * tag               v1.1.10    -> FETCH_HEAD
HEAD is now at 72a1095 fix commits for ZIPFoundation and SwiftGD because neither pushed their bug fixes as patches yet
Cloned https://github.com/theBreadCompany/pixivswift.git
Revision (git rev-parse @):
72a109589344e6281c6327cf568cea0c123ee216
SUCCESS checkout https://github.com/theBreadCompany/pixivswift.git at v1.1.10
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/theBreadCompany/pixivswift.git
https://github.com/theBreadCompany/pixivswift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "zipfoundation",
      "requirement" : {
        "revision" : [
          "fac78dfe5a886ad98e355ba98475b30b3753213a"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/weichsel/ZIPFoundation.git"
    },
    {
      "identity" : "swift-crypto",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-crypto.git"
    },
    {
      "identity" : "swift-gif",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/fwcd/swift-gif.git"
    },
    {
      "identity" : "swiftgd",
      "requirement" : {
        "revision" : [
          "07650dcb343d5b045598459fd3aad0936e0259bf"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/twostraws/SwiftGD"
    }
  ],
  "manifest_display_name" : "pixivswift",
  "name" : "pixivswift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "pixivswift",
      "targets" : [
        "pixivswift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "pixivswiftWrapper",
      "targets" : [
        "pixivswiftWrapper",
        "pixivswift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "pixivauth",
      "targets" : [
        "pixivauth"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "pixivswiftWrapperTests",
      "module_type" : "SwiftTarget",
      "name" : "pixivswiftWrapperTests",
      "path" : "Tests/pixivswiftWrapperTests",
      "sources" : [
        "TestErrors.swift",
        "bookmarks.swift",
        "core.swift",
        "follow.swift",
        "ugoira.swift"
      ],
      "target_dependencies" : [
        "pixivswiftWrapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "pixivswiftWrapper",
      "module_type" : "SwiftTarget",
      "name" : "pixivswiftWrapper",
      "path" : "Sources/pixivswiftWrapper",
      "product_dependencies" : [
        "ZIPFoundation",
        "GIF",
        "SwiftGD"
      ],
      "product_memberships" : [
        "pixivswiftWrapper"
      ],
      "sources" : [
        "File.swift",
        "PixivDownloader+Metadata.swift",
        "PixivDownloader.swift",
        "utils.swift"
      ],
      "target_dependencies" : [
        "pixivswift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "pixivswiftTests",
      "module_type" : "SwiftTarget",
      "name" : "pixivswiftTests",
      "path" : "Tests/pixivswiftTests",
      "sources" : [
        "TestErrors.swift",
        "bookmarks.swift",
        "core.swift",
        "related.swift"
      ],
      "target_dependencies" : [
        "pixivswift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "pixivswift",
      "module_type" : "SwiftTarget",
      "name" : "pixivswift",
      "path" : "Sources/pixivswift",
      "product_dependencies" : [
        "Crypto"
      ],
      "product_memberships" : [
        "pixivswift",
        "pixivswiftWrapper",
        "pixivauth"
      ],
      "sources" : [
        "PixivResults+Helper.swift",
        "PixivResults+Operators.swift",
        "PixivResults.swift",
        "aapi+completionHandlers.swift",
        "aapi+newNames.swift",
        "aapi.swift",
        "api.swift",
        "headless_login.swift",
        "utils.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "pixivauth",
      "module_type" : "SwiftTarget",
      "name" : "pixivauth",
      "path" : "Sources/pixivauth",
      "product_memberships" : [
        "pixivauth"
      ],
      "sources" : [
        "AppDelegate.swift",
        "ViewController.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "pixivswift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/weichsel/ZIPFoundation.git
[1/5574] Fetching zipfoundation
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (0.64s)
Fetching https://github.com/twostraws/SwiftGD
[1/444] Fetching swiftgd
Fetched https://github.com/twostraws/SwiftGD from cache (0.25s)
Fetching https://github.com/fwcd/swift-gif.git
Fetching https://github.com/apple/swift-crypto.git
[1/1151] Fetching swift-gif
[1152/15087] Fetching swift-gif, swift-crypto
Fetched https://github.com/fwcd/swift-gif.git from cache (2.06s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.09s)
Computing version for https://github.com/fwcd/swift-gif.git
Computed https://github.com/fwcd/swift-gif.git at 2.1.0 (3.10s)
Fetching https://github.com/fwcd/swift-graphics.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/fwcd/swift-utils.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/1122] Fetching swift-utils
[1123/1706] Fetching swift-utils, swift-graphics
[1707/5542] Fetching swift-utils, swift-graphics, swift-log
Fetched https://github.com/fwcd/swift-utils.git from cache (0.43s)
Fetched https://github.com/fwcd/swift-graphics.git from cache (0.43s)
[1/15379] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-log.git from cache (1.24s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.25s)
Computing version for https://github.com/fwcd/swift-graphics.git
Computed https://github.com/fwcd/swift-graphics.git at 2.1.0 (2.15s)
Fetching https://github.com/fwcd/swift-cairo.git
[1/3621] Fetching swift-cairo
Fetched https://github.com/fwcd/swift-cairo.git from cache (1.27s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 0.3.2 (1.97s)
Computing version for https://github.com/fwcd/swift-cairo.git
Computed https://github.com/fwcd/swift-cairo.git at 1.3.4 (0.65s)
Computing version for https://github.com/fwcd/swift-utils.git
Computed https://github.com/fwcd/swift-utils.git at 2.2.2 (0.60s)
Fetching https://github.com/scinfu/SwiftSoup.git
Fetching https://github.com/MaxDesiatov/XMLCoder.git
[1/3908] Fetching swiftsoup
[1096/13919] Fetching swiftsoup, xmlcoder
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.68s)
Fetched https://github.com/MaxDesiatov/XMLCoder.git from cache (0.68s)
Computing version for https://github.com/MaxDesiatov/XMLCoder.git
Computed https://github.com/MaxDesiatov/XMLCoder.git at 0.17.1 (2.71s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.59s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (1.84s)
Fetching https://github.com/apple/swift-asn1.git
[1/1590] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (1.02s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.8.7 (0.49s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 0.3.2
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/MaxDesiatov/XMLCoder.git
Working copy of https://github.com/MaxDesiatov/XMLCoder.git resolved at 0.17.1
Creating working copy for https://github.com/fwcd/swift-utils.git
Working copy of https://github.com/fwcd/swift-utils.git resolved at 2.2.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at fac78dfe5a886ad98e355ba98475b30b3753213a
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.8.7
Creating working copy for https://github.com/fwcd/swift-cairo.git
Working copy of https://github.com/fwcd/swift-cairo.git resolved at 1.3.4
Creating working copy for https://github.com/fwcd/swift-graphics.git
Working copy of https://github.com/fwcd/swift-graphics.git resolved at 2.1.0
Creating working copy for https://github.com/fwcd/swift-gif.git
Working copy of https://github.com/fwcd/swift-gif.git resolved at 2.1.0
Creating working copy for https://github.com/twostraws/SwiftGD
Working copy of https://github.com/twostraws/SwiftGD resolved at 07650dcb343d5b045598459fd3aad0936e0259bf
warning: you may be able to install gdlib using your system-packager:
    apt-get install libgd-dev
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: you may be able to install fontconfig using your system-packager:
    apt-get install libfontconfig-dev
warning: you may be able to install cairo using your system-packager:
    apt-get install libcairo2-dev
warning: you may be able to install gdlib using your system-packager:
    apt-get install libgd-dev
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: you may be able to install fontconfig using your system-packager:
    apt-get install libfontconfig-dev
warning: you may be able to install cairo using your system-packager:
    apt-get install libcairo2-dev
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/373] Compiling a_gentm.cc
[1/373] Compiling a_bool.cc
[1/373] Write sources
[8/373] Compiling a_dup.cc
[9/373] Compiling a_d2i_fp.cc
[10/373] Compiling a_mbstr.cc
[11/373] Compiling fiat_p256_adx_sqr.S
[12/373] Compiling a_bitstr.cc
[13/373] Compiling tasn_new.cc
[14/373] Compiling fiat_curve25519_adx_square.S
[15/373] Compiling fiat_p256_adx_mul.S
[16/373] Compiling fiat_curve25519_adx_mul.S
[17/373] Write swift-version-24593BA9C3E375BF.txt
[18/373] Compiling md5-x86_64-linux.S
[19/373] Compiling md5-586-linux.S
[20/373] Compiling md5-x86_64-apple.S
[20/373] Compiling md5-586-apple.S
[22/373] Compiling chacha20_poly1305_x86_64-linux.S
[23/373] Compiling a_int.cc
[24/373] Compiling chacha20_poly1305_x86_64-apple.S
[25/373] Compiling chacha20_poly1305_armv8-win.S
[26/373] Compiling chacha20_poly1305_armv8-apple.S
[27/373] Compiling CCryptoBoringSSLShims shims.c
[28/373] Compiling chacha20_poly1305_armv8-linux.S
[29/373] Compiling chacha-x86_64-linux.S
[30/374] Compiling chacha-x86_64-apple.S
[31/375] Compiling chacha-x86-apple.S
[32/389] Compiling chacha-armv8-win.S
[33/393] Compiling chacha-x86-linux.S
[34/393] Compiling aes128gcmsiv-x86_64-linux.S
[35/393] Compiling chacha-armv4-linux.S
[36/393] Compiling aes128gcmsiv-x86_64-apple.S
[37/393] Compiling chacha-armv8-apple.S
[38/393] Compiling x86_64-mont5-apple.S
[39/393] Compiling x86_64-mont5-linux.S
[40/393] Compiling chacha-armv8-linux.S
[41/393] Compiling err_data.cc
[42/393] Compiling x86-mont-linux.S
[43/393] Compiling x86_64-mont-linux.S
[43/393] Compiling x86-mont-apple.S
[45/393] Compiling x86_64-mont-apple.S
[46/393] Compiling vpaes-x86_64-apple.S
[47/393] Compiling vpaes-x86_64-linux.S
[48/393] Compiling vpaes-x86-linux.S
[49/393] Compiling vpaes-armv8-win.S
[50/393] Compiling vpaes-armv8-linux.S
[51/393] Compiling vpaes-x86-apple.S
[52/393] Compiling vpaes-armv7-linux.S
[53/393] Compiling vpaes-armv8-apple.S
[53/393] Compiling sha512-x86_64-linux.S
[55/393] Compiling sha512-armv8-win.S
[56/393] Compiling sha512-x86_64-apple.S
[57/393] Compiling sha512-armv4-linux.S
[58/393] Compiling sha512-armv8-apple.S
[58/393] Compiling sha512-armv8-linux.S
[58/393] Compiling sha512-586-linux.S
[61/393] Compiling sha512-586-apple.S
[62/393] Compiling sha256-x86_64-apple.S
[63/393] Compiling sha256-x86_64-linux.S
[64/393] Compiling sha256-armv8-win.S
[65/393] Compiling sha256-armv4-linux.S
[66/393] Compiling sha256-armv8-apple.S
[67/393] Compiling sha256-armv8-linux.S
[68/393] Compiling sha256-586-linux.S
[69/393] Compiling sha1-x86_64-linux.S
[70/393] Compiling sha256-586-apple.S
[71/393] Compiling sha1-x86_64-apple.S
[72/393] Compiling sha1-armv8-linux.S
[72/393] Compiling sha1-armv8-apple.S
[74/393] Compiling sha1-armv8-win.S
error: emit-module command failed with exit code 1 (use -v to see invocation)
[76/393] Emitting module ZIPFoundation
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[76/395] Compiling sha1-armv4-large-linux.S
[77/395] Compiling sha1-586-linux.S
[78/395] Compiling rsaz-avx2-linux.S
[79/395] Compiling rsaz-avx2-apple.S
[79/395] Compiling sha1-586-apple.S
[81/395] Compiling rdrand-x86_64-apple.S
[82/395] Compiling rdrand-x86_64-linux.S
[83/395] Compiling p256_beeu-x86_64-asm-linux.S
[84/395] Compiling p256_beeu-x86_64-asm-apple.S
[85/395] Compiling p256_beeu-armv8-asm-apple.S
[86/395] Compiling p256_beeu-armv8-asm-win.S
[87/395] Compiling p256_beeu-armv8-asm-linux.S
[88/395] Compiling p256-armv8-asm-apple.S
[88/395] Compiling p256-armv8-asm-win.S
[90/395] Compiling p256-armv8-asm-linux.S
[91/395] Compiling p256-x86_64-asm-linux.S
[92/395] Compiling ghashv8-armv8-linux.S
[92/395] Compiling ghashv8-armv8-win.S
[94/395] Compiling p256-x86_64-asm-apple.S
[95/395] Compiling ghash-x86_64-linux.S
[96/395] Compiling ghash-x86_64-apple.S
[97/395] Compiling ghashv8-armv8-apple.S
[98/395] Compiling ghash-x86-apple.S
[99/395] Compiling ghash-ssse3-x86_64-linux.S
[100/395] Compiling ghashv8-armv7-linux.S
[101/395] Compiling ghash-x86-linux.S
[102/395] Compiling ghash-ssse3-x86_64-apple.S
[103/395] Compiling ghash-ssse3-x86-linux.S
[104/395] Compiling ghash-neon-armv8-apple.S
[105/395] Compiling ghash-ssse3-x86-apple.S
[106/395] Compiling ghash-armv4-linux.S
[107/395] Compiling ghash-neon-armv8-win.S
[108/395] Compiling ghash-neon-armv8-linux.S
[109/395] Compiling bsaes-armv7-linux.S
[110/395] Compiling co-586-apple.S
[111/395] Compiling bn-armv8-linux.S
[112/395] Compiling co-586-linux.S
[113/395] Compiling bn-armv8-apple.S
[114/395] Compiling bn-armv8-win.S
[115/395] Compiling bn-586-linux.S
[116/395] Compiling bn-586-apple.S
[117/395] Compiling armv8-mont-win.S
[118/395] Compiling armv8-mont-apple.S
[119/395] Compiling armv8-mont-linux.S
[120/395] Compiling armv4-mont-linux.S
[121/395] Compiling aesv8-gcm-armv8-win.S
[122/395] Compiling aesv8-armv8-win.S
[123/395] Compiling aesv8-gcm-armv8-linux.S
[124/395] Compiling aesv8-gcm-armv8-apple.S
[125/395] Compiling aesv8-armv8-linux.S
[126/395] Compiling aesv8-armv8-apple.S
[127/395] Compiling aesni-x86_64-apple.S
[128/395] Compiling aesni-x86_64-linux.S
[129/395] Compiling aesv8-armv7-linux.S
[130/395] Compiling aesni-x86-linux.S
[131/395] Compiling aesni-gcm-x86_64-linux.S
[132/395] Compiling aesni-x86-apple.S
[133/395] Compiling aesni-gcm-x86_64-apple.S
[134/395] Compiling aes-gcm-avx10-x86_64-linux.S
[135/395] Compiling aes-gcm-avx10-x86_64-apple.S
[136/395] Compiling x_spki.cc
[137/395] Compiling x_x509.cc
[138/395] Compiling x_sig.cc
[139/395] Compiling x_x509a.cc
[140/395] Compiling x_req.cc
[141/395] Compiling x_pubkey.cc
[142/395] Compiling x_val.cc
[143/395] Compiling x_name.cc
[144/395] Compiling x_algor.cc
[145/395] Compiling x_exten.cc
[146/395] Compiling x_attrib.cc
[147/395] Compiling x_crl.cc
[148/395] Compiling x_all.cc
[149/395] Compiling x509spki.cc
[150/395] Compiling x509rset.cc
[151/395] Compiling x509name.cc
[152/395] Compiling x509cset.cc
[153/395] Compiling x509_vpm.cc
[154/395] Compiling x509_v3.cc
[155/395] Compiling x509_txt.cc
[156/395] Compiling x509_vfy.cc
[158/395] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[159/395] Compiling ZIPFoundation URL+ZIP.swift
[160/395] Compiling ZIPFoundation Data+CompressionDeprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[161/395] Compiling ZIPFoundation Data+Serialization.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[162/395] Compiling ZIPFoundation Date+ZIP.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[163/395] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 |         fflush(self.archiveFile)
272 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
273 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[164/395] Compiling ZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 |         fflush(self.archiveFile)
272 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
273 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[165/395] Compiling ZIPFoundation Archive+WritingDeprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 |         fflush(self.archiveFile)
272 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
273 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[166/395] Compiling ZIPFoundation Archive+MemoryFile.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
 39 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 40 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 41 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 42 |             }
 43 |             defer { fclose(destinationFile) }
/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
[167/395] Compiling ZIPFoundation Archive+Progress.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
 39 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 40 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 41 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 42 |             }
 43 |             defer { fclose(destinationFile) }
/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
[168/395] Compiling ZIPFoundation Archive+Reading.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
 39 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 40 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 41 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 42 |             }
 43 |             defer { fclose(destinationFile) }
/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
[169/395] Compiling ZIPFoundation Archive+BackingConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:71:34: error: cannot find 'errno' in scope
 69 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 70 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 71 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 72 |             }
 73 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:107:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
105 |                                                                           zipFileCommentData: Data())
106 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
107 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                               `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
108 |             }
109 |             fallthrough
[170/395] Compiling ZIPFoundation Archive+Deprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:71:34: error: cannot find 'errno' in scope
 69 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 70 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 71 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 72 |             }
 73 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:107:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
105 |                                                                           zipFileCommentData: Data())
106 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
107 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                               `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
108 |             }
109 |             fallthrough
[171/395] Compiling ZIPFoundation Archive+Helpers.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:71:34: error: cannot find 'errno' in scope
 69 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 70 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 71 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 72 |             }
 73 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:107:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
105 |                                                                           zipFileCommentData: Data())
106 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
107 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                               `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
108 |             }
109 |             fallthrough
[172/395] Compiling ZIPFoundation Archive+ZIP64.swift
[173/395] Compiling ZIPFoundation Archive.swift
[174/395] Compiling ZIPFoundation Data+Compression.swift
[175/395] Compiling ZIPFoundation Entry.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:152:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
150 |         switch osType {
151 |         case .unix, .osx:
152 |             let mode = mode_t(self.centralDirectoryStructure.externalFileAttributes >> 16) & S_IFMT
    |                                                                                            |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                                                                            `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
153 |             switch mode {
154 |             case S_IFREG:
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:196:15: error: cannot find 'lchmod' in scope
194 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
197 |             throw POSIXError(errno, path: url.path)
198 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:197:30: error: cannot find 'errno' in scope
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
197 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
198 |         }
199 |     }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:203:24: error: cannot find 'stat' in scope
201 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:204:15: error: cannot find 'lstat' in scope
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
205 |             throw POSIXError(errno, path: url.path)
206 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:205:30: error: cannot find 'errno' in scope
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
206 |         }
207 |
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:214:19: error: cannot find 'lutimes' in scope
212 |         ]
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
215 |                 throw POSIXError(errno, path: url.path)
216 |             }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:215:34: error: cannot find 'errno' in scope
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
215 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
216 |             }
217 |         }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:244:72: error: cannot find 'S_IFMT' in scope
242 |         switch osType {
243 |         case .unix, .osx:
244 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
245 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 |         switch type {
255 |         case .file:
256 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 |             typeInt = UInt16(S_IFREG)
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 |             typeInt = UInt16(S_IFDIR)
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
261 |         }
262 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 |         let fileManager = FileManager()
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
271 |         lstat(entryFileSystemRepresentation, &fileStat)
272 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
271 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
272 |         let permissions = fileStat.st_mode
273 |         return UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 |         }
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
283 |         lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
283 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:302:21: error: cannot find 'stat' in scope
300 |
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
303 |         lstat(entryFileSystemRepresentation, &stats)
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:303:9: error: cannot find 'lstat' in scope
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
303 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
305 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 |         }
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
317 |         lstat(entryFileSystemRepresentation, &fileStat)
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
317 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 |     }
[176/395] Compiling ZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:152:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
150 |         switch osType {
151 |         case .unix, .osx:
152 |             let mode = mode_t(self.centralDirectoryStructure.externalFileAttributes >> 16) & S_IFMT
    |                                                                                            |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                                                                            `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
153 |             switch mode {
154 |             case S_IFREG:
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:196:15: error: cannot find 'lchmod' in scope
194 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
197 |             throw POSIXError(errno, path: url.path)
198 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:197:30: error: cannot find 'errno' in scope
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
197 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
198 |         }
199 |     }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:203:24: error: cannot find 'stat' in scope
201 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:204:15: error: cannot find 'lstat' in scope
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
205 |             throw POSIXError(errno, path: url.path)
206 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:205:30: error: cannot find 'errno' in scope
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
206 |         }
207 |
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:214:19: error: cannot find 'lutimes' in scope
212 |         ]
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
215 |                 throw POSIXError(errno, path: url.path)
216 |             }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:215:34: error: cannot find 'errno' in scope
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
215 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
216 |             }
217 |         }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:244:72: error: cannot find 'S_IFMT' in scope
242 |         switch osType {
243 |         case .unix, .osx:
244 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
245 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 |         switch type {
255 |         case .file:
256 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 |             typeInt = UInt16(S_IFREG)
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 |             typeInt = UInt16(S_IFDIR)
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
261 |         }
262 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 |         let fileManager = FileManager()
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
271 |         lstat(entryFileSystemRepresentation, &fileStat)
272 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
271 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
272 |         let permissions = fileStat.st_mode
273 |         return UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 |         }
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
283 |         lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
283 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:302:21: error: cannot find 'stat' in scope
300 |
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
303 |         lstat(entryFileSystemRepresentation, &stats)
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:303:9: error: cannot find 'lstat' in scope
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
303 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
305 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 |         }
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
317 |         lstat(entryFileSystemRepresentation, &fileStat)
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
317 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 |     }
[177/395] Compiling ZIPFoundation Entry+Serialization.swift
[178/395] Compiling ZIPFoundation Entry+ZIP64.swift
[178/395] Compiling x509_trs.cc
[178/395] Compiling x509_set.cc
[178/395] Compiling x509_def.cc
[178/395] Compiling x509_lu.cc
[178/395] Compiling x509_ext.cc
[178/395] Compiling x509_req.cc
[178/395] Compiling x509_obj.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: you may be able to install gdlib using your system-packager:
    apt-get install libgd-dev
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: you may be able to install fontconfig using your system-packager:
    apt-get install libfontconfig-dev
warning: you may be able to install cairo using your system-packager:
    apt-get install libcairo2-dev
warning: you may be able to install gdlib using your system-packager:
    apt-get install libgd-dev
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: you may be able to install fontconfig using your system-packager:
    apt-get install libfontconfig-dev
warning: you may be able to install cairo using your system-packager:
    apt-get install libcairo2-dev
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
[0/1] Planning build
Building for debugging...
[0/218] Compiling x509_lu.cc
[1/218] Compiling x509_trs.cc
[2/218] Write swift-version-24593BA9C3E375BF.txt
[3/218] Compiling x509_ext.cc
[4/218] Compiling x509_def.cc
[5/218] Compiling x509_d2.cc
[6/218] Compiling x509_obj.cc
[7/218] Compiling x509_req.cc
[7/218] Compiling x509_set.cc
[9/238] Compiling x509_cmp.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/238] Emitting module ZIPFoundation
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[12/240] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[13/240] Compiling ZIPFoundation URL+ZIP.swift
[14/240] Compiling ZIPFoundation Entry.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:152:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
150 |         switch osType {
151 |         case .unix, .osx:
152 |             let mode = mode_t(self.centralDirectoryStructure.externalFileAttributes >> 16) & S_IFMT
    |                                                                                            |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                                                                            `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
153 |             switch mode {
154 |             case S_IFREG:
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:196:15: error: cannot find 'lchmod' in scope
194 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
197 |             throw POSIXError(errno, path: url.path)
198 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:197:30: error: cannot find 'errno' in scope
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
197 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
198 |         }
199 |     }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:203:24: error: cannot find 'stat' in scope
201 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:204:15: error: cannot find 'lstat' in scope
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
205 |             throw POSIXError(errno, path: url.path)
206 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:205:30: error: cannot find 'errno' in scope
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
206 |         }
207 |
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:214:19: error: cannot find 'lutimes' in scope
212 |         ]
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
215 |                 throw POSIXError(errno, path: url.path)
216 |             }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:215:34: error: cannot find 'errno' in scope
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
215 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
216 |             }
217 |         }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:244:72: error: cannot find 'S_IFMT' in scope
242 |         switch osType {
243 |         case .unix, .osx:
244 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
245 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 |         switch type {
255 |         case .file:
256 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 |             typeInt = UInt16(S_IFREG)
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 |             typeInt = UInt16(S_IFDIR)
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
261 |         }
262 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 |         let fileManager = FileManager()
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
271 |         lstat(entryFileSystemRepresentation, &fileStat)
272 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
271 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
272 |         let permissions = fileStat.st_mode
273 |         return UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 |         }
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
283 |         lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
283 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:302:21: error: cannot find 'stat' in scope
300 |
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
303 |         lstat(entryFileSystemRepresentation, &stats)
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:303:9: error: cannot find 'lstat' in scope
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
303 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
305 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 |         }
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
317 |         lstat(entryFileSystemRepresentation, &fileStat)
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
317 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 |     }
[15/240] Compiling ZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Entry.swift:152:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
150 |         switch osType {
151 |         case .unix, .osx:
152 |             let mode = mode_t(self.centralDirectoryStructure.externalFileAttributes >> 16) & S_IFMT
    |                                                                                            |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                                                                            `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
153 |             switch mode {
154 |             case S_IFREG:
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:196:15: error: cannot find 'lchmod' in scope
194 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
197 |             throw POSIXError(errno, path: url.path)
198 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:197:30: error: cannot find 'errno' in scope
195 |         let modeT = posixPermissions.uint16Value
196 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
197 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
198 |         }
199 |     }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:203:24: error: cannot find 'stat' in scope
201 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:204:15: error: cannot find 'lstat' in scope
202 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
205 |             throw POSIXError(errno, path: url.path)
206 |         }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:205:30: error: cannot find 'errno' in scope
203 |         var fileStat = stat()
204 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
206 |         }
207 |
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:214:19: error: cannot find 'lutimes' in scope
212 |         ]
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
215 |                 throw POSIXError(errno, path: url.path)
216 |             }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:215:34: error: cannot find 'errno' in scope
213 |         try array.withUnsafeBufferPointer {
214 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
215 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
216 |             }
217 |         }
/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/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:244:72: error: cannot find 'S_IFMT' in scope
242 |         switch osType {
243 |         case .unix, .osx:
244 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
245 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 |         switch type {
255 |         case .file:
256 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 |             typeInt = UInt16(S_IFREG)
257 |         case .directory:
258 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 |             typeInt = UInt16(S_IFDIR)
259 |         case .symlink:
260 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
261 |         }
262 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 |         let fileManager = FileManager()
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
271 |         lstat(entryFileSystemRepresentation, &fileStat)
272 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 |         var fileStat = stat()
271 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
272 |         let permissions = fileStat.st_mode
273 |         return UInt16(permissions)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 |         }
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
283 |         lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 |         var fileStat = stat()
283 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:302:21: error: cannot find 'stat' in scope
300 |
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
303 |         lstat(entryFileSystemRepresentation, &stats)
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:303:9: error: cannot find 'lstat' in scope
301 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
302 |         var stats = stat()
303 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
304 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
305 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 |         }
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
317 |         lstat(entryFileSystemRepresentation, &fileStat)
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 |         var fileStat = stat()
317 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
318 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 |     }
[16/240] Compiling ZIPFoundation Archive+BackingConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:71:34: error: cannot find 'errno' in scope
 69 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 70 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 71 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 72 |             }
 73 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:107:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
105 |                                                                           zipFileCommentData: Data())
106 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
107 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                               `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
108 |             }
109 |             fallthrough
[17/240] Compiling ZIPFoundation Archive+Deprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:71:34: error: cannot find 'errno' in scope
 69 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 70 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 71 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 72 |             }
 73 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:107:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
105 |                                                                           zipFileCommentData: Data())
106 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
107 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                               `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
108 |             }
109 |             fallthrough
[18/240] Compiling ZIPFoundation Archive+Helpers.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:71:34: error: cannot find 'errno' in scope
 69 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 70 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 71 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 72 |             }
 73 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:107:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
105 |                                                                           zipFileCommentData: Data())
106 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
107 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                               `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
108 |             }
109 |             fallthrough
[19/240] Compiling ZIPFoundation Data+CompressionDeprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[20/240] Compiling ZIPFoundation Data+Serialization.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[21/240] Compiling ZIPFoundation Date+ZIP.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[21/240] Compiling v3_utl.cc
[22/240] Compiling x509_att.cc
[23/240] Compiling x509.cc
[24/240] Compiling v3_prn.cc
[25/240] Compiling v3_skey.cc
[26/240] Compiling v3_purp.cc
[28/240] Compiling ZIPFoundation Entry+Serialization.swift
[29/240] Compiling ZIPFoundation Entry+ZIP64.swift
[29/240] Compiling v3_pmaps.cc
[31/240] Compiling ZIPFoundation Archive+MemoryFile.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
 39 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 40 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 41 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 42 |             }
 43 |             defer { fclose(destinationFile) }
/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
[32/240] Compiling ZIPFoundation Archive+Progress.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
 39 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 40 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 41 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 42 |             }
 43 |             defer { fclose(destinationFile) }
/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
[33/240] Compiling ZIPFoundation Archive+Reading.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
 39 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 40 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 41 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 42 |             }
 43 |             defer { fclose(destinationFile) }
/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
[34/240] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 |         fflush(self.archiveFile)
272 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
273 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[35/240] Compiling ZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 |         fflush(self.archiveFile)
272 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
273 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[36/240] Compiling ZIPFoundation Archive+WritingDeprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/ZIPFoundation/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 |         fflush(self.archiveFile)
272 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
273 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[37/240] Compiling ZIPFoundation Archive+ZIP64.swift
[38/240] Compiling ZIPFoundation Archive.swift
[39/240] Compiling ZIPFoundation Data+Compression.swift
[39/240] Compiling v3_int.cc
[39/240] Compiling v3_ncons.cc
[39/240] Compiling v3_pcons.cc
[39/240] Compiling v3_lib.cc
[39/240] Compiling v3_ia5.cc
[39/240] Compiling v3_info.cc
[39/240] Compiling v3_ocsp.cc
BUILD FAILURE 6.1 android