The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build AntiFishHook, reference main (9723f7), with Swift 6.1 for Wasm on 21 Jul 2025 17:33:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-anti-fishhook.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/p-x9/swift-anti-fishhook
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9723f76 Merge pull request #25 from p-x9/dependabot/swift/github.com/p-x9/machokit-0.36.0
Cloned https://github.com/p-x9/swift-anti-fishhook.git
Revision (git rev-parse @):
9723f7642232e90a6a8cb1da1d8fe54797ff1eba
SUCCESS checkout https://github.com/p-x9/swift-anti-fishhook.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/p-x9/swift-anti-fishhook.git
https://github.com/p-x9/swift-anti-fishhook.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-fishhook",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/swift-fishhook.git"
    },
    {
      "identity" : "machokit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.28.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/MachOKit.git"
    }
  ],
  "manifest_display_name" : "AntiFishHook",
  "name" : "AntiFishHook",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "AntiFishHook",
      "targets" : [
        "AntiFishHook"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AntiFishHookTests",
      "module_type" : "SwiftTarget",
      "name" : "AntiFishHookTests",
      "path" : "Tests/AntiFishHookTests",
      "sources" : [
        "AntiFishHookTests.swift",
        "struct.swift"
      ],
      "target_dependencies" : [
        "AntiFishHook"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AntiFishHook",
      "module_type" : "SwiftTarget",
      "name" : "AntiFishHook",
      "path" : "Sources/AntiFishHook",
      "product_dependencies" : [
        "FishHook",
        "MachOKit"
      ],
      "product_memberships" : [
        "AntiFishHook"
      ],
      "sources" : [
        "AntiFishHook.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/p-x9/MachOKit.git
Fetching https://github.com/p-x9/swift-fishhook.git
[1/205] Fetching swift-fishhook
[206/5553] Fetching swift-fishhook, machokit
Fetched https://github.com/p-x9/swift-fishhook.git from cache (0.32s)
Fetched https://github.com/p-x9/MachOKit.git from cache (0.37s)
Computing version for https://github.com/p-x9/swift-fishhook.git
Computed https://github.com/p-x9/swift-fishhook.git at 0.6.0 (1.19s)
Computing version for https://github.com/p-x9/MachOKit.git
warning: 'machokit': /Package.swift:77: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
75 | }
76 |
77 | 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
78 |     public static var allCases: [Self] {
79 |         [
Computed https://github.com/p-x9/MachOKit.git at 0.36.0 (0.66s)
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/apple/swift-crypto.git
[1/196] Fetching swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.24s)
[1/15793] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.92s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.11.0 (2.44s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.13.0 (4.01s)
Fetching https://github.com/apple/swift-asn1.git
[1/1616] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.35s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (1.37s)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.4.0
Creating working copy for https://github.com/p-x9/swift-fishhook.git
Working copy of https://github.com/p-x9/swift-fishhook.git resolved at 0.6.0
Creating working copy for https://github.com/p-x9/MachOKit.git
Working copy of https://github.com/p-x9/MachOKit.git resolved at 0.36.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.13.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.11.0
warning: 'machokit': /host/spi-builder-workspace/.build/checkouts/MachOKit/Package.swift:77: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
75 | }
76 |
77 | 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
78 |     public static var allCases: [Self] {
79 |         [
Building for debugging...
[0/376] Write sources
[5/376] Compiling MachOKitC mach-o-linux.c
[6/376] Write sources
[7/376] Compiling a_dup.cc
[8/376] Write swift-version-24593BA9C3E375BF.txt
[9/376] Compiling fiat_p256_adx_sqr.S
[10/376] Compiling a_d2i_fp.cc
[11/376] Compiling fiat_p256_adx_mul.S
[12/376] Compiling fiat_curve25519_adx_square.S
[13/376] Compiling fiat_curve25519_adx_mul.S
[14/383] Compiling p_ed25519_asn1.cc
[15/383] Compiling a_gentm.cc
[16/383] Compiling md5-x86_64-linux.S
[17/383] Compiling CCryptoBoringSSLShims shims.c
[18/383] Compiling md5-x86_64-apple.S
[19/383] Compiling md5-586-linux.S
[20/383] Compiling md5-586-apple.S
[21/383] Compiling p_hkdf.cc
[22/383] Compiling p_rsa.cc
[23/383] Compiling chacha20_poly1305_x86_64-linux.S
[24/383] Compiling chacha20_poly1305_x86_64-apple.S
[25/383] Compiling chacha20_poly1305_armv8-apple.S
[26/383] Compiling chacha20_poly1305_armv8-win.S
[27/383] Compiling chacha-x86_64-apple.S
[28/383] Compiling chacha20_poly1305_armv8-linux.S
[29/383] Compiling chacha-x86-linux.S
[30/383] Compiling chacha-x86_64-linux.S
[31/383] Compiling chacha-armv8-win.S
[32/383] Compiling chacha-x86-apple.S
[33/383] Compiling chacha-armv8-linux.S
[34/383] Compiling chacha-armv8-apple.S
[35/383] Compiling chacha-armv4-linux.S
[36/383] Compiling aes128gcmsiv-x86_64-linux.S
[37/383] Compiling aes128gcmsiv-x86_64-apple.S
[38/383] Compiling x86_64-mont5-apple.S
[39/383] Compiling x86_64-mont5-linux.S
[40/383] Compiling x86_64-mont-linux.S
[41/383] Compiling x86_64-mont-apple.S
[42/383] Compiling x86-mont-linux.S
[43/383] Compiling x86-mont-apple.S
[44/383] Compiling vpaes-x86_64-apple.S
[45/383] Compiling vpaes-x86_64-linux.S
[46/383] Compiling vpaes-x86-linux.S
[47/383] Compiling vpaes-x86-apple.S
[48/383] Compiling vpaes-armv8-win.S
[49/383] Compiling vpaes-armv8-apple.S
[49/383] Compiling vpaes-armv8-linux.S
[51/383] Compiling sha512-x86_64-linux.S
[52/383] Compiling vpaes-armv7-linux.S
[53/383] Compiling sha512-x86_64-apple.S
[54/383] Compiling sha512-armv8-win.S
[55/383] Compiling sha512-armv8-linux.S
[56/383] Compiling sha512-armv4-linux.S
[57/383] Compiling sha512-armv8-apple.S
[58/383] Compiling sha512-586-apple.S
[59/383] Compiling sha512-586-linux.S
[60/383] Compiling sha256-x86_64-linux.S
[61/383] Compiling sha256-armv8-win.S
[62/383] Compiling sha256-x86_64-apple.S
[63/383] Compiling err_data.cc
[64/383] Compiling sha256-armv8-linux.S
[65/383] Compiling sha256-armv8-apple.S
[66/383] Compiling sha256-armv4-linux.S
[67/383] Compiling sha256-586-apple.S
[68/383] Compiling sha256-586-linux.S
[69/383] Compiling sha1-x86_64-linux.S
[70/383] Compiling sha1-x86_64-apple.S
[71/383] Compiling sha1-armv8-win.S
[72/383] Compiling sha1-armv8-linux.S
[73/383] Compiling sha1-armv8-apple.S
[74/383] Compiling sha1-586-linux.S
[75/383] Compiling sha1-586-apple.S
[75/383] Compiling rsaz-avx2-linux.S
[75/383] Compiling sha1-armv4-large-linux.S
[78/383] Compiling rsaz-avx2-apple.S
[79/383] Compiling rdrand-x86_64-linux.S
[80/383] Compiling rdrand-x86_64-apple.S
[81/383] Compiling p256_beeu-armv8-asm-linux.S
[82/383] Compiling p256_beeu-armv8-asm-win.S
[83/383] Compiling p256_beeu-x86_64-asm-linux.S
[84/383] Compiling p256_beeu-x86_64-asm-apple.S
[85/383] Compiling p256-x86_64-asm-linux.S
[86/383] Compiling p256-x86_64-asm-apple.S
[87/383] Compiling p256_beeu-armv8-asm-apple.S
[88/383] Compiling p256-armv8-asm-linux.S
[89/383] Compiling p256-armv8-asm-win.S
[90/383] Compiling ghashv8-armv8-linux.S
[91/383] Compiling ghashv8-armv8-win.S
[92/383] Compiling p256-armv8-asm-apple.S
[93/383] Compiling ghashv8-armv8-apple.S
[94/383] Compiling ghashv8-armv7-linux.S
[95/383] Compiling ghash-x86_64-linux.S
[96/383] Compiling ghash-x86_64-apple.S
[97/383] Compiling ghash-ssse3-x86-linux.S
[98/383] Compiling ghash-x86-linux.S
[99/383] Compiling ghash-ssse3-x86_64-linux.S
[100/383] Compiling ghash-x86-apple.S
[101/383] Compiling ghash-ssse3-x86-apple.S
[102/383] Compiling ghash-ssse3-x86_64-apple.S
[103/383] Compiling ghash-neon-armv8-win.S
[104/383] Compiling ghash-neon-armv8-linux.S
[105/383] Compiling ghash-armv4-linux.S
[106/383] Compiling co-586-linux.S
[107/383] Compiling ghash-neon-armv8-apple.S
[108/383] Compiling bn-armv8-win.S
[109/383] Compiling bsaes-armv7-linux.S
[109/383] Compiling co-586-apple.S
[111/383] Compiling bn-armv8-linux.S
[112/383] Compiling bn-armv8-apple.S
[113/383] Compiling bn-586-apple.S
[114/383] Compiling bn-586-linux.S
[115/383] Compiling armv8-mont-apple.S
[116/383] Compiling armv8-mont-linux.S
[117/383] Compiling armv8-mont-win.S
[118/383] Compiling aesv8-gcm-armv8-linux.S
[119/383] Compiling armv4-mont-linux.S
[120/383] Compiling aesv8-gcm-armv8-win.S
[121/383] Compiling aesv8-armv8-linux.S
[122/383] Compiling aesv8-armv8-win.S
[123/383] Compiling aesv8-gcm-armv8-apple.S
[124/383] Compiling aesv8-armv8-apple.S
[125/383] Compiling aesni-x86-linux.S
[126/383] Compiling aesv8-armv7-linux.S
[127/383] Compiling aesni-x86_64-apple.S
[128/383] Compiling aesni-x86_64-linux.S
[129/383] Compiling aesni-gcm-x86_64-apple.S
[130/383] Compiling aesni-x86-apple.S
[131/383] Compiling aes-gcm-avx512-x86_64-apple.S
[132/383] Compiling aesni-gcm-x86_64-linux.S
[133/383] Compiling aes-gcm-avx2-x86_64-linux.S
[133/383] Compiling aes-gcm-avx512-x86_64-linux.S
[135/383] Compiling aes-gcm-avx2-x86_64-apple.S
[136/383] Compiling xwing.cc
[137/383] Compiling x_req.cc
[138/383] Compiling x_x509a.cc
[139/383] Compiling x_sig.cc
[139/383] Compiling x_val.cc
[141/383] Compiling x_spki.cc
[142/383] Compiling x_x509.cc
[143/383] Compiling x_crl.cc
[144/383] Compiling x_all.cc
[145/383] Compiling x_exten.cc
[146/383] Compiling x_pubkey.cc
[147/383] Compiling x_attrib.cc
[148/383] Compiling x_name.cc
[149/383] Compiling x_algor.cc
[150/383] Compiling x509name.cc
[151/383] Compiling x509spki.cc
[152/383] Compiling x509rset.cc
[153/383] Compiling x509cset.cc
[154/383] Compiling x509_vfy.cc
[155/383] Compiling x509_vpm.cc
[156/383] Compiling x509_v3.cc
[157/383] Compiling x509_txt.cc
[158/383] Compiling x509_trs.cc
[159/383] Compiling x509_set.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[161/383] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:13: error: cannot find 'msync' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:57: error: cannot find 'MS_SYNC' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:9: error: cannot find 'msync' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:26: error: cannot find 'MS_SYNC' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:13: error: cannot find 'msync' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:68: error: cannot find 'MS_SYNC' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:9: error: cannot find 'msync' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:49: error: cannot find 'MS_SYNC' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:9: error: cannot find 'msync' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:58: error: cannot find 'MS_SYNC' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:9: error: cannot find 'msync' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
340 |     }
341 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:49: error: cannot find 'MS_SYNC' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
340 |     }
341 | }
[162/383] Compiling FileIO system.swift
[162/383] Compiling x509_obj.cc
[164/383] Compiling FileIO StreamedFile.swift
[165/383] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:67:23: error: cannot find 'mmap' in scope
 65 |         let fullSize = fdAndSizes.reduce(0, { $0 + $1.size })
 66 |
 67 |         let basePtr = mmap(
    |                       `- error: cannot find 'mmap' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:70:13: error: cannot find 'PROT_NONE' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
    |             `- error: cannot find 'PROT_NONE' in scope
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
 72 |             -1,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:13: error: cannot find 'MAP_PRIVATE' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |             `- error: cannot find 'MAP_PRIVATE' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:27: error: cannot find 'MAP_ANONYMOUS' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |                           `- error: cannot find 'MAP_ANONYMOUS' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:68:13: error: 'nil' requires a contextual type
 66 |
 67 |         let basePtr = mmap(
 68 |             nil,
    |             `- error: 'nil' requires a contextual type
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:69:13: error: generic parameter 'U' could not be inferred
 67 |         let basePtr = mmap(
 68 |             nil,
 69 |             numericCast(fullSize),
    |             `- error: generic parameter 'U' could not be inferred
 70 |             PROT_NONE,
 71 |             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:81:27: error: cannot find 'PROT_READ' in scope
 79 |         }
 80 |
 81 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 82 |         if isWritable { prot |= PROT_WRITE }
 83 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:82:33: error: cannot find 'PROT_WRITE' in scope
 80 |
 81 |         var prot: Int32 = PROT_READ
 82 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 83 |
 84 |         var offset = 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:29: error: cannot find 'mmap' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                             `- error: cannot find 'mmap' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:51: error: cannot find 'MAP_FIXED' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                   `- error: cannot find 'MAP_FIXED' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:63: error: cannot find 'MAP_PRIVATE' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                               `- error: cannot find 'MAP_PRIVATE' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
[166/383] Compiling FileIO FileIO.swift
[167/383] Compiling FileIO ConcatenatedStreamedFile.swift
[168/383] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:52:27: error: cannot find 'PROT_READ' in scope
 50 |         }
 51 |
 52 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:53:33: error: cannot find 'PROT_WRITE' in scope
 51 |
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
 55 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:54:19: error: cannot find 'mmap' in scope
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                   `- error: cannot find 'mmap' in scope
 55 |         guard let ptr,
 56 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:54:50: error: cannot find 'MAP_SHARED' in scope
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                                                  `- error: cannot find 'MAP_SHARED' in scope
 55 |         guard let ptr,
 56 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:54:24: error: 'nil' requires a contextual type
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                        `- error: 'nil' requires a contextual type
 55 |         guard let ptr,
 56 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:13: error: cannot find 'msync' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:57: error: cannot find 'MS_SYNC' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:9: error: cannot find 'msync' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:26: error: cannot find 'MS_SYNC' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:100:9: error: cannot find 'munmap' in scope
 98 |
 99 |     internal func unmap() {
100 |         munmap(ptr, size)
    |         `- error: cannot find 'munmap' in scope
101 |     }
102 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:115:27: error: cannot find 'PROT_READ' in scope
113 |         unmap()
114 |
115 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:116:33: error: cannot find 'PROT_WRITE' in scope
114 |
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
118 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:117:19: error: cannot find 'mmap' in scope
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                   `- error: cannot find 'mmap' in scope
118 |         guard let ptr,
119 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:117:44: error: cannot find 'MAP_SHARED' in scope
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                                            `- error: cannot find 'MAP_SHARED' in scope
118 |         guard let ptr,
119 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:117:24: error: 'nil' requires a contextual type
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                        `- error: 'nil' requires a contextual type
118 |         guard let ptr,
119 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:13: error: cannot find 'msync' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:68: error: cannot find 'MS_SYNC' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:9: error: cannot find 'msync' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:49: error: cannot find 'MS_SYNC' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:9: error: cannot find 'msync' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:58: error: cannot find 'MS_SYNC' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:9: error: cannot find 'msync' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
340 |     }
341 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:49: error: cannot find 'MS_SYNC' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
340 |     }
341 | }
[168/383] Compiling x509_def.cc
[168/383] Compiling x509_cmp.cc
[168/383] Compiling x509_d2.cc
[168/383] Compiling x509_att.cc
[168/383] Compiling x509_req.cc
[168/383] Compiling x509_ext.cc
[168/383] Compiling x509_lu.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'machokit': /host/spi-builder-workspace/.build/checkouts/MachOKit/Package.swift:77: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
75 | }
76 |
77 | 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
78 |     public static var allCases: [Self] {
79 |         [
[0/1] Planning build
Building for debugging...
[0/216] Compiling x509_d2.cc
[1/216] Write swift-version-24593BA9C3E375BF.txt
[2/216] Compiling x509_req.cc
[3/216] Compiling x509_def.cc
[4/216] Compiling x509_cmp.cc
[5/216] Compiling x509_att.cc
[6/216] Compiling x509.cc
[7/216] Compiling x509_ext.cc
[8/220] Compiling x509_lu.cc
[10/223] Compiling FileIO system.swift
[11/223] Compiling FileIO ConcatenatedStreamedFile.swift
[11/223] Compiling v3_utl.cc
[13/223] Compiling FileIO FileIO.swift
[14/223] Compiling FileIO ConcatenatedMemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:67:23: error: cannot find 'mmap' in scope
 65 |         let fullSize = fdAndSizes.reduce(0, { $0 + $1.size })
 66 |
 67 |         let basePtr = mmap(
    |                       `- error: cannot find 'mmap' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:70:13: error: cannot find 'PROT_NONE' in scope
 68 |             nil,
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
    |             `- error: cannot find 'PROT_NONE' in scope
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
 72 |             -1,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:13: error: cannot find 'MAP_PRIVATE' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |             `- error: cannot find 'MAP_PRIVATE' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:71:27: error: cannot find 'MAP_ANONYMOUS' in scope
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
 71 |             MAP_PRIVATE | MAP_ANONYMOUS,
    |                           `- error: cannot find 'MAP_ANONYMOUS' in scope
 72 |             -1,
 73 |             0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:68:13: error: 'nil' requires a contextual type
 66 |
 67 |         let basePtr = mmap(
 68 |             nil,
    |             `- error: 'nil' requires a contextual type
 69 |             numericCast(fullSize),
 70 |             PROT_NONE,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:69:13: error: generic parameter 'U' could not be inferred
 67 |         let basePtr = mmap(
 68 |             nil,
 69 |             numericCast(fullSize),
    |             `- error: generic parameter 'U' could not be inferred
 70 |             PROT_NONE,
 71 |             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:81:27: error: cannot find 'PROT_READ' in scope
 79 |         }
 80 |
 81 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 82 |         if isWritable { prot |= PROT_WRITE }
 83 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:82:33: error: cannot find 'PROT_WRITE' in scope
 80 |
 81 |         var prot: Int32 = PROT_READ
 82 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 83 |
 84 |         var offset = 0
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:29: error: cannot find 'mmap' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                             `- error: cannot find 'mmap' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:51: error: cannot find 'MAP_FIXED' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                   `- error: cannot find 'MAP_FIXED' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:89:63: error: cannot find 'MAP_PRIVATE' in scope
 87 |             let size: Int = numericCast(size)
 88 |             let ptr = basePtr.advanced(by: offset)
 89 |             let mappedPtr = mmap(ptr, size, prot, MAP_FIXED | MAP_PRIVATE, fd, 0)
    |                                                               `- error: cannot find 'MAP_PRIVATE' in scope
 90 |             guard ptr == mappedPtr,
 91 |                   _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/223] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:13: error: cannot find 'msync' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:155:57: error: cannot find 'MS_SYNC' in scope
153 |         data.withUnsafeBytes { buffer in
154 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
155 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
156 |         }
157 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:9: error: cannot find 'msync' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/ConcatenatedMemoryMappedFile.swift:202:49: error: cannot find 'MS_SYNC' in scope
200 |             .assumingMemoryBound(to: T.self)
201 |             .pointee = value
202 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
203 |     }
204 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:13: error: cannot find 'msync' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:57: error: cannot find 'MS_SYNC' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:9: error: cannot find 'msync' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:26: error: cannot find 'MS_SYNC' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:13: error: cannot find 'msync' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:68: error: cannot find 'MS_SYNC' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:9: error: cannot find 'msync' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:49: error: cannot find 'MS_SYNC' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:9: error: cannot find 'msync' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:58: error: cannot find 'MS_SYNC' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:9: error: cannot find 'msync' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
340 |     }
341 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:49: error: cannot find 'MS_SYNC' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
340 |     }
341 | }
[15/223] Compiling v3_purp.cc
[17/223] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:52:27: error: cannot find 'PROT_READ' in scope
 50 |         }
 51 |
 52 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:53:33: error: cannot find 'PROT_WRITE' in scope
 51 |
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
 55 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:54:19: error: cannot find 'mmap' in scope
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                   `- error: cannot find 'mmap' in scope
 55 |         guard let ptr,
 56 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:54:50: error: cannot find 'MAP_SHARED' in scope
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                                                  `- error: cannot find 'MAP_SHARED' in scope
 55 |         guard let ptr,
 56 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:54:24: error: 'nil' requires a contextual type
 52 |         var prot: Int32 = PROT_READ
 53 |         if isWritable { prot |= PROT_WRITE }
 54 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                        `- error: 'nil' requires a contextual type
 55 |         guard let ptr,
 56 |               _fastPath(ptr != MAP_FAILED) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:13: error: cannot find 'msync' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:90:57: error: cannot find 'MS_SYNC' in scope
 88 |         data.withUnsafeBytes { buffer in
 89 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
 90 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
 91 |         }
 92 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:9: error: cannot find 'msync' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:96:26: error: cannot find 'MS_SYNC' in scope
 94 |     @inlinable @inline(__always)
 95 |     public func sync() {
 96 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:100:9: error: cannot find 'munmap' in scope
 98 |
 99 |     internal func unmap() {
100 |         munmap(ptr, size)
    |         `- error: cannot find 'munmap' in scope
101 |     }
102 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:115:27: error: cannot find 'PROT_READ' in scope
113 |         unmap()
114 |
115 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:116:33: error: cannot find 'PROT_WRITE' in scope
114 |
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
118 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:117:19: error: cannot find 'mmap' in scope
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                   `- error: cannot find 'mmap' in scope
118 |         guard let ptr,
119 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:117:44: error: cannot find 'MAP_SHARED' in scope
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                                            `- error: cannot find 'MAP_SHARED' in scope
118 |         guard let ptr,
119 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:117:24: error: 'nil' requires a contextual type
115 |         var prot: Int32 = PROT_READ
116 |         if isWritable { prot |= PROT_WRITE }
117 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                        `- error: 'nil' requires a contextual type
118 |         guard let ptr,
119 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:13: error: cannot find 'msync' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:143:68: error: cannot find 'MS_SYNC' in scope
141 |         data.withUnsafeBytes { buffer in
142 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
143 |             msync(ptr.advanced(by: offset), data.count + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
144 |         }
145 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:9: error: cannot find 'msync' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:198:49: error: cannot find 'MS_SYNC' in scope
196 |             .assumingMemoryBound(to: T.self)
197 |             .pointee = value
198 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
199 |     }
200 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:9: error: cannot find 'msync' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:275:58: error: cannot find 'MS_SYNC' in scope
273 |     @inlinable @inline(__always)
274 |     public func sync() {
275 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
276 |     }
277 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:9: error: cannot find 'msync' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
340 |     }
341 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:339:49: error: cannot find 'MS_SYNC' in scope
337 |             .assumingMemoryBound(to: T.self)
338 |             .pointee = value
339 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
340 |     }
341 | }
[18/223] Compiling FileIO StreamedFile.swift
[18/223] Compiling v3_ncons.cc
[18/223] Compiling v3_pcons.cc
[18/223] Compiling v3_lib.cc
[18/223] Compiling v3_ocsp.cc
[18/223] Compiling v3_pmaps.cc
[18/223] Compiling v3_prn.cc
[18/223] Compiling v3_skey.cc
BUILD FAILURE 6.1 wasm