Build Information
Failed to build MachOKit, reference 0.47.0 (25e56c), with Swift 6.3 for Wasm on 19 Apr 2026 07:22:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lynnswap/MachOKit.git
Reference: 0.47.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/lynnswap/MachOKit
* tag 0.47.0 -> FETCH_HEAD
HEAD is now at 25e56cb Merge pull request #267 from p-x9/feature/archive
Cloned https://github.com/lynnswap/MachOKit.git
Revision (git rev-parse @):
25e56cbb2865ef4d00ea4f15501f29f65c4ca189
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/lynnswap/MachOKit.git at 0.47.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/lynnswap/MachOKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:135:1: warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
133 | }
134 |
135 | extension SwiftSetting: CaseIterable {
| |- warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
136 | public static var allCases: [Self] {
137 | [
Fetching https://github.com/p-x9/swift-binary-parse-support.git
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/p-x9/ObjectArchiveKit.git
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/apple/swift-crypto.git
[1/48] Fetching swift-fileio-extra
Fetched https://github.com/p-x9/swift-fileio-extra.git from cache (0.45s)
[1/246] Fetching swift-fileio
[38/505] Fetching swift-fileio, objectarchivekit
[487/747] Fetching swift-fileio, objectarchivekit, swift-binary-parse-support
Fetched https://github.com/p-x9/ObjectArchiveKit.git from cache (0.55s)
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.56s)
Fetched https://github.com/p-x9/swift-binary-parse-support.git from cache (0.56s)
[1/17416] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (5.36s)
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 (6.20s)
Computing version for https://github.com/p-x9/swift-fileio-extra.git
Computed https://github.com/p-x9/swift-fileio-extra.git at 0.2.2 (0.98s)
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.79s)
Computing version for https://github.com/p-x9/ObjectArchiveKit.git
Computed https://github.com/p-x9/ObjectArchiveKit.git at 0.5.0 (0.77s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (4.09s)
Fetching https://github.com/apple/swift-asn1.git
[1/1803] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.48s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (4.43s)
Creating working copy for https://github.com/p-x9/ObjectArchiveKit.git
Working copy of https://github.com/p-x9/ObjectArchiveKit.git resolved at 0.5.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.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
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
Creating working copy for https://github.com/p-x9/swift-fileio-extra.git
Working copy of https://github.com/p-x9/swift-fileio-extra.git resolved at 0.2.2
Building for debugging...
[0/378] Write sources
[7/378] Compiling ObjectArchiveKitC dummy.c
[8/378] Compiling MachOKitC mach-o-linux.c
[9/378] Compiling fiat_p256_adx_mul.S
[10/378] Compiling fiat_curve25519_adx_square.S
[11/378] Compiling fiat_p256_adx_sqr.S
[12/378] Compiling fiat_curve25519_adx_mul.S
[13/378] Compiling md5-x86_64-linux.S
[14/378] Compiling md5-x86_64-apple.S
[15/378] Compiling md5-586-linux.S
[16/378] Compiling chacha20_poly1305_x86_64-linux.S
[17/378] Compiling md5-586-apple.S
[18/378] Write swift-version-24593BA9C3E375BF.txt
[18/378] Compiling chacha20_poly1305_x86_64-apple.S
[20/378] Compiling chacha20_poly1305_armv8-win.S
[21/378] Compiling chacha20_poly1305_armv8-linux.S
[22/378] Compiling chacha20_poly1305_armv8-apple.S
[23/378] Compiling chacha-x86_64-linux.S
[24/378] Compiling chacha-x86_64-apple.S
[25/378] Compiling chacha-x86-linux.S
[26/378] Compiling chacha-x86-apple.S
[27/378] Compiling chacha-armv8-win.S
[28/378] Compiling chacha-armv8-linux.S
[29/378] Compiling chacha-armv8-apple.S
[30/381] Compiling chacha-armv4-linux.S
[31/385] Compiling aes128gcmsiv-x86_64-linux.S
[32/385] Compiling x86_64-mont5-linux.S
[33/385] Compiling aes128gcmsiv-x86_64-apple.S
[34/385] Compiling x86_64-mont-linux.S
[35/385] Compiling x86-mont-linux.S
[36/385] Compiling x86_64-mont5-apple.S
[37/385] Compiling x86-mont-apple.S
[38/385] Compiling x86_64-mont-apple.S
[39/385] Compiling vpaes-x86_64-linux.S
[40/385] Compiling vpaes-x86_64-apple.S
[41/385] Compiling vpaes-x86-linux.S
[42/385] Compiling vpaes-armv8-win.S
[43/385] Compiling CCryptoBoringSSLShims shims.c
[44/385] Compiling vpaes-x86-apple.S
[45/385] Compiling vpaes-armv7-linux.S
[46/385] Compiling vpaes-armv8-apple.S
[47/385] Compiling vpaes-armv8-linux.S
[47/385] Compiling sha512-x86_64-apple.S
[49/385] Compiling sha512-x86_64-linux.S
[50/385] Compiling sha512-armv8-win.S
[51/385] Compiling sha512-armv4-linux.S
[52/385] Compiling sha512-586-linux.S
[53/385] Compiling sha512-armv8-linux.S
[54/385] Compiling sha512-armv8-apple.S
[55/385] Compiling sha256-x86_64-linux.S
[56/385] Compiling sha512-586-apple.S
[57/385] Compiling sha256-armv8-win.S
[58/385] Compiling sha256-armv8-apple.S
[59/385] Compiling sha256-armv4-linux.S
[60/385] Compiling sha256-x86_64-apple.S
[61/385] Compiling sha256-armv8-linux.S
[62/385] Compiling sha256-586-apple.S
[63/385] Compiling sha1-armv8-win.S
[64/385] Compiling sha1-x86_64-apple.S
[65/385] Compiling sha256-586-linux.S
[66/385] Compiling sha1-x86_64-linux.S
[67/385] Compiling sha1-armv8-linux.S
[68/385] Compiling sha1-armv8-apple.S
[69/385] Compiling sha1-586-linux.S
[70/385] Compiling sha1-armv4-large-linux.S
[71/385] Compiling sha1-586-apple.S
[72/385] Compiling rsaz-avx2-linux.S
[73/385] Compiling rsaz-avx2-apple.S
[74/385] Compiling rdrand-x86_64-linux.S
[75/385] Compiling rdrand-x86_64-apple.S
[76/385] Compiling p256_beeu-x86_64-asm-linux.S
[77/385] Compiling p256_beeu-x86_64-asm-apple.S
[78/385] Compiling p256_beeu-armv8-asm-win.S
[79/385] Compiling p256_beeu-armv8-asm-linux.S
[80/385] Compiling p256_beeu-armv8-asm-apple.S
[81/385] Compiling p256-x86_64-asm-linux.S
[82/385] Compiling p256-x86_64-asm-apple.S
[83/385] Compiling err_data.cc
[84/385] Compiling p256-armv8-asm-win.S
[85/385] Compiling p256-armv8-asm-linux.S
[86/385] Compiling p256-armv8-asm-apple.S
[87/385] Compiling ghashv8-armv8-win.S
[88/385] Compiling ghashv8-armv8-linux.S
[89/385] Compiling ghashv8-armv8-apple.S
[90/385] Compiling ghashv8-armv7-linux.S
[91/385] Compiling ghash-x86_64-linux.S
[92/385] Compiling ghash-x86-apple.S
[93/385] Compiling ghash-x86_64-apple.S
[94/385] Compiling ghash-x86-linux.S
[95/385] Compiling ghash-ssse3-x86_64-apple.S
[96/385] Compiling ghash-ssse3-x86_64-linux.S
[97/385] Compiling ghash-neon-armv8-win.S
[98/385] Compiling ghash-armv4-linux.S
[99/385] Compiling ghash-ssse3-x86-apple.S
[100/385] Compiling ghash-ssse3-x86-linux.S
[101/385] Compiling ghash-neon-armv8-linux.S
[102/385] Compiling ghash-neon-armv8-apple.S
[103/385] Compiling co-586-linux.S
[104/385] Compiling bn-armv8-win.S
[105/385] Compiling co-586-apple.S
[106/385] Compiling bsaes-armv7-linux.S
[107/385] Compiling bn-armv8-linux.S
[108/385] Compiling bn-586-linux.S
[109/385] Compiling bn-armv8-apple.S
[109/385] Compiling bn-586-apple.S
[111/385] Compiling armv8-mont-win.S
[112/385] Compiling armv8-mont-linux.S
[113/385] Compiling armv4-mont-linux.S
[114/385] Compiling armv8-mont-apple.S
[115/385] Compiling aesv8-gcm-armv8-linux.S
[116/385] Compiling aesv8-gcm-armv8-win.S
[117/385] Compiling aesv8-armv8-win.S
[118/385] Compiling aesv8-armv8-linux.S
[119/385] Compiling aesv8-gcm-armv8-apple.S
[120/385] Compiling aesv8-armv8-apple.S
[121/385] Compiling aesv8-armv7-linux.S
[122/385] Compiling aesni-x86_64-linux.S
[123/385] Compiling aesni-x86_64-apple.S
[124/385] Compiling aesni-x86-linux.S
[125/385] Compiling aesni-x86-apple.S
[126/385] Compiling aesni-gcm-x86_64-linux.S
[127/385] Compiling aesni-gcm-x86_64-apple.S
[128/385] Compiling aes-gcm-avx512-x86_64-linux.S
[129/385] Compiling aes-gcm-avx512-x86_64-apple.S
[130/385] Compiling aes-gcm-avx2-x86_64-linux.S
[131/385] Compiling aes-gcm-avx2-x86_64-apple.S
[132/385] Compiling xwing.cc
[133/385] Compiling x_req.cc
[134/385] Compiling x_sig.cc
[135/385] Compiling x_x509a.cc
[136/385] Compiling x_x509.cc
[137/385] Compiling x_spki.cc
[138/385] Compiling x_pubkey.cc
[139/385] Compiling x_exten.cc
[140/385] Compiling x_name.cc
[141/385] Compiling x_crl.cc
[142/385] Compiling x_attrib.cc
[143/385] Compiling x_algor.cc
[144/385] Compiling x_all.cc
[145/385] Compiling x509spki.cc
[146/385] Compiling x509rset.cc
[147/385] Compiling x509name.cc
[148/385] Compiling x509_vpm.cc
[149/385] Compiling x509cset.cc
[150/385] Compiling x509_txt.cc
[151/385] Compiling x509_vfy.cc
[152/385] Compiling x509_v3.cc
[153/385] Compiling x509_trs.cc
[154/385] Compiling x509_set.cc
[155/385] Compiling x509_obj.cc
[156/385] Compiling x509_req.cc
[157/385] Compiling x509_def.cc
[158/385] Compiling x509_ext.cc
[159/385] Compiling x509_lu.cc
[160/385] Compiling x509_d2.cc
[161/385] Compiling x509_att.cc
[162/385] Compiling x509.cc
[163/385] Compiling x509_cmp.cc
[164/385] Compiling v3_skey.cc
[165/385] Compiling v3_utl.cc
[166/385] Compiling v3_purp.cc
[167/385] Compiling v3_prn.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[169/385] 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 | }
[170/385] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/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: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: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 | }
[171/385] Compiling FileIO FileIO.swift
[172/385] Compiling FileIO system.swift
[173/385] Compiling FileIO ConcatenatedStreamedFile.swift
[173/385] Compiling v3_pmaps.cc
[174/385] Compiling v3_pcons.cc
[175/385] Compiling v3_ocsp.cc
[177/385] Compiling FileIO StreamedFile.swift
[178/385] Compiling FileIO MemoryMappedFile.swift
/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: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: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: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 | }
[178/385] Compiling v3_genn.cc
[178/385] Compiling v3_int.cc
[178/385] Compiling v3_info.cc
[178/385] Compiling v3_lib.cc
[178/385] Compiling v3_ncons.cc
[178/385] Compiling v3_ia5.cc
[178/385] Compiling v3_extku.cc
BUILD FAILURE 6.3 wasm