The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PerfectTemplate, reference main (7b3a5c), with Swift 6.3 for Android on 17 Oct 2026 17:13:24 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfecttemplate.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/perfectlysoft/perfecttemplate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7b3a5c3 Merge pull request #25 from PerfectlySoft/swift6-modernization
Cloned https://github.com/perfectlysoft/perfecttemplate.git
Revision (git rev-parse @):
7b3a5c389f441ee2c78ff953826cadda9081e306
SUCCESS checkout https://github.com/perfectlysoft/perfecttemplate.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/perfectlysoft/perfecttemplate.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:ec170ed262d75c9e928493cd00a486dad2d4f04db1b55d884efec7db42d0226b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Fetching https://github.com/PerfectlySoft/Perfect-CRUD.git
Fetching https://github.com/PerfectlySoft/Perfect-MySQL.git
Fetching https://github.com/PerfectlySoft/Perfect-Logger.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/PerfectlySoft/Perfect-NIO.git
[1/273] Fetching perfect-logger
[274/1899] Fetching perfect-logger, perfect-nio
[957/3216] Fetching perfect-logger, perfect-nio, perfect-mysql
[2480/4939] Fetching perfect-logger, perfect-nio, perfect-mysql, perfect-crud
Fetched https://github.com/PerfectlySoft/Perfect-Logger.git from cache (0.70s)
Fetched https://github.com/PerfectlySoft/Perfect-NIO.git from cache (0.70s)
Fetched https://github.com/PerfectlySoft/Perfect-CRUD.git from cache (0.70s)
Fetched https://github.com/PerfectlySoft/Perfect-MySQL.git from cache (0.70s)
[1/86563] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.19s)
Computing version for https://github.com/PerfectlySoft/Perfect-Logger.git
Computed https://github.com/PerfectlySoft/Perfect-Logger.git at 4.0.0 (3.35s)
Fetching https://github.com/apple/swift-log.git
[1/8305] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.46s)
Computing version for https://github.com/PerfectlySoft/Perfect-MySQL.git
Computed https://github.com/PerfectlySoft/Perfect-MySQL.git at 4.0.0 (0.61s)
Computing version for https://github.com/PerfectlySoft/Perfect-CRUD.git
Computed https://github.com/PerfectlySoft/Perfect-CRUD.git at 3.1.0 (0.13s)
Computing version for https://github.com/PerfectlySoft/Perfect-NIO.git
Computed https://github.com/PerfectlySoft/Perfect-NIO.git at 0.1.0 (0.15s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio-extras.git
[1/18682] Fetching swift-crypto
[562/35571] Fetching swift-crypto, swift-nio-ssl
[563/42276] Fetching swift-crypto, swift-nio-ssl, swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.20s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.21s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.21s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.1 (1.37s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.18s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.104.0 (0.25s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/1889] Fetching swift-atomics
[512/9199] Fetching swift-atomics, swift-system
[9200/38073] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.31s)
Fetched https://github.com/apple/swift-system.git from cache (1.31s)
Fetched https://github.com/apple/swift-collections.git from cache (1.32s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (1.48s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.16s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.3 (0.22s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.1 (0.95s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-asn1.git
[1/1961] Fetching swift-http-types
[2/4012] Fetching swift-http-types, swift-asn1
[308/5296] Fetching swift-http-types, swift-asn1, swift-http-structured-headers
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.39s)
Fetching https://github.com/apple/swift-algorithms.git
[1/6821] Fetching swift-async-algorithms
[6822/19115] Fetching swift-async-algorithms, swift-nio-http2
[9404/21989] Fetching swift-async-algorithms, swift-nio-http2, swift-service-lifecycle
Fetched https://github.com/apple/swift-http-types.git from cache (0.67s)
Fetching https://github.com/apple/swift-certificates.git
[21990/28148] Fetching swift-async-algorithms, swift-nio-http2, swift-service-lifecycle, swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (0.51s)
Fetched https://github.com/apple/swift-asn1.git from cache (0.96s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.96s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.96s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (0.96s)
[1/7601] Fetching swift-certificates
Fetched https://github.com/apple/swift-certificates.git from cache (0.56s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.09s)
Fetching https://github.com/apple/swift-numerics.git
[1/6756] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.51s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.66s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.14s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.16s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.13.0 (0.13s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.17s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.17s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.20s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.23s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.15s)
Creating working copy for https://github.com/PerfectlySoft/Perfect-MySQL.git
Working copy of https://github.com/PerfectlySoft/Perfect-MySQL.git resolved at 4.0.0
Creating working copy for https://github.com/PerfectlySoft/Perfect-CRUD.git
Working copy of https://github.com/PerfectlySoft/Perfect-CRUD.git resolved at 3.1.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.5
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.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.16.1
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.1
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.13.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/PerfectlySoft/Perfect-Logger.git
Working copy of https://github.com/PerfectlySoft/Perfect-Logger.git resolved at 4.0.0
Creating working copy for https://github.com/PerfectlySoft/Perfect-NIO.git
Working copy of https://github.com/PerfectlySoft/Perfect-NIO.git resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.104.0
warning: you may be able to install mysqlclient using your system-packager:
    apt-get install libmysqlclient-dev
warning: you may be able to install mysqlclient using your system-packager:
    apt-get install libmysqlclient-dev
Building for debugging...
[0/839] Write sources
[16/839] Compiling _AtomicsShims.c
[17/839] Write sources
[20/839] Compiling aes128gcmsiv-x86_64-linux.S
[20/839] Compiling chacha-armv4-linux.S
[22/839] Write sources
[25/839] Compiling CNIOWindows shim.c
[26/839] Compiling CNIOWindows WSAStartup.c
[27/839] Compiling CXKCPShims shims.c
[27/839] Compiling SimpleFIPS202.c
[29/839] Compiling KeccakHash.c
[30/839] Write swift-version-272D24FF697CF451.txt
[31/839] Compiling CNIOWASI CNIOWASI.c
[32/839] Compiling KeccakSponge.c
[33/839] Compiling CNIOOpenBSD shim.c
[33/839] Compiling CNIOPosix event_loop_id.c
[35/839] Compiling CNIOSHA1 c_nio_sha1.c
[36/843] Compiling CNIOLinux liburing_shims.c
[37/856] Compiling CNIOLinux shim.c
[38/912] Compiling CNIOLLHTTP c_nio_http.c
[39/912] Compiling CNIOLLHTTP c_nio_api.c
[40/912] Compiling CNIOFreeBSD shim.c
[41/912] Compiling CNIODarwin shim.c
[42/912] Compiling CNIOLLHTTP c_nio_llhttp.c
[43/912] Compiling fiat_p256_adx_sqr.S
[44/912] Compiling fiat_p256_adx_mul.S
[45/912] Compiling fiat_curve25519_adx_square.S
[46/912] Compiling KeccakP-1600-opt64.c
[47/912] Compiling fiat_curve25519_adx_mul.S
[48/912] Compiling CNIOBoringSSLShims shims.c
[50/912] Emitting module InternalCollectionsUtilities
[50/915] Compiling tls_record.cc
[51/915] Compiling tls_method.cc
[51/915] Compiling tls13_server.cc
[53/915] Compiling tls13_enc.cc
[54/915] Compiling tls13_both.cc
[55/915] Compiling tls13_client.cc
[57/915] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[58/915] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[59/915] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[60/915] Compiling InternalCollectionsUtilities MutableRef.swift
[61/915] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[62/915] Compiling InternalCollectionsUtilities _SortedCollection.swift
[63/915] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[64/915] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[65/915] Compiling InternalCollectionsUtilities Integer rank.swift
[66/915] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[67/915] Compiling InternalCollectionsUtilities UInt+reversed.swift
[68/915] Compiling Logging LoggingSystem.swift
[69/916] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[70/916] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[71/916] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[72/916] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[73/916] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[74/916] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[75/916] Compiling InternalCollectionsUtilities Debugging.swift
[76/916] Compiling InternalCollectionsUtilities Descriptions.swift
[77/916] Compiling _NIOBase64 Base64.swift
[78/916] Emitting module _NIOBase64
[79/917] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[80/917] Compiling InternalCollectionsUtilities String+Padding.swift
[81/917] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[82/917] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[83/917] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[84/917] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[85/917] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[86/917] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[87/917] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[88/917] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[89/917] Compiling InternalCollectionsUtilities Span+Extras.swift
[91/918] Compiling _NIODataStructures _TinyArray.swift
[93/918] Compiling Logging Logger.swift
[96/918] Compiling Logging Logger+Attributes.swift
[97/918] Compiling Logging Logger+With.swift
[98/918] Compiling _NIODataStructures PriorityQueue.swift
[99/918] Compiling _NIODataStructures Heap.swift
[100/918] Emitting module _NIODataStructures
[100/919] Wrapping AST for _NIOBase64 for debugging
[102/923] Wrapping AST for _NIODataStructures for debugging
[104/923] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[104/923] Wrapping AST for InternalCollectionsUtilities for debugging
[106/923] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[107/923] Emitting module SpanPreview
[108/923] Compiling SpanPreview InputSpan.swift
[110/924] Emitting module PerfectCRUD
[110/927] Compiling t1_enc.cc
[111/969] Compiling ssl_x509.cc
[113/969] Compiling DequeModule UniqueDeque+Consumption.swift
[114/969] Compiling DequeModule UniqueDeque+ContainerOperations.swift
[115/969] Compiling DequeModule UniqueDeque+Deprecations.swift
[116/969] Compiling DequeModule UniqueDeque+Descriptions.swift
[117/969] Compiling DequeModule UniqueDeque+Equatable.swift
[118/969] Compiling DequeModule UniqueDeque+Hashable.swift
[118/974] Compiling ssl_versions.cc
[119/974] Wrapping AST for SpanPreview for debugging
[121/974] Compiling DequeModule RigidDeque+Descriptions.swift
[122/974] Compiling DequeModule RigidDeque+Equatable.swift
[123/974] Compiling DequeModule RigidDeque+Hashable.swift
[124/974] Compiling DequeModule RigidDeque+Initializers.swift
[125/974] Compiling DequeModule RigidDeque+Insertions.swift
[126/974] Compiling DequeModule RigidDeque+Iterable.swift
[127/974] Compiling DequeModule UniqueDeque+Initializers.swift
[128/974] Compiling DequeModule UniqueDeque+Insertions.swift
[129/974] Compiling DequeModule UniqueDeque+Iterable.swift
[130/974] Compiling DequeModule UniqueDeque+Prepend.swift
[131/974] Compiling DequeModule UniqueDeque+Removals.swift
[132/974] Compiling DequeModule RigidDeque+Prepend.swift
[133/974] Compiling DequeModule RigidDeque+Removals.swift
[134/974] Compiling DequeModule RigidDeque+Replacements.swift
[135/974] Compiling DequeModule RigidDeque+Testing.swift
[136/974] Compiling DequeModule RigidDeque.swift
[137/974] Compiling DequeModule UniqueDeque+Append.swift
[137/974] Compiling ssl_transcript.cc
[138/974] Compiling ssl_stat.cc
[140/974] Compiling DequeModule Deque+Extras.swift
[141/974] Compiling DequeModule Deque+Hashable.swift
[142/974] Compiling DequeModule Deque+Testing.swift
[143/974] Compiling DequeModule Deque._Storage.swift
[144/974] Compiling DequeModule Deque._UnsafeHandle.swift
[145/974] Compiling DequeModule Deque.swift
[146/974] Compiling DequeModule _DequeBuffer.swift
[147/974] Compiling DequeModule _DequeBufferHeader.swift
[148/974] Compiling DequeModule RigidDeque+Append.swift
[149/974] Compiling DequeModule RigidDeque+Consumption.swift
[150/974] Compiling DequeModule RigidDeque+ContainerOperations.swift
[151/974] Compiling DequeModule RigidDeque+Deprecations.swift
[152/974] Compiling DequeModule Deque+Codable.swift
[153/974] Compiling DequeModule Deque+Collection.swift
[154/974] Compiling DequeModule Deque+CustomReflectable.swift
[155/974] Compiling DequeModule Deque+Descriptions.swift
[156/974] Compiling DequeModule Deque+Equatable.swift
[157/974] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[157/974] Compiling ssl_session.cc
[161/974] Emitting module Logging
[164/974] Compiling Logging MetadataProvider.swift
[173/982] Compiling ssl_privkey.cc
[178/982] Compiling PerfectLogger LogOptions.swift
[186/982] Emitting module PerfectLogger
[186/982] Wrapping AST for Logging for debugging
[196/982] Compiling PerfectLogger LogFile.swift
[197/982] Compiling PerfectLogger Bootstrap.swift
[198/982] Compiling PerfectLogger FileLogHandler.swift
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:31:14: error: cannot find 'close' in scope
 29 |     }
 30 |
 31 |     deinit { close(fd) }
    |              `- error: cannot find 'close' in scope
 32 |
 33 |     func write(_ string: String) {
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:55:36: error: cannot find 'errno' in scope
 53 |                 if n > 0 {
 54 |                     offset += n
 55 |                 } else if n < 0 && errno == EINTR {
    |                                    `- error: cannot find 'errno' in scope
 56 |                     continue
 57 |                 } else {
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:95:20: error: cannot find 'stat' in scope
 93 |         }
 94 |
 95 |         var info = stat()
    |                    `- error: cannot find 'stat' in scope
 96 |         if stat(path, &info) == 0 {
 97 |             switch info.st_mode & S_IFMT {
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:96:12: error: cannot find 'stat' in scope
 94 |
 95 |         var info = stat()
 96 |         if stat(path, &info) == 0 {
    |            `- error: cannot find 'stat' in scope
 97 |             switch info.st_mode & S_IFMT {
 98 |             case S_IFREG, S_IFCHR, S_IFIFO: break
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:97:35: error: cannot find 'S_IFMT' in scope
 95 |         var info = stat()
 96 |         if stat(path, &info) == 0 {
 97 |             switch info.st_mode & S_IFMT {
    |                                   `- error: cannot find 'S_IFMT' in scope
 98 |             case S_IFREG, S_IFCHR, S_IFIFO: break
 99 |             case S_IFDIR: return refuse("is a directory")
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:98:18: error: cannot find 'S_IFREG' in scope
 96 |         if stat(path, &info) == 0 {
 97 |             switch info.st_mode & S_IFMT {
 98 |             case S_IFREG, S_IFCHR, S_IFIFO: break
    |                  `- error: cannot find 'S_IFREG' in scope
 99 |             case S_IFDIR: return refuse("is a directory")
100 |             default: return refuse("not a regular file, character device or FIFO")
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:98:27: error: cannot find 'S_IFCHR' in scope
 96 |         if stat(path, &info) == 0 {
 97 |             switch info.st_mode & S_IFMT {
 98 |             case S_IFREG, S_IFCHR, S_IFIFO: break
    |                           `- error: cannot find 'S_IFCHR' in scope
 99 |             case S_IFDIR: return refuse("is a directory")
100 |             default: return refuse("not a regular file, character device or FIFO")
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:98:36: error: cannot find 'S_IFIFO' in scope
 96 |         if stat(path, &info) == 0 {
 97 |             switch info.st_mode & S_IFMT {
 98 |             case S_IFREG, S_IFCHR, S_IFIFO: break
    |                                    `- error: cannot find 'S_IFIFO' in scope
 99 |             case S_IFDIR: return refuse("is a directory")
100 |             default: return refuse("not a regular file, character device or FIFO")
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:99:18: error: cannot find 'S_IFDIR' in scope
 97 |             switch info.st_mode & S_IFMT {
 98 |             case S_IFREG, S_IFCHR, S_IFIFO: break
 99 |             case S_IFDIR: return refuse("is a directory")
    |                  `- error: cannot find 'S_IFDIR' in scope
100 |             default: return refuse("not a regular file, character device or FIFO")
101 |             }
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:104:18: error: cannot find 'open' in scope
102 |         }
103 |
104 |         let fd = open(path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC | O_NONBLOCK, 0o644)
    |                  `- error: cannot find 'open' in scope
105 |         guard fd >= 0 else { return refuse(String(cString: strerror(errno))) }
106 |
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:104:29: error: cannot find 'O_WRONLY' in scope
102 |         }
103 |
104 |         let fd = open(path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC | O_NONBLOCK, 0o644)
    |                             `- error: cannot find 'O_WRONLY' in scope
105 |         guard fd >= 0 else { return refuse(String(cString: strerror(errno))) }
106 |
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:104:40: error: cannot find 'O_APPEND' in scope
102 |         }
103 |
104 |         let fd = open(path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC | O_NONBLOCK, 0o644)
    |                                        `- error: cannot find 'O_APPEND' in scope
105 |         guard fd >= 0 else { return refuse(String(cString: strerror(errno))) }
106 |
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:104:51: error: cannot find 'O_CREAT' in scope
102 |         }
103 |
104 |         let fd = open(path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC | O_NONBLOCK, 0o644)
    |                                                   `- error: cannot find 'O_CREAT' in scope
105 |         guard fd >= 0 else { return refuse(String(cString: strerror(errno))) }
106 |
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:104:61: error: cannot find 'O_CLOEXEC' in scope
102 |         }
103 |
104 |         let fd = open(path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC | O_NONBLOCK, 0o644)
    |                                                             `- error: cannot find 'O_CLOEXEC' in scope
105 |         guard fd >= 0 else { return refuse(String(cString: strerror(errno))) }
106 |
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:104:73: error: cannot find 'O_NONBLOCK' in scope
102 |         }
103 |
104 |         let fd = open(path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC | O_NONBLOCK, 0o644)
    |                                                                         `- error: cannot find 'O_NONBLOCK' in scope
105 |         guard fd >= 0 else { return refuse(String(cString: strerror(errno))) }
106 |
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:105:69: error: cannot find 'errno' in scope
103 |
104 |         let fd = open(path, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC | O_NONBLOCK, 0o644)
105 |         guard fd >= 0 else { return refuse(String(cString: strerror(errno))) }
    |                                                                     `- error: cannot find 'errno' in scope
106 |
107 |         // Blocking writes from here on; O_NONBLOCK was only for the open.
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:108:21: error: cannot find 'fcntl' in scope
106 |
107 |         // Blocking writes from here on; O_NONBLOCK was only for the open.
108 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
109 |         if flags >= 0 { _ = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) }
110 |         #if canImport(Darwin)
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:108:31: error: cannot find 'F_GETFL' in scope
106 |
107 |         // Blocking writes from here on; O_NONBLOCK was only for the open.
108 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
109 |         if flags >= 0 { _ = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) }
110 |         #if canImport(Darwin)
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:109:29: error: cannot find 'fcntl' in scope
107 |         // Blocking writes from here on; O_NONBLOCK was only for the open.
108 |         let flags = fcntl(fd, F_GETFL)
109 |         if flags >= 0 { _ = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) }
    |                             `- error: cannot find 'fcntl' in scope
110 |         #if canImport(Darwin)
111 |         _ = fcntl(fd, F_SETNOSIGPIPE, 1)
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:109:39: error: cannot find 'F_SETFL' in scope
107 |         // Blocking writes from here on; O_NONBLOCK was only for the open.
108 |         let flags = fcntl(fd, F_GETFL)
109 |         if flags >= 0 { _ = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) }
    |                                       `- error: cannot find 'F_SETFL' in scope
110 |         #if canImport(Darwin)
111 |         _ = fcntl(fd, F_SETNOSIGPIPE, 1)
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:109:57: error: cannot find 'O_NONBLOCK' in scope
107 |         // Blocking writes from here on; O_NONBLOCK was only for the open.
108 |         let flags = fcntl(fd, F_GETFL)
109 |         if flags >= 0 { _ = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) }
    |                                                         `- error: cannot find 'O_NONBLOCK' in scope
110 |         #if canImport(Darwin)
111 |         _ = fcntl(fd, F_SETNOSIGPIPE, 1)
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:114:22: error: cannot find 'stat' in scope
112 |         #endif
113 |
114 |         var opened = stat()
    |                      `- error: cannot find 'stat' in scope
115 |         let isRegular = fstat(fd, &opened) == 0 && (opened.st_mode & S_IFMT) == S_IFREG
116 |         let sink = FileSink(fd: fd, isRegularFile: isRegular)
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:115:25: error: cannot find 'fstat' in scope
113 |
114 |         var opened = stat()
115 |         let isRegular = fstat(fd, &opened) == 0 && (opened.st_mode & S_IFMT) == S_IFREG
    |                         `- error: cannot find 'fstat' in scope
116 |         let sink = FileSink(fd: fd, isRegularFile: isRegular)
117 |         registry.sinks[path] = sink
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:115:70: error: cannot find 'S_IFMT' in scope
113 |
114 |         var opened = stat()
115 |         let isRegular = fstat(fd, &opened) == 0 && (opened.st_mode & S_IFMT) == S_IFREG
    |                                                                      `- error: cannot find 'S_IFMT' in scope
116 |         let sink = FileSink(fd: fd, isRegularFile: isRegular)
117 |         registry.sinks[path] = sink
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:115:81: error: cannot find 'S_IFREG' in scope
113 |
114 |         var opened = stat()
115 |         let isRegular = fstat(fd, &opened) == 0 && (opened.st_mode & S_IFMT) == S_IFREG
    |                                                                                 `- error: cannot find 'S_IFREG' in scope
116 |         let sink = FileSink(fd: fd, isRegularFile: isRegular)
117 |         registry.sinks[path] = sink
/host/spi-builder-workspace/.build/checkouts/Perfect-Logger/Sources/PerfectLogger/FileLogHandler.swift:159:12: error: cannot find 'Musl' in scope
157 |     return Glibc.write(fd, buf, count)
158 |     #else
159 |     return Musl.write(fd, buf, count)
    |            `- error: cannot find 'Musl' in scope
160 |     #endif
161 | }
[198/982] Compiling ssl_key_share.cc
[203/983] Compiling ssl_lib.cc
[205/983] Compiling ssl_file.cc
[207/983] Compiling PerfectLogger LogPriority.swift
[208/983] Compiling PerfectLogger RemoteLogHandler.swift
[208/983] Compiling ssl_aead_ctx.cc
[208/983] Compiling ssl_asn1.cc
[208/983] Compiling ssl_cipher.cc
[208/983] Compiling ssl_cert.cc
[208/983] Compiling ssl_buffer.cc
[208/983] Compiling ssl_credential.cc
BUILD FAILURE 6.3 android