The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PerfectTemplate, reference 4.0.0 (7b3a5c), with Swift 6.2 for Android on 17 Oct 2026 17:38:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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.2-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: 4.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/perfectlysoft/perfecttemplate
 * tag               4.0.0      -> FETCH_HEAD
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 4.0.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/perfectlysoft/perfecttemplate.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:d84c435a77e30f1b4b40344b42d2ce7e8dc33d04eebdaebfb0e2bc42b4ff2af5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/PerfectlySoft/Perfect-MySQL.git
Fetching https://github.com/PerfectlySoft/Perfect-Logger.git
Fetching https://github.com/PerfectlySoft/Perfect-CRUD.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/PerfectlySoft/Perfect-NIO.git
[1/273] Fetching perfect-logger
[231/1899] Fetching perfect-logger, perfect-nio
[388/3216] Fetching perfect-logger, perfect-nio, perfect-mysql
[507/4939] Fetching perfect-logger, perfect-nio, perfect-mysql, perfect-crud
Fetched https://github.com/PerfectlySoft/Perfect-CRUD.git from cache (0.51s)
Fetched https://github.com/PerfectlySoft/Perfect-MySQL.git from cache (0.51s)
[1/86563] Fetching swift-nio
Fetched https://github.com/PerfectlySoft/Perfect-Logger.git from cache (3.03s)
Fetched https://github.com/PerfectlySoft/Perfect-NIO.git from cache (3.03s)
Fetched https://github.com/apple/swift-nio.git from cache (3.06s)
Computing version for https://github.com/PerfectlySoft/Perfect-Logger.git
Computed https://github.com/PerfectlySoft/Perfect-Logger.git at 4.0.0 (3.20s)
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.60s)
Computing version for https://github.com/PerfectlySoft/Perfect-CRUD.git
Computed https://github.com/PerfectlySoft/Perfect-CRUD.git at 3.1.0 (0.12s)
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-nio-extras.git
Fetching https://github.com/apple/swift-crypto.git
[1/18682] Fetching swift-crypto
[2/25387] Fetching swift-crypto, swift-nio-extras
[1046/42276] Fetching swift-crypto, swift-nio-extras, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.53s)
[3558/35571] Fetching swift-crypto, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.26s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.26s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.1 (1.41s)
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.17s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.104.0 (0.33s)
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
Fetched https://github.com/apple/swift-atomics.git from cache (0.47s)
[1/7310] Fetching swift-system
[2779/36184] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.65s)
[6064/28874] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.28s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (1.44s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.3 (0.23s)
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.94s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-certificates.git
[1/1961] Fetching swift-http-types
[2/3245] Fetching swift-http-types, swift-http-structured-headers
[380/6119] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle
[2846/13720] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-certificates
[6500/20541] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-certificates, swift-async-algorithms
[15631/32835] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-certificates, swift-async-algorithms, swift-nio-http2
Fetched https://github.com/apple/swift-certificates.git from cache (0.54s)
[15030/25234] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-async-algorithms, swift-nio-http2
Fetching https://github.com/apple/swift-asn1.git
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.57s)
Fetching https://github.com/apple/swift-algorithms.git
[8824/18413] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-nio-http2
[18414/20464] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-nio-http2, swift-asn1
[20465/26623] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-nio-http2, swift-asn1, swift-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.92s)
Fetched https://github.com/apple/swift-http-types.git from cache (0.93s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.93s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (0.93s)
Fetched https://github.com/apple/swift-asn1.git from cache (0.39s)
[124/6159] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (0.48s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.89s)
Fetching https://github.com/apple/swift-numerics.git
[1/6756] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.52s)
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.13s)
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.15s)
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.12s)
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.18s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.15s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.18s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.45s)
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/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.104.0
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/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-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-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-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-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-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-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/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-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-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/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/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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.3
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/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/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/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-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
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
[5/839] Compiling aesv8-armv8-apple.S
[5/839] Write sources
[8/839] Compiling _AtomicsShims.c
[9/839] Write sources
[24/839] Compiling CXKCPShims shims.c
[25/839] Compiling SimpleFIPS202.c
[26/839] Compiling KeccakSponge.c
[27/839] Compiling thread.cc
[28/839] Compiling thread_none.cc
[29/839] Write swift-version--11D90AFD9DD3AB2.txt
[30/839] Compiling thread_pthread.cc
[31/839] Compiling KeccakHash.c
[32/839] Compiling CNIOWindows shim.c
[33/839] Compiling stack.cc
[34/839] Compiling CNIOWindows WSAStartup.c
[35/839] Compiling KeccakP-1600-opt64.c
[36/843] Compiling spake2plus.cc
[37/845] Compiling CNIOWASI CNIOWASI.c
[38/884] Compiling CNIOPosix event_loop_id.c
[39/912] Compiling CNIOOpenBSD shim.c
[40/912] Compiling CNIOSHA1 c_nio_sha1.c
[41/912] Compiling CNIOLinux liburing_shims.c
[42/912] Compiling slhdsa.cc
[43/912] Compiling CNIOLinux shim.c
[44/912] Compiling CNIOLLHTTP c_nio_http.c
[45/912] Compiling CNIOFreeBSD shim.c
[46/912] Compiling CNIODarwin shim.c
[47/912] Compiling CNIOLLHTTP c_nio_api.c
[48/912] Compiling CNIOLLHTTP c_nio_llhttp.c
[49/912] Compiling fiat_p256_adx_sqr.S
[50/912] Compiling fiat_p256_adx_mul.S
[51/912] Compiling fiat_curve25519_adx_square.S
[52/912] Compiling fiat_curve25519_adx_mul.S
[53/912] Compiling CNIOBoringSSLShims shims.c
[55/912] Emitting module _NIODataStructures
[56/912] Emitting module Logging
[56/913] Compiling tls_method.cc
[57/913] Compiling tls_record.cc
[58/913] Compiling tls13_server.cc
[59/913] Compiling tls13_client.cc
[60/913] Compiling tls13_enc.cc
[61/913] Compiling tls13_both.cc
[63/913] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[64/913] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[65/913] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[66/913] Compiling InternalCollectionsUtilities MutableRef.swift
[67/916] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[68/916] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[69/916] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[70/916] Emitting module InternalCollectionsUtilities
[71/916] Compiling Logging Logger+Attributes.swift
[72/916] Compiling _NIODataStructures _TinyArray.swift
[73/916] Compiling Logging LoggingSystem.swift
[74/916] Compiling _NIOBase64 Base64.swift
[75/916] Emitting module _NIOBase64
[76/917] Compiling Logging Logger.swift
[77/917] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[78/917] Compiling InternalCollectionsUtilities _SortedCollection.swift
[79/917] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[80/917] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[81/917] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[82/917] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[83/917] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[84/917] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[85/917] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[86/917] Compiling _NIODataStructures PriorityQueue.swift
[87/917] Compiling _NIODataStructures Heap.swift
[89/918] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[90/918] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[91/918] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[92/918] Compiling InternalCollectionsUtilities Span+Extras.swift
[93/918] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[94/918] Compiling InternalCollectionsUtilities String+Padding.swift
[95/918] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[96/918] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[99/918] Compiling InternalCollectionsUtilities Debugging.swift
[100/918] Compiling InternalCollectionsUtilities Descriptions.swift
[101/918] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[102/918] Compiling InternalCollectionsUtilities Integer rank.swift
[103/918] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[104/918] Compiling InternalCollectionsUtilities UInt+reversed.swift
[105/919] Compiling Logging Logger+With.swift
[107/919] Wrapping AST for _NIOBase64 for debugging
[108/919] Wrapping AST for _NIODataStructures for debugging
[109/923] Wrapping AST for InternalCollectionsUtilities for debugging
[111/923] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[112/923] Compiling SpanPreview InputSpan.swift
[113/923] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[114/923] Emitting module SpanPreview
[115/924] Compiling t1_enc.cc
[116/966] Compiling ssl_versions.cc
[117/966] Wrapping AST for SpanPreview for debugging
[119/966] Compiling DequeModule UniqueDeque+Consumption.swift
[120/966] Compiling DequeModule UniqueDeque+ContainerOperations.swift
[121/966] Compiling DequeModule UniqueDeque+Deprecations.swift
[122/966] Compiling DequeModule UniqueDeque+Descriptions.swift
[123/966] Compiling DequeModule UniqueDeque+Equatable.swift
[124/966] Compiling DequeModule UniqueDeque+Hashable.swift
[125/971] Compiling DequeModule RigidDeque+Descriptions.swift
[126/971] Compiling DequeModule RigidDeque+Equatable.swift
[127/971] Compiling DequeModule RigidDeque+Hashable.swift
[128/971] Compiling DequeModule RigidDeque+Initializers.swift
[129/971] Compiling DequeModule RigidDeque+Insertions.swift
[130/971] Compiling DequeModule RigidDeque+Iterable.swift
[131/971] Compiling DequeModule UniqueDeque+Initializers.swift
[132/971] Compiling DequeModule UniqueDeque+Insertions.swift
[133/971] Compiling DequeModule UniqueDeque+Iterable.swift
[134/971] Compiling DequeModule UniqueDeque+Prepend.swift
[135/971] Compiling DequeModule UniqueDeque+Removals.swift
[136/971] Compiling DequeModule _DequeBuffer.swift
[137/971] Compiling DequeModule _DequeBufferHeader.swift
[138/971] Compiling DequeModule RigidDeque+Append.swift
[139/971] Compiling DequeModule RigidDeque+Consumption.swift
[140/971] Compiling DequeModule RigidDeque+ContainerOperations.swift
[141/971] Compiling DequeModule RigidDeque+Deprecations.swift
[141/971] Compiling ssl_x509.cc
[143/971] Compiling DequeModule RigidDeque+Prepend.swift
[144/971] Compiling DequeModule RigidDeque+Removals.swift
[145/971] Compiling DequeModule RigidDeque+Replacements.swift
[146/971] Compiling DequeModule RigidDeque+Testing.swift
[147/971] Compiling DequeModule RigidDeque.swift
[148/971] Compiling DequeModule UniqueDeque+Append.swift
[148/971] Compiling ssl_stat.cc
[150/971] Compiling DequeModule Deque+Extras.swift
[151/971] Compiling DequeModule Deque+Hashable.swift
[152/971] Compiling DequeModule Deque+Testing.swift
[153/971] Compiling DequeModule Deque._Storage.swift
[154/971] Compiling DequeModule Deque._UnsafeHandle.swift
[155/971] Compiling DequeModule Deque.swift
[156/971] Compiling DequeModule Deque+Codable.swift
[157/971] Compiling DequeModule Deque+Collection.swift
[158/971] Compiling DequeModule Deque+CustomReflectable.swift
[159/971] Compiling DequeModule Deque+Descriptions.swift
[160/971] Compiling DequeModule Deque+Equatable.swift
[161/971] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[161/971] Compiling ssl_transcript.cc
[162/971] Compiling ssl_session.cc
[164/971] Compiling Logging MetadataProvider.swift
[176/975] Compiling ssl_privkey.cc
[194/982] Emitting module PerfectCRUD
[199/982] Compiling PerfectLogger Bootstrap.swift
[200/982] Compiling PerfectCRUD Table.swift
[201/982] Compiling PerfectCRUD Update.swift
[202/982] Compiling PerfectCRUD Where.swift
[204/983] Compiling PerfectLogger LogOptions.swift
[204/983] Compiling ssl_file.cc
[204/983] Wrapping AST for Logging for debugging
[207/983] Emitting module PerfectLogger
[207/988] Compiling ssl_key_share.cc
[208/988] Wrapping AST for PerfectCRUD for debugging
[210/988] Compiling PerfectLogger LogFile.swift
[210/988] Compiling ssl_credential.cc
[212/988] 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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/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 | }
[213/988] Compiling PerfectMySQL PerfectMySQL.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "mysqlclient.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-MySQL/Sources/mysqlclient/mysqlclient.h:1:10: error: 'mysql.h' file not found
 1 | #include <mysql.h>
   |          `- error: 'mysql.h' file not found
 2 |
 3 | #if defined(LIBMARIADB) || defined(MARIADB_BASE_VERSION)
/host/spi-builder-workspace/.build/checkouts/Perfect-MySQL/Sources/PerfectMySQL/MySQL.swift:8:8: error: could not build C module 'mysqlclient'
  6 | //
  7 |
  8 | import mysqlclient
    |        `- error: could not build C module 'mysqlclient'
  9 | #if canImport(Glibc)
 10 | import Glibc
[213/988] Compiling ssl_lib.cc
[215/988] Compiling PerfectLogger LogPriority.swift
[216/988] Compiling PerfectLogger RemoteLogHandler.swift
[216/988] Compiling ssl_aead_ctx.cc
[216/988] Compiling ssl_buffer.cc
[216/988] Compiling ssl_cert.cc
[216/988] Compiling ssl_asn1.cc
[216/988] Compiling ssl_cipher.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "mysqlclient.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/Perfect-MySQL/Sources/mysqlclient/mysqlclient.h:1:10: error: 'mysql.h' file not found
 1 | #include <mysql.h>
   |          `- error: 'mysql.h' file not found
 2 |
 3 | #if defined(LIBMARIADB) || defined(MARIADB_BASE_VERSION)
BUILD FAILURE 6.2 android