Build Information
Failed to build MachOObjCSection, reference main (3dbf6a), with Swift 6.2 for Wasm on 22 Mar 2026 13:51:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lynnswap/MachOObjCSection.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/lynnswap/MachOObjCSection
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3dbf6a8 Merge pull request #1 from lynnswap/codex/objc-pointer-bind
Cloned https://github.com/lynnswap/MachOObjCSection.git
Revision (git rev-parse @):
3dbf6a856cbdc856d4d7c1fe6bbf81161e0fbe9c
SUCCESS checkout https://github.com/lynnswap/MachOObjCSection.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/lynnswap/MachOObjCSection.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/lynnswap/MachOKit.git
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/p-x9/swift-objc-dump.git
[1/429] Fetching swift-objc-dump
[430/6903] Fetching swift-objc-dump, machokit
[948/7149] Fetching swift-objc-dump, machokit, swift-fileio
Fetched https://github.com/p-x9/swift-objc-dump.git from cache (0.48s)
[3160/6720] Fetching machokit, swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.50s)
[3496/6474] Fetching machokit
Fetched https://github.com/lynnswap/MachOKit.git from cache (0.76s)
Computing version for https://github.com/lynnswap/MachOKit.git
warning: 'machokit': /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 | [
Computed https://github.com/lynnswap/MachOKit.git at 0.47.0 (1.80s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/p-x9/ObjectArchiveKit.git
Fetching https://github.com/p-x9/swift-binary-parse-support.git
[1/210] Fetching objectarchivekit
[211/258] Fetching objectarchivekit, swift-fileio-extra
[249/500] Fetching objectarchivekit, swift-fileio-extra, swift-binary-parse-support
Fetched https://github.com/p-x9/ObjectArchiveKit.git from cache (0.47s)
Fetched https://github.com/p-x9/swift-binary-parse-support.git from cache (0.49s)
Fetched https://github.com/p-x9/swift-fileio-extra.git from cache (0.49s)
[1/17246] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (3.25s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.13.0 (3.91s)
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 (0.72s)
Computing version for https://github.com/p-x9/ObjectArchiveKit.git
Computed https://github.com/p-x9/ObjectArchiveKit.git at 0.3.0 (0.73s)
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.79s)
Computing version for https://github.com/p-x9/swift-objc-dump.git
Computed https://github.com/p-x9/swift-objc-dump.git at 0.8.0 (0.68s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (4.95s)
Fetching https://github.com/apple/swift-asn1.git
[1/1769] 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.6.0 (4.36s)
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/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.6.0
Creating working copy for https://github.com/p-x9/swift-objc-dump.git
Working copy of https://github.com/p-x9/swift-objc-dump.git resolved at 0.8.0
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/lynnswap/MachOKit.git
Working copy of https://github.com/lynnswap/MachOKit.git resolved at 0.47.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
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/ObjectArchiveKit.git
Working copy of https://github.com/p-x9/ObjectArchiveKit.git resolved at 0.3.0
warning: 'machokit': /host/spi-builder-workspace/.build/checkouts/MachOKit/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 | [
Building for debugging...
[0/379] Write sources
[7/379] Compiling MachOKitC mach-o-linux.c
[8/379] Write sources
[9/379] Compiling MachOObjCSectionC dummy.c
[10/379] Write swift-version-24593BA9C3E375BF.txt
[11/379] Compiling fiat_p256_adx_sqr.S
[12/379] Compiling fiat_p256_adx_mul.S
[13/398] Compiling CCryptoBoringSSLShims shims.c
[14/398] Compiling fiat_curve25519_adx_square.S
[15/398] Compiling fiat_curve25519_adx_mul.S
[16/398] Compiling lhash.cc
[17/398] Compiling md5-x86_64-apple.S
[18/398] Compiling md5-x86_64-linux.S
[19/398] Compiling hrss.cc
[20/398] Compiling md5-586-linux.S
[21/398] Compiling md5-586-apple.S
[22/398] Compiling md4.cc
[23/398] Compiling md5.cc
[24/398] Compiling chacha20_poly1305_x86_64-apple.S
[25/398] Compiling chacha20_poly1305_x86_64-linux.S
[26/398] Compiling kyber.cc
[27/398] Compiling chacha20_poly1305_armv8-linux.S
[28/398] Compiling chacha-x86_64-linux.S
[29/398] Compiling chacha20_poly1305_armv8-win.S
[30/398] Compiling chacha20_poly1305_armv8-apple.S
[31/398] Compiling chacha-x86_64-apple.S
[32/398] Compiling err_data.cc
[33/398] Compiling chacha-x86-linux.S
[34/398] Compiling chacha-x86-apple.S
[35/398] Compiling chacha-armv8-win.S
[36/398] Compiling chacha-armv8-linux.S
[37/398] Compiling chacha-armv8-apple.S
[38/398] Compiling aes128gcmsiv-x86_64-linux.S
[39/398] Compiling chacha-armv4-linux.S
[40/398] Compiling aes128gcmsiv-x86_64-apple.S
[41/398] Compiling x86_64-mont-linux.S
[42/398] Compiling x86_64-mont5-linux.S
[43/398] Compiling x86_64-mont-apple.S
[44/398] Compiling x86_64-mont5-apple.S
[45/398] Compiling x86-mont-apple.S
[46/398] Compiling x86-mont-linux.S
[47/398] Compiling vpaes-x86_64-linux.S
[48/398] Compiling vpaes-x86-apple.S
[49/398] Compiling vpaes-x86-linux.S
[50/398] Compiling vpaes-x86_64-apple.S
[51/398] Compiling vpaes-armv8-win.S
[52/398] Compiling vpaes-armv8-apple.S
[53/398] Compiling vpaes-armv8-linux.S
[54/398] Compiling sha512-x86_64-apple.S
[55/398] Compiling sha512-x86_64-linux.S
[56/398] Compiling vpaes-armv7-linux.S
[57/398] Compiling sha512-armv8-linux.S
[58/398] Compiling sha512-armv8-win.S
[59/398] Compiling sha512-armv4-linux.S
[60/398] Compiling sha512-armv8-apple.S
[61/398] Compiling sha512-586-linux.S
[62/398] Compiling sha512-586-apple.S
[63/398] Compiling sha256-armv8-win.S
[64/398] Compiling sha256-x86_64-linux.S
[65/398] Compiling sha256-x86_64-apple.S
[66/398] Compiling sha256-armv8-apple.S
[67/398] Compiling sha256-armv8-linux.S
[68/398] Compiling sha256-armv4-linux.S
[69/398] Compiling sha256-586-linux.S
[70/398] Compiling sha256-586-apple.S
[71/398] Compiling sha1-x86_64-linux.S
[72/398] Compiling sha1-x86_64-apple.S
[73/398] Compiling sha1-armv8-linux.S
[74/398] Compiling sha1-armv8-win.S
[75/398] Compiling sha1-586-linux.S
[76/398] Compiling sha1-armv8-apple.S
[77/398] Compiling sha1-armv4-large-linux.S
[78/398] Compiling rsaz-avx2-apple.S
[79/398] Compiling sha1-586-apple.S
[80/398] Compiling rsaz-avx2-linux.S
[81/398] Compiling rdrand-x86_64-apple.S
[82/398] Compiling rdrand-x86_64-linux.S
[83/398] Compiling p256_beeu-x86_64-asm-apple.S
[84/398] Compiling p256_beeu-x86_64-asm-linux.S
[85/398] Compiling p256_beeu-armv8-asm-win.S
[86/398] Compiling p256_beeu-armv8-asm-apple.S
[87/398] Compiling p256_beeu-armv8-asm-linux.S
[88/398] Compiling p256-armv8-asm-win.S
[89/398] Compiling p256-x86_64-asm-linux.S
[90/398] Compiling p256-x86_64-asm-apple.S
[91/398] Compiling p256-armv8-asm-linux.S
[92/398] Compiling ghashv8-armv8-linux.S
[93/398] Compiling p256-armv8-asm-apple.S
[94/398] Compiling ghashv8-armv8-win.S
[95/398] Compiling ghashv8-armv7-linux.S
[96/398] Compiling ghashv8-armv8-apple.S
[97/398] Compiling ghash-x86_64-apple.S
[98/398] Compiling ghash-x86-apple.S
[99/398] Compiling ghash-x86-linux.S
[100/398] Compiling ghash-x86_64-linux.S
[101/398] Compiling ghash-ssse3-x86_64-apple.S
[102/398] Compiling ghash-ssse3-x86_64-linux.S
[103/398] Compiling ghash-ssse3-x86-linux.S
[104/398] Compiling ghash-neon-armv8-win.S
[105/398] Compiling ghash-ssse3-x86-apple.S
[106/398] Compiling ghash-neon-armv8-linux.S
[107/398] Compiling ghash-armv4-linux.S
[108/398] Compiling ghash-neon-armv8-apple.S
[109/398] Compiling co-586-linux.S
[110/398] Compiling co-586-apple.S
[111/398] Compiling bsaes-armv7-linux.S
[112/398] Compiling bn-armv8-win.S
[113/398] Compiling bn-armv8-linux.S
[114/398] Compiling bn-armv8-apple.S
[115/398] Compiling bn-586-apple.S
[116/398] Compiling bn-586-linux.S
[117/398] Compiling armv8-mont-win.S
[118/398] Compiling armv8-mont-linux.S
[119/398] Compiling armv8-mont-apple.S
[120/398] Compiling armv4-mont-linux.S
[121/398] Compiling aesv8-gcm-armv8-win.S
[122/398] Compiling aesv8-gcm-armv8-linux.S
[123/398] Compiling aesv8-gcm-armv8-apple.S
[124/398] Compiling aesv8-armv8-linux.S
[125/398] Compiling aesv8-armv8-win.S
[125/398] Compiling aesv8-armv7-linux.S
[127/398] Compiling aesv8-armv8-apple.S
[128/398] Compiling aesni-x86_64-apple.S
[129/398] Compiling aesni-x86_64-linux.S
[130/398] Compiling aesni-x86-linux.S
[131/398] Compiling aesni-x86-apple.S
[132/398] Compiling aesni-gcm-x86_64-linux.S
[133/398] Compiling aes-gcm-avx512-x86_64-linux.S
[134/398] Compiling aesni-gcm-x86_64-apple.S
[135/398] Compiling aes-gcm-avx2-x86_64-apple.S
[136/398] Compiling aes-gcm-avx2-x86_64-linux.S
[137/398] Compiling aes-gcm-avx512-x86_64-apple.S
[138/398] Compiling xwing.cc
[139/398] Compiling x_req.cc
[140/398] Compiling x_x509a.cc
[141/398] Compiling x_spki.cc
[142/398] Compiling x_sig.cc
[143/398] Compiling x_x509.cc
[144/398] Compiling x_name.cc
[145/398] Compiling x_exten.cc
[146/398] Compiling x_crl.cc
[147/398] Compiling x_pubkey.cc
[148/398] Compiling x_all.cc
[149/398] Compiling x_attrib.cc
[150/398] Compiling x509spki.cc
[151/398] Compiling x509rset.cc
[152/398] Compiling x_algor.cc
[153/398] Compiling x509name.cc
[154/398] Compiling x509cset.cc
[155/398] Compiling x509_vfy.cc
[156/398] Compiling x509_vpm.cc
[157/398] Compiling x509_v3.cc
[158/398] Compiling x509_txt.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[160/398] 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 | }
[161/398] Compiling FileIO system.swift
[162/398] Compiling ObjCTypeDecodeKit String+.swift
[163/398] Compiling ObjCTypeDecodeKit Node.swift
[164/399] Emitting module ObjCTypeDecodeKit
[165/399] Compiling ObjCTypeDecodeKit ObjCPropertyTypeDecoder.swift
[165/399] Compiling x509_trs.cc
[167/399] Compiling ObjCTypeDecodeKit ObjCField.swift
[168/399] Compiling ObjCTypeDecodeKit ObjCMethodType.swift
[169/399] Compiling ObjCTypeDecodeKit ObjCModifier.swift
[170/399] Compiling ObjCTypeDecodeKit ObjCPropertyAttribute.swift
[170/399] Compiling x509_req.cc
[172/399] Compiling ObjCTypeDecodeKit ObjCType.swift
[173/399] Compiling ObjCTypeDecodeKit types.swift
[174/399] Compiling ObjCTypeDecodeKit ObjCMethodTypeDecoder.swift
[175/399] 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 | }
[176/399] Compiling ObjCTypeDecodeKit ObjCTypeCodable.swift
[177/399] Compiling ObjCTypeDecodeKit ObjCTypeDecoder.swift
[177/400] Compiling x509_set.cc
[179/400] Compiling FileIO FileIO.swift
[180/400] Compiling FileIO ConcatenatedStreamedFile.swift
[181/400] 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 | }
[182/400] Compiling FileIO StreamedFile.swift
[183/400] Compiling x509_lu.cc
[183/400] Compiling x509_def.cc
[183/400] Compiling x509_d2.cc
[183/400] Compiling x509_cmp.cc
[183/400] Compiling x509_obj.cc
[183/400] Compiling x509_ext.cc
BUILD FAILURE 6.2 wasm