Build Information
Failed to build swift-fileio-extra, reference 0.2.2 (8d8350), with Swift 6.1 for Android on 6 Feb 2026 07:23:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-fileio-extra.git
Reference: 0.2.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/p-x9/swift-fileio-extra
* tag 0.2.2 -> FETCH_HEAD
HEAD is now at 8d83506 fix
Cloned https://github.com/p-x9/swift-fileio-extra.git
Revision (git rev-parse @):
8d83506dd4dff737807d90dbf2264096ed98c7a7
SUCCESS checkout https://github.com/p-x9/swift-fileio-extra.git at 0.2.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/p-x9/swift-fileio-extra.git
https://github.com/p-x9/swift-fileio-extra.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-fileio",
"requirement" : {
"range" : [
{
"lower_bound" : "0.13.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/p-x9/swift-fileio.git"
},
{
"identity" : "swift-binary-parse-support",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/p-x9/swift-binary-parse-support.git"
}
],
"manifest_display_name" : "swift-fileio-extra",
"name" : "swift-fileio-extra",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "FileIOBinary",
"targets" : [
"FileIOBinary"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FileIOBinaryTests",
"module_type" : "SwiftTarget",
"name" : "FileIOBinaryTests",
"path" : "Tests/FileIOBinaryTests",
"sources" : [
"FileIOBinaryTests.swift"
],
"target_dependencies" : [
"FileIOBinary"
],
"type" : "test"
},
{
"c99name" : "FileIOBinary",
"module_type" : "SwiftTarget",
"name" : "FileIOBinary",
"path" : "Sources/FileIOBinary",
"product_dependencies" : [
"FileIO",
"BinaryParseSupport"
],
"product_memberships" : [
"FileIOBinary"
],
"sources" : [
"FileIOBinary.swift",
"_FileIOProtocol+.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/p-x9/swift-binary-parse-support.git
Fetching https://github.com/p-x9/swift-fileio.git
[1/246] Fetching swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.18s)
[1/228] Fetching swift-binary-parse-support
Fetched https://github.com/p-x9/swift-binary-parse-support.git from cache (1.46s)
Computing version for https://github.com/p-x9/swift-binary-parse-support.git
Computed https://github.com/p-x9/swift-binary-parse-support.git at 0.2.1 (2.00s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.13.0 (0.55s)
Creating working copy for https://github.com/p-x9/swift-binary-parse-support.git
Working copy of https://github.com/p-x9/swift-binary-parse-support.git resolved at 0.2.1
Creating working copy for https://github.com/p-x9/swift-fileio.git
Working copy of https://github.com/p-x9/swift-fileio.git resolved at 0.13.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/24] Compiling BinaryParseSupport MemorySequence.swift
[6/25] Compiling BinaryParseSupport BinaryParseSupport.swift
[7/25] Compiling BinaryParseSupport Data+.swift
[8/25] Emitting module BinaryParseSupport
[9/25] Compiling FileIO FileIO.swift
[10/25] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:34:13: error: cannot find 'close' in scope
32 | unmap()
33 | if fileDescriptor >= 0 {
34 | close(fileDescriptor)
| `- error: cannot find 'close' in scope
35 | }
36 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:41:47: error: cannot find 'O_RDWR' in scope
39 | extension MemoryMappedFile {
40 | public static func open(url: URL, isWritable: Bool) throws -> MemoryMappedFile {
41 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDWR' in scope
42 | guard _fastPath(fd > 0) else {
43 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:41:56: error: cannot find 'O_RDONLY' in scope
39 | extension MemoryMappedFile {
40 | public static func open(url: URL, isWritable: Bool) throws -> MemoryMappedFile {
41 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
42 | guard _fastPath(fd > 0) else {
43 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:43:46: error: cannot find 'errno' in scope
41 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
42 | guard _fastPath(fd > 0) else {
43 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
44 | }
45 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:46:24: error: cannot find 'lseek' in scope
44 | }
45 |
46 | let fileSize = lseek(fd, 0, SEEK_END)
| `- error: cannot find 'lseek' in scope
47 | guard _fastPath(fileSize >= 0) else {
48 | close(fd)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:48:13: error: cannot find 'close' in scope
46 | let fileSize = lseek(fd, 0, SEEK_END)
47 | guard _fastPath(fileSize >= 0) else {
48 | close(fd)
| `- error: cannot find 'close' in scope
49 | throw POSIXError(.init(rawValue: errno)!)
50 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:49:46: error: cannot find 'errno' in scope
47 | guard _fastPath(fileSize >= 0) else {
48 | close(fd)
49 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
50 | }
51 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:61:27: error: cannot find 'PROT_READ' in scope
59 | }
60 |
61 | var prot: Int32 = PROT_READ
| `- error: cannot find 'PROT_READ' in scope
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:62:33: error: cannot find 'PROT_WRITE' in scope
60 |
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
| `- error: cannot find 'PROT_WRITE' in scope
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
64 | guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:19: error: cannot find 'mmap' in scope
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
| `- error: cannot find 'mmap' in scope
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:50: error: cannot find 'MAP_SHARED' in scope
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
| `- error: cannot find 'MAP_SHARED' in scope
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:24: error: 'nil' requires a contextual type
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
| `- error: 'nil' requires a contextual type
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:65:32: error: cannot find 'MAP_FAILED' in scope
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
| `- error: cannot find 'MAP_FAILED' in scope
66 | close(fd)
67 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:66:13: error: cannot find 'close' in scope
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
66 | close(fd)
| `- error: cannot find 'close' in scope
67 | throw POSIXError(.init(rawValue: errno)!)
68 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:67:46: error: cannot find 'errno' in scope
65 | _fastPath(ptr != MAP_FAILED) else {
66 | close(fd)
67 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
68 | }
69 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:13: error: cannot find 'msync' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:57: error: cannot find 'MS_SYNC' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:9: error: cannot find 'msync' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'msync' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:26: error: cannot find 'MS_SYNC' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:109:9: error: cannot find 'munmap' in scope
107 |
108 | internal func unmap() {
109 | munmap(ptr, size)
| `- error: cannot find 'munmap' in scope
110 | }
111 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:118:15: error: cannot find 'ftruncate' in scope
116 | guard _fastPath(newSize >= 0) else { return }
117 |
118 | guard ftruncate(fileDescriptor, off_t(newSize)) == 0 else {
| `- error: cannot find 'ftruncate' in scope
119 | throw POSIXError(.init(rawValue: errno)!)
120 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:119:46: error: cannot find 'errno' in scope
117 |
118 | guard ftruncate(fileDescriptor, off_t(newSize)) == 0 else {
119 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
120 | }
121 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:124:27: error: cannot find 'PROT_READ' in scope
122 | unmap()
123 |
124 | var prot: Int32 = PROT_READ
| `- error: cannot find 'PROT_READ' in scope
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:125:33: error: cannot find 'PROT_WRITE' in scope
123 |
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
| `- error: cannot find 'PROT_WRITE' in scope
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
127 | guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:19: error: cannot find 'mmap' in scope
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
| `- error: cannot find 'mmap' in scope
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:44: error: cannot find 'MAP_SHARED' in scope
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
| `- error: cannot find 'MAP_SHARED' in scope
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:24: error: 'nil' requires a contextual type
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
| `- error: 'nil' requires a contextual type
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:128:22: error: cannot find 'MAP_FAILED' in scope
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
| `- error: cannot find 'MAP_FAILED' in scope
129 | throw POSIXError(.init(rawValue: errno)!)
130 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:129:46: error: cannot find 'errno' in scope
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
129 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
130 | }
131 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:13: error: cannot find 'msync' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'msync' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:68: error: cannot find 'MS_SYNC' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:9: error: cannot find 'msync' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:49: error: cannot find 'MS_SYNC' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:9: error: cannot find 'msync' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'msync' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:58: error: cannot find 'MS_SYNC' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:9: error: cannot find 'msync' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
349 | }
350 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:49: error: cannot find 'MS_SYNC' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
349 | }
350 | }
[11/25] Compiling BinaryParseSupport StringTableEntry.swift
[12/25] Compiling BinaryParseSupport BitFlags.swift
[13/25] Compiling FileIO StreamedFile.swift
[14/25] Compiling FileIO system.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/25] Compiling FileIO ConcatenatedStreamedFile.swift
[16/25] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:13: error: cannot find 'msync' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:57: error: cannot find 'MS_SYNC' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:9: error: cannot find 'msync' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:49: error: cannot find 'MS_SYNC' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:13: error: cannot find 'msync' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:57: error: cannot find 'MS_SYNC' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:9: error: cannot find 'msync' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'msync' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:26: error: cannot find 'MS_SYNC' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:13: error: cannot find 'msync' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'msync' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:68: error: cannot find 'MS_SYNC' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:9: error: cannot find 'msync' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:49: error: cannot find 'MS_SYNC' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:9: error: cannot find 'msync' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'msync' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:58: error: cannot find 'MS_SYNC' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:9: error: cannot find 'msync' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
349 | }
350 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:49: error: cannot find 'MS_SYNC' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
349 | }
350 | }
[17/25] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:50:51: error: cannot find 'O_RDWR' in scope
48 | var fdAndSizes: [(fd: CInt, size: off_t)] = []
49 | for url in urls {
50 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDWR' in scope
51 | guard _fastPath(fd > 0) else {
52 | cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:50:60: error: cannot find 'O_RDONLY' in scope
48 | var fdAndSizes: [(fd: CInt, size: off_t)] = []
49 | for url in urls {
50 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
51 | guard _fastPath(fd > 0) else {
52 | cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:53:50: error: cannot find 'errno' in scope
51 | guard _fastPath(fd > 0) else {
52 | cleanup(fds: fdAndSizes.map(\.fd))
53 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
54 | }
55 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:56:28: error: cannot find 'lseek' in scope
54 | }
55 |
56 | let fileSize = lseek(fd, 0, SEEK_END)
| `- error: cannot find 'lseek' in scope
57 | guard _fastPath(fileSize > 0) else {
58 | cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:59:17: error: cannot find 'close' in scope
57 | guard _fastPath(fileSize > 0) else {
58 | cleanup(fds: fdAndSizes.map(\.fd))
59 | close(fd)
| `- error: cannot find 'close' in scope
60 | throw POSIXError(.init(rawValue: errno)!)
61 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:60:50: error: cannot find 'errno' in scope
58 | cleanup(fds: fdAndSizes.map(\.fd))
59 | close(fd)
60 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
61 | }
62 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:68:23: error: cannot find 'mmap' in scope
66 | let fullSize = fdAndSizes.reduce(0, { $0 + $1.size })
67 |
68 | let basePtr = mmap(
| `- error: cannot find 'mmap' in scope
69 | nil,
70 | numericCast(fullSize),
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:13: error: cannot find 'PROT_NONE' in scope
69 | nil,
70 | numericCast(fullSize),
71 | PROT_NONE,
| `- error: cannot find 'PROT_NONE' in scope
72 | MAP_PRIVATE | MAP_ANONYMOUS,
73 | -1,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:72:13: error: cannot find 'MAP_PRIVATE' in scope
70 | numericCast(fullSize),
71 | PROT_NONE,
72 | MAP_PRIVATE | MAP_ANONYMOUS,
| `- error: cannot find 'MAP_PRIVATE' in scope
73 | -1,
74 | 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:72:27: error: cannot find 'MAP_ANONYMOUS' in scope
70 | numericCast(fullSize),
71 | PROT_NONE,
72 | MAP_PRIVATE | MAP_ANONYMOUS,
| `- error: cannot find 'MAP_ANONYMOUS' in scope
73 | -1,
74 | 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:69:13: error: 'nil' requires a contextual type
67 |
68 | let basePtr = mmap(
69 | nil,
| `- error: 'nil' requires a contextual type
70 | numericCast(fullSize),
71 | PROT_NONE,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:70:13: error: generic parameter 'U' could not be inferred
68 | let basePtr = mmap(
69 | nil,
70 | numericCast(fullSize),
| `- error: generic parameter 'U' could not be inferred
71 | PROT_NONE,
72 | MAP_PRIVATE | MAP_ANONYMOUS,
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:77:36: error: cannot find 'MAP_FAILED' in scope
75 | )
76 | guard let basePtr,
77 | _fastPath(basePtr != MAP_FAILED) else {
| `- error: cannot find 'MAP_FAILED' in scope
78 | cleanup(fds: fdAndSizes.map(\.fd))
79 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:79:46: error: cannot find 'errno' in scope
77 | _fastPath(basePtr != MAP_FAILED) else {
78 | cleanup(fds: fdAndSizes.map(\.fd))
79 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
80 | }
81 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:82:27: error: cannot find 'PROT_READ' in scope
80 | }
81 |
82 | var prot: Int32 = PROT_READ
| `- error: cannot find 'PROT_READ' in scope
83 | if isWritable { prot |= PROT_WRITE }
84 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:83:33: error: cannot find 'PROT_WRITE' in scope
81 |
82 | var prot: Int32 = PROT_READ
83 | if isWritable { prot |= PROT_WRITE }
| `- error: cannot find 'PROT_WRITE' in scope
84 |
85 | var offset = 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:29: error: cannot find 'mmap' in scope
88 | let size: Int = numericCast(size)
89 | let ptr = basePtr.advanced(by: offset)
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
| `- error: cannot find 'mmap' in scope
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:51: error: cannot find 'MAP_FIXED' in scope
88 | let size: Int = numericCast(size)
89 | let ptr = basePtr.advanced(by: offset)
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
| `- error: cannot find 'MAP_FIXED' in scope
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:63: error: cannot find 'MAP_PRIVATE' in scope
88 | let size: Int = numericCast(size)
89 | let ptr = basePtr.advanced(by: offset)
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
| `- error: cannot find 'MAP_PRIVATE' in scope
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:92:36: error: cannot find 'MAP_FAILED' in scope
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
| `- error: cannot find 'MAP_FAILED' in scope
93 | cleanup(fds: fdAndSizes.map(\.fd))
94 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:94:50: error: cannot find 'errno' in scope
92 | _fastPath(ptr != MAP_FAILED) else {
93 | cleanup(fds: fdAndSizes.map(\.fd))
94 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
95 | }
96 | files.append(
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:120:23: error: cannot find 'close' in scope
118 |
119 | private static func cleanup(fds: [CInt]) {
120 | fds.forEach { close($0) }
| `- error: cannot find 'close' in scope
121 | }
122 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:13: error: cannot find 'msync' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:57: error: cannot find 'MS_SYNC' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:9: error: cannot find 'msync' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:49: error: cannot find 'MS_SYNC' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
204 | }
205 | }
[18/25] Compiling BinaryParseSupport UnsafePointer+.swift
[19/25] Compiling BinaryParseSupport Endian.swift
[20/25] Compiling BinaryParseSupport FileHandle+.swift
[21/25] Compiling BinaryParseSupport String+.swift
[22/25] Compiling BinaryParseSupport DataSequence.swift
[23/25] Compiling BinaryParseSupport LayoutWrapper.swift
[24/25] Compiling BinaryParseSupport StringTable.swift
[25/25] Compiling BinaryParseSupport UnicodeStrings.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/21] Compiling FileIO system.swift
[3/21] Compiling BinaryParseSupport LayoutWrapper.swift
[4/21] Compiling BinaryParseSupport StringTable.swift
[5/21] Compiling BinaryParseSupport UnsafePointer+.swift
[6/21] Compiling BinaryParseSupport Endian.swift
[7/22] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:34:13: error: cannot find 'close' in scope
32 | unmap()
33 | if fileDescriptor >= 0 {
34 | close(fileDescriptor)
| `- error: cannot find 'close' in scope
35 | }
36 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:41:47: error: cannot find 'O_RDWR' in scope
39 | extension MemoryMappedFile {
40 | public static func open(url: URL, isWritable: Bool) throws -> MemoryMappedFile {
41 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDWR' in scope
42 | guard _fastPath(fd > 0) else {
43 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:41:56: error: cannot find 'O_RDONLY' in scope
39 | extension MemoryMappedFile {
40 | public static func open(url: URL, isWritable: Bool) throws -> MemoryMappedFile {
41 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
42 | guard _fastPath(fd > 0) else {
43 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:43:46: error: cannot find 'errno' in scope
41 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
42 | guard _fastPath(fd > 0) else {
43 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
44 | }
45 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:46:24: error: cannot find 'lseek' in scope
44 | }
45 |
46 | let fileSize = lseek(fd, 0, SEEK_END)
| `- error: cannot find 'lseek' in scope
47 | guard _fastPath(fileSize >= 0) else {
48 | close(fd)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:48:13: error: cannot find 'close' in scope
46 | let fileSize = lseek(fd, 0, SEEK_END)
47 | guard _fastPath(fileSize >= 0) else {
48 | close(fd)
| `- error: cannot find 'close' in scope
49 | throw POSIXError(.init(rawValue: errno)!)
50 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:49:46: error: cannot find 'errno' in scope
47 | guard _fastPath(fileSize >= 0) else {
48 | close(fd)
49 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
50 | }
51 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:61:27: error: cannot find 'PROT_READ' in scope
59 | }
60 |
61 | var prot: Int32 = PROT_READ
| `- error: cannot find 'PROT_READ' in scope
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:62:33: error: cannot find 'PROT_WRITE' in scope
60 |
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
| `- error: cannot find 'PROT_WRITE' in scope
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
64 | guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:19: error: cannot find 'mmap' in scope
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
| `- error: cannot find 'mmap' in scope
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:50: error: cannot find 'MAP_SHARED' in scope
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
| `- error: cannot find 'MAP_SHARED' in scope
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:63:24: error: 'nil' requires a contextual type
61 | var prot: Int32 = PROT_READ
62 | if isWritable { prot |= PROT_WRITE }
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
| `- error: 'nil' requires a contextual type
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:65:32: error: cannot find 'MAP_FAILED' in scope
63 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
| `- error: cannot find 'MAP_FAILED' in scope
66 | close(fd)
67 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:66:13: error: cannot find 'close' in scope
64 | guard let ptr,
65 | _fastPath(ptr != MAP_FAILED) else {
66 | close(fd)
| `- error: cannot find 'close' in scope
67 | throw POSIXError(.init(rawValue: errno)!)
68 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:67:46: error: cannot find 'errno' in scope
65 | _fastPath(ptr != MAP_FAILED) else {
66 | close(fd)
67 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
68 | }
69 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:13: error: cannot find 'msync' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:57: error: cannot find 'MS_SYNC' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:9: error: cannot find 'msync' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'msync' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:26: error: cannot find 'MS_SYNC' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:109:9: error: cannot find 'munmap' in scope
107 |
108 | internal func unmap() {
109 | munmap(ptr, size)
| `- error: cannot find 'munmap' in scope
110 | }
111 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:118:15: error: cannot find 'ftruncate' in scope
116 | guard _fastPath(newSize >= 0) else { return }
117 |
118 | guard ftruncate(fileDescriptor, off_t(newSize)) == 0 else {
| `- error: cannot find 'ftruncate' in scope
119 | throw POSIXError(.init(rawValue: errno)!)
120 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:119:46: error: cannot find 'errno' in scope
117 |
118 | guard ftruncate(fileDescriptor, off_t(newSize)) == 0 else {
119 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
120 | }
121 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:124:27: error: cannot find 'PROT_READ' in scope
122 | unmap()
123 |
124 | var prot: Int32 = PROT_READ
| `- error: cannot find 'PROT_READ' in scope
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:125:33: error: cannot find 'PROT_WRITE' in scope
123 |
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
| `- error: cannot find 'PROT_WRITE' in scope
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
127 | guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:19: error: cannot find 'mmap' in scope
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
| `- error: cannot find 'mmap' in scope
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:44: error: cannot find 'MAP_SHARED' in scope
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
| `- error: cannot find 'MAP_SHARED' in scope
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:126:24: error: 'nil' requires a contextual type
124 | var prot: Int32 = PROT_READ
125 | if isWritable { prot |= PROT_WRITE }
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
| `- error: 'nil' requires a contextual type
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:128:22: error: cannot find 'MAP_FAILED' in scope
126 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
| `- error: cannot find 'MAP_FAILED' in scope
129 | throw POSIXError(.init(rawValue: errno)!)
130 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:129:46: error: cannot find 'errno' in scope
127 | guard let ptr,
128 | ptr != MAP_FAILED else {
129 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
130 | }
131 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:13: error: cannot find 'msync' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'msync' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:68: error: cannot find 'MS_SYNC' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:9: error: cannot find 'msync' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:49: error: cannot find 'MS_SYNC' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:9: error: cannot find 'msync' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'msync' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:58: error: cannot find 'MS_SYNC' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:9: error: cannot find 'msync' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
349 | }
350 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:49: error: cannot find 'MS_SYNC' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
349 | }
350 | }
[8/22] Compiling FileIO FileIO.swift
[9/22] Compiling FileIO ConcatenatedStreamedFile.swift
[10/22] Compiling BinaryParseSupport MemorySequence.swift
[11/22] Compiling BinaryParseSupport StringTableEntry.swift
[12/22] Compiling BinaryParseSupport BitFlags.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/22] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:13: error: cannot find 'msync' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:57: error: cannot find 'MS_SYNC' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:9: error: cannot find 'msync' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:49: error: cannot find 'MS_SYNC' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:13: error: cannot find 'msync' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:99:57: error: cannot find 'MS_SYNC' in scope
97 | data.withUnsafeBytes { buffer in
98 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
99 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
100 | }
101 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:9: error: cannot find 'msync' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'msync' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:105:26: error: cannot find 'MS_SYNC' in scope
103 | @inlinable @inline(__always)
104 | public func sync() {
105 | msync(ptr, size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
106 | }
107 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:13: error: cannot find 'msync' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'msync' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:152:68: error: cannot find 'MS_SYNC' in scope
150 | data.withUnsafeBytes { buffer in
151 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
152 | msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
153 | }
154 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:9: error: cannot find 'msync' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:207:49: error: cannot find 'MS_SYNC' in scope
205 | .assumingMemoryBound(to: T.self)
206 | .pointee = value
207 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
208 | }
209 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:9: error: cannot find 'msync' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'msync' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:284:58: error: cannot find 'MS_SYNC' in scope
282 | @inlinable @inline(__always)
283 | public func sync() {
284 | msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
285 | }
286 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:9: error: cannot find 'msync' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
349 | }
350 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:348:49: error: cannot find 'MS_SYNC' in scope
346 | .assumingMemoryBound(to: T.self)
347 | .pointee = value
348 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
349 | }
350 | }
[14/22] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:50:51: error: cannot find 'O_RDWR' in scope
48 | var fdAndSizes: [(fd: CInt, size: off_t)] = []
49 | for url in urls {
50 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDWR' in scope
51 | guard _fastPath(fd > 0) else {
52 | cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:50:60: error: cannot find 'O_RDONLY' in scope
48 | var fdAndSizes: [(fd: CInt, size: off_t)] = []
49 | for url in urls {
50 | let fd = _open(url.path, isWritable ? O_RDWR : O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
51 | guard _fastPath(fd > 0) else {
52 | cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:53:50: error: cannot find 'errno' in scope
51 | guard _fastPath(fd > 0) else {
52 | cleanup(fds: fdAndSizes.map(\.fd))
53 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
54 | }
55 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:56:28: error: cannot find 'lseek' in scope
54 | }
55 |
56 | let fileSize = lseek(fd, 0, SEEK_END)
| `- error: cannot find 'lseek' in scope
57 | guard _fastPath(fileSize > 0) else {
58 | cleanup(fds: fdAndSizes.map(\.fd))
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:59:17: error: cannot find 'close' in scope
57 | guard _fastPath(fileSize > 0) else {
58 | cleanup(fds: fdAndSizes.map(\.fd))
59 | close(fd)
| `- error: cannot find 'close' in scope
60 | throw POSIXError(.init(rawValue: errno)!)
61 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:60:50: error: cannot find 'errno' in scope
58 | cleanup(fds: fdAndSizes.map(\.fd))
59 | close(fd)
60 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
61 | }
62 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:68:23: error: cannot find 'mmap' in scope
66 | let fullSize = fdAndSizes.reduce(0, { $0 + $1.size })
67 |
68 | let basePtr = mmap(
| `- error: cannot find 'mmap' in scope
69 | nil,
70 | numericCast(fullSize),
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:13: error: cannot find 'PROT_NONE' in scope
69 | nil,
70 | numericCast(fullSize),
71 | PROT_NONE,
| `- error: cannot find 'PROT_NONE' in scope
72 | MAP_PRIVATE | MAP_ANONYMOUS,
73 | -1,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:72:13: error: cannot find 'MAP_PRIVATE' in scope
70 | numericCast(fullSize),
71 | PROT_NONE,
72 | MAP_PRIVATE | MAP_ANONYMOUS,
| `- error: cannot find 'MAP_PRIVATE' in scope
73 | -1,
74 | 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:72:27: error: cannot find 'MAP_ANONYMOUS' in scope
70 | numericCast(fullSize),
71 | PROT_NONE,
72 | MAP_PRIVATE | MAP_ANONYMOUS,
| `- error: cannot find 'MAP_ANONYMOUS' in scope
73 | -1,
74 | 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:69:13: error: 'nil' requires a contextual type
67 |
68 | let basePtr = mmap(
69 | nil,
| `- error: 'nil' requires a contextual type
70 | numericCast(fullSize),
71 | PROT_NONE,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:70:13: error: generic parameter 'U' could not be inferred
68 | let basePtr = mmap(
69 | nil,
70 | numericCast(fullSize),
| `- error: generic parameter 'U' could not be inferred
71 | PROT_NONE,
72 | MAP_PRIVATE | MAP_ANONYMOUS,
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:77:36: error: cannot find 'MAP_FAILED' in scope
75 | )
76 | guard let basePtr,
77 | _fastPath(basePtr != MAP_FAILED) else {
| `- error: cannot find 'MAP_FAILED' in scope
78 | cleanup(fds: fdAndSizes.map(\.fd))
79 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:79:46: error: cannot find 'errno' in scope
77 | _fastPath(basePtr != MAP_FAILED) else {
78 | cleanup(fds: fdAndSizes.map(\.fd))
79 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
80 | }
81 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:82:27: error: cannot find 'PROT_READ' in scope
80 | }
81 |
82 | var prot: Int32 = PROT_READ
| `- error: cannot find 'PROT_READ' in scope
83 | if isWritable { prot |= PROT_WRITE }
84 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:83:33: error: cannot find 'PROT_WRITE' in scope
81 |
82 | var prot: Int32 = PROT_READ
83 | if isWritable { prot |= PROT_WRITE }
| `- error: cannot find 'PROT_WRITE' in scope
84 |
85 | var offset = 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:29: error: cannot find 'mmap' in scope
88 | let size: Int = numericCast(size)
89 | let ptr = basePtr.advanced(by: offset)
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
| `- error: cannot find 'mmap' in scope
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:51: error: cannot find 'MAP_FIXED' in scope
88 | let size: Int = numericCast(size)
89 | let ptr = basePtr.advanced(by: offset)
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
| `- error: cannot find 'MAP_FIXED' in scope
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:90:63: error: cannot find 'MAP_PRIVATE' in scope
88 | let size: Int = numericCast(size)
89 | let ptr = basePtr.advanced(by: offset)
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
| `- error: cannot find 'MAP_PRIVATE' in scope
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:92:36: error: cannot find 'MAP_FAILED' in scope
90 | let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
91 | guard ptr == mappedPtr,
92 | _fastPath(ptr != MAP_FAILED) else {
| `- error: cannot find 'MAP_FAILED' in scope
93 | cleanup(fds: fdAndSizes.map(\.fd))
94 | throw POSIXError(.init(rawValue: errno)!)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:94:50: error: cannot find 'errno' in scope
92 | _fastPath(ptr != MAP_FAILED) else {
93 | cleanup(fds: fdAndSizes.map(\.fd))
94 | throw POSIXError(.init(rawValue: errno)!)
| `- error: cannot find 'errno' in scope
95 | }
96 | files.append(
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:120:23: error: cannot find 'close' in scope
118 |
119 | private static func cleanup(fds: [CInt]) {
120 | fds.forEach { close($0) }
| `- error: cannot find 'close' in scope
121 | }
122 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:13: error: cannot find 'msync' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'msync' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:156:57: error: cannot find 'MS_SYNC' in scope
154 | data.withUnsafeBytes { buffer in
155 | memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
156 | msync(ptr.advanced(by: offset), data.count, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
157 | }
158 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:9: error: cannot find 'msync' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'msync' in scope
204 | }
205 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:203:49: error: cannot find 'MS_SYNC' in scope
201 | .assumingMemoryBound(to: T.self)
202 | .pointee = value
203 | msync(ptr.advanced(by: offset), length, MS_SYNC)
| `- error: cannot find 'MS_SYNC' in scope
204 | }
205 | }
[15/22] Compiling BinaryParseSupport BinaryParseSupport.swift
[16/22] Compiling BinaryParseSupport Data+.swift
[17/22] Emitting module BinaryParseSupport
[18/22] Compiling BinaryParseSupport FileHandle+.swift
[19/22] Compiling BinaryParseSupport String+.swift
[20/22] Compiling BinaryParseSupport DataSequence.swift
[21/22] Compiling FileIO StreamedFile.swift
[22/22] Compiling BinaryParseSupport UnicodeStrings.swift
BUILD FAILURE 6.1 android