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 0.7.0 (29325b), with Swift 6.1 for Wasm on 5 Jul 2025 18:39:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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: 0.7.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/p-x9/swift-anti-fishhook
 * tag               0.7.0      -> FETCH_HEAD
HEAD is now at 29325b9 Merge pull request #24 from p-x9/feature/handle-reexported-symbols
Cloned https://github.com/p-x9/swift-anti-fishhook.git
Revision (git rev-parse @):
29325b970e6a9da0d889890810e41d7913214c6b
SUCCESS checkout https://github.com/p-x9/swift-anti-fishhook.git at 0.7.0
========================================
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-2":/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/201] Fetching swift-fishhook
[126/5491] Fetching swift-fishhook, machokit
Fetched https://github.com/p-x9/swift-fishhook.git from cache (0.21s)
[582/5290] Fetching machokit
Fetched https://github.com/p-x9/MachOKit.git from cache (0.35s)
Computing version for https://github.com/p-x9/swift-fishhook.git
Computed https://github.com/p-x9/swift-fishhook.git at 0.6.0 (0.85s)
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.35.1 (0.59s)
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/apple/swift-crypto.git
[1/163] Fetching swift-fileio
[164/15842] Fetching swift-fileio, swift-crypto
Fetched https://github.com/p-x9/swift-fileio.git from cache (1.88s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.94s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.9.0 (2.51s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (3.63s)
Fetching https://github.com/apple/swift-asn1.git
[1/1616] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.29s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (1.25s)
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.9.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.35.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
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
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/368] Write sources
[6/368] Compiling MachOKitC mach-o-linux.c
[7/368] Compiling fiat_p256_adx_sqr.S
[8/368] Compiling fiat_p256_adx_mul.S
[9/368] Write swift-version-24593BA9C3E375BF.txt
[10/368] Compiling fiat_curve25519_adx_square.S
[11/368] Compiling fiat_curve25519_adx_mul.S
[12/368] Compiling md5-x86_64-linux.S
[13/372] Compiling md5-x86_64-apple.S
[14/372] Compiling a_d2i_fp.cc
[15/372] Compiling md5-586-linux.S
[16/372] Compiling md5-586-apple.S
[17/372] Compiling CCryptoBoringSSLShims shims.c
[18/372] Compiling chacha20_poly1305_x86_64-linux.S
[19/372] Compiling chacha20_poly1305_armv8-win.S
[20/372] Compiling chacha20_poly1305_x86_64-apple.S
[21/372] Compiling chacha20_poly1305_armv8-linux.S
[22/372] Compiling chacha20_poly1305_armv8-apple.S
[23/372] Compiling a_dup.cc
[24/372] Compiling chacha-x86_64-linux.S
[25/372] Compiling chacha-x86_64-apple.S
[26/372] Compiling chacha-x86-linux.S
[27/372] Compiling chacha-x86-apple.S
[28/372] Compiling chacha-armv8-win.S
[29/372] Compiling chacha-armv8-linux.S
[30/372] Compiling chacha-armv8-apple.S
[31/372] Compiling chacha-armv4-linux.S
[32/372] Compiling a_bitstr.cc
[33/372] Compiling err_data.cc
[34/372] Compiling a_gentm.cc
[35/372] Compiling a_bool.cc
[36/372] Compiling aes128gcmsiv-x86_64-linux.S
[37/372] Compiling aes128gcmsiv-x86_64-apple.S
[38/372] Compiling x86_64-mont5-linux.S
[39/372] Compiling x86_64-mont-linux.S
[40/372] Compiling x86_64-mont5-apple.S
[41/372] Compiling x86-mont-linux.S
[42/372] Compiling x86_64-mont-apple.S
[43/372] Compiling x86-mont-apple.S
[44/372] Compiling vpaes-x86_64-linux.S
[45/372] Compiling vpaes-armv8-win.S
[46/372] Compiling vpaes-x86_64-apple.S
[47/372] Compiling vpaes-x86-linux.S
[48/372] Compiling vpaes-armv8-apple.S
[49/372] Compiling vpaes-armv7-linux.S
[50/372] Compiling vpaes-x86-apple.S
[51/372] Compiling vpaes-armv8-linux.S
[52/372] Compiling sha512-x86_64-linux.S
[53/372] Compiling sha512-armv8-win.S
[54/372] Compiling sha512-x86_64-apple.S
[55/372] Compiling sha512-armv8-linux.S
[56/372] Compiling sha512-armv4-linux.S
[57/372] Compiling sha512-586-apple.S
[58/372] Compiling sha256-x86_64-linux.S
[58/372] Compiling sha512-586-linux.S
[60/372] Compiling sha512-armv8-apple.S
[61/372] Compiling sha256-armv8-win.S
[62/372] Compiling sha256-x86_64-apple.S
[63/372] Compiling sha256-armv8-linux.S
[64/372] Compiling sha256-armv4-linux.S
[65/372] Compiling sha256-586-apple.S
[65/372] Compiling sha256-armv8-apple.S
[67/372] Compiling sha256-586-linux.S
[67/372] Compiling sha1-x86_64-apple.S
[69/372] Compiling sha1-x86_64-linux.S
[70/372] Compiling sha1-armv8-win.S
[71/372] Compiling sha1-armv8-linux.S
[72/372] Compiling sha1-586-linux.S
[73/372] Compiling sha1-armv4-large-linux.S
[74/372] Compiling sha1-armv8-apple.S
[75/372] Compiling rsaz-avx2-apple.S
[76/372] Compiling rsaz-avx2-linux.S
[77/372] Compiling sha1-586-apple.S
[78/372] Compiling rdrand-x86_64-linux.S
[79/372] Compiling rdrand-x86_64-apple.S
[80/372] Compiling p256_beeu-x86_64-asm-apple.S
[81/372] Compiling p256_beeu-x86_64-asm-linux.S
[82/372] Compiling p256_beeu-armv8-asm-win.S
[83/372] Compiling p256_beeu-armv8-asm-linux.S
[84/372] Compiling p256_beeu-armv8-asm-apple.S
[85/372] Compiling p256-x86_64-asm-linux.S
[86/372] Compiling p256-x86_64-asm-apple.S
[87/372] Compiling p256-armv8-asm-win.S
[88/372] Compiling p256-armv8-asm-linux.S
[89/372] Compiling ghashv8-armv8-apple.S
[90/372] Compiling p256-armv8-asm-apple.S
[91/372] Compiling ghashv8-armv8-win.S
[92/372] Compiling ghash-x86_64-linux.S
[93/372] Compiling ghashv8-armv8-linux.S
[94/372] Compiling ghashv8-armv7-linux.S
[95/372] Compiling ghash-x86_64-apple.S
[96/372] Compiling ghash-x86-linux.S
[97/372] Compiling ghash-x86-apple.S
[98/372] Compiling ghash-ssse3-x86_64-linux.S
[99/372] Compiling ghash-ssse3-x86-linux.S
[100/372] Compiling ghash-neon-armv8-linux.S
[101/372] Compiling ghash-neon-armv8-win.S
[102/372] Compiling ghash-armv4-linux.S
[103/372] Compiling ghash-ssse3-x86_64-apple.S
[104/372] Compiling ghash-ssse3-x86-apple.S
[105/372] Compiling ghash-neon-armv8-apple.S
[106/372] Compiling co-586-linux.S
[107/372] Compiling bsaes-armv7-linux.S
[108/372] Compiling bn-armv8-win.S
[109/372] Compiling co-586-apple.S
[109/372] Compiling bn-armv8-apple.S
[111/372] Compiling bn-armv8-linux.S
[112/372] Compiling armv8-mont-linux.S
[113/372] Compiling armv8-mont-win.S
[114/372] Compiling bn-586-apple.S
[115/372] Compiling armv8-mont-apple.S
[116/372] Compiling bn-586-linux.S
[117/372] Compiling armv4-mont-linux.S
[118/372] Compiling aesv8-gcm-armv8-win.S
[119/372] Compiling aesv8-gcm-armv8-linux.S
[120/372] Compiling aesv8-armv8-win.S
[121/372] Compiling aesv8-armv8-apple.S
[121/372] Compiling aesv8-armv8-linux.S
[123/372] Compiling aesv8-armv7-linux.S
[124/372] Compiling aesni-x86_64-apple.S
[125/372] Compiling aesv8-gcm-armv8-apple.S
[126/372] Compiling aesni-x86_64-linux.S
[127/372] Compiling aesni-gcm-x86_64-linux.S
[128/372] Compiling aesni-gcm-x86_64-apple.S
[129/372] Compiling aesni-x86-linux.S
[129/372] Compiling aesni-x86-apple.S
[129/372] Compiling aes-gcm-avx10-x86_64-apple.S
[132/372] Compiling aes-gcm-avx10-x86_64-linux.S
[133/372] Compiling x_x509a.cc
[134/372] Compiling x_spki.cc
[135/372] Compiling x_x509.cc
[136/372] Compiling x_sig.cc
[137/372] Compiling x_req.cc
[138/372] Compiling x_pubkey.cc
[139/372] Compiling x_val.cc
[140/372] Compiling x_name.cc
[141/372] Compiling x_all.cc
[142/372] Compiling x_algor.cc
[142/372] Compiling x_attrib.cc
[144/372] Compiling x_exten.cc
[145/372] Compiling x_crl.cc
[146/372] Compiling x509spki.cc
[147/372] Compiling x509rset.cc
[148/372] Compiling x509_vpm.cc
[149/372] Compiling x509cset.cc
[150/372] Compiling x509_vfy.cc
[151/372] Compiling x509name.cc
[152/372] Compiling x509_txt.cc
[153/372] Compiling x509_v3.cc
[154/372] Compiling x509_trs.cc
[155/372] Compiling x509_lu.cc
[156/372] Compiling x509_set.cc
[157/372] Compiling x509_obj.cc
[158/372] Compiling x509_def.cc
[159/372] Compiling x509_ext.cc
[160/372] Compiling x509_d2.cc
[161/372] Compiling x509_req.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[163/372] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:13: error: cannot find 'msync' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:57: error: cannot find 'MS_SYNC' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:9: error: cannot find 'msync' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:26: error: cannot find 'MS_SYNC' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.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 + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:156:68: 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 + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:9: error: cannot find 'msync' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:49: error: cannot find 'MS_SYNC' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:9: error: cannot find 'msync' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:58: error: cannot find 'MS_SYNC' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:9: error: cannot find 'msync' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
337 |     }
338 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:49: error: cannot find 'MS_SYNC' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
337 |     }
338 | }
[164/372] Compiling FileIO FileIO.swift
[164/372] Compiling x509.cc
[166/372] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:69:27: error: cannot find 'PROT_READ' in scope
 67 |         }
 68 |
 69 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:70:33: error: cannot find 'PROT_WRITE' in scope
 68 |
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
 72 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:71:19: error: cannot find 'mmap' in scope
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                   `- error: cannot find 'mmap' in scope
 72 |         guard let ptr,
 73 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:71:50: error: cannot find 'MAP_SHARED' in scope
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                                                  `- error: cannot find 'MAP_SHARED' in scope
 72 |         guard let ptr,
 73 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:71:24: error: 'nil' requires a contextual type
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                        `- error: 'nil' requires a contextual type
 72 |         guard let ptr,
 73 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:13: error: cannot find 'msync' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:57: error: cannot find 'MS_SYNC' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:9: error: cannot find 'msync' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:26: error: cannot find 'MS_SYNC' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:114:9: error: cannot find 'munmap' in scope
112 |
113 |     private func unmap() {
114 |         munmap(ptr, size)
    |         `- error: cannot find 'munmap' in scope
115 |     }
116 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:129:27: error: cannot find 'PROT_READ' in scope
127 |         unmap()
128 |
129 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:130:33: error: cannot find 'PROT_WRITE' in scope
128 |
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
132 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:131:19: error: cannot find 'mmap' in scope
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                   `- error: cannot find 'mmap' in scope
132 |         guard let ptr,
133 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:131:44: error: cannot find 'MAP_SHARED' in scope
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                                            `- error: cannot find 'MAP_SHARED' in scope
132 |         guard let ptr,
133 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:131:24: error: 'nil' requires a contextual type
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                        `- error: 'nil' requires a contextual type
132 |         guard let ptr,
133 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.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 + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:156:68: 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 + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:9: error: cannot find 'msync' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:49: error: cannot find 'MS_SYNC' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:9: error: cannot find 'msync' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:58: error: cannot find 'MS_SYNC' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:9: error: cannot find 'msync' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
337 |     }
338 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:49: error: cannot find 'MS_SYNC' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
337 |     }
338 | }
[167/372] Compiling FileIO StreamedFile.swift
[167/372] Compiling v3_pmaps.cc
[167/372] Compiling v3_skey.cc
[167/372] Compiling x509_att.cc
[167/372] Compiling v3_prn.cc
[167/372] Compiling x509_cmp.cc
[167/372] Compiling v3_purp.cc
[167/372] Compiling v3_utl.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/206] Compiling x509_att.cc
[1/206] Compiling v3_skey.cc
[2/206] Compiling v3_purp.cc
[3/206] Compiling v3_utl.cc
[4/206] Compiling x509_cmp.cc
[5/206] Compiling v3_pcons.cc
[6/206] Compiling v3_prn.cc
[7/206] Compiling v3_pmaps.cc
[8/206] Write swift-version-24593BA9C3E375BF.txt
[9/206] Compiling v3_ocsp.cc
[10/206] Compiling v3_lib.cc
[11/206] Compiling v3_ncons.cc
[12/206] Compiling v3_int.cc
[13/206] Compiling v3_genn.cc
[14/206] Compiling v3_ia5.cc
[15/206] Compiling v3_info.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/210] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:13: error: cannot find 'msync' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:57: error: cannot find 'MS_SYNC' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:9: error: cannot find 'msync' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:26: error: cannot find 'MS_SYNC' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.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 + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:156:68: 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 + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:9: error: cannot find 'msync' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:49: error: cannot find 'MS_SYNC' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:9: error: cannot find 'msync' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:58: error: cannot find 'MS_SYNC' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:9: error: cannot find 'msync' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
337 |     }
338 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:49: error: cannot find 'MS_SYNC' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
337 |     }
338 | }
[18/210] Compiling FileIO FileIO.swift
[19/210] Compiling FileIO StreamedFile.swift
[20/210] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:69:27: error: cannot find 'PROT_READ' in scope
 67 |         }
 68 |
 69 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:70:33: error: cannot find 'PROT_WRITE' in scope
 68 |
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
 72 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:71:19: error: cannot find 'mmap' in scope
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                   `- error: cannot find 'mmap' in scope
 72 |         guard let ptr,
 73 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:71:50: error: cannot find 'MAP_SHARED' in scope
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                                                  `- error: cannot find 'MAP_SHARED' in scope
 72 |         guard let ptr,
 73 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:71:24: error: 'nil' requires a contextual type
 69 |         var prot: Int32 = PROT_READ
 70 |         if isWritable { prot |= PROT_WRITE }
 71 |         let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
    |                        `- error: 'nil' requires a contextual type
 72 |         guard let ptr,
 73 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:13: error: cannot find 'msync' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:104:57: error: cannot find 'MS_SYNC' in scope
102 |         data.withUnsafeBytes { buffer in
103 |             memcpy(ptr.advanced(by: offset), buffer.baseAddress!, data.count)
104 |             msync(ptr.advanced(by: offset), data.count, MS_SYNC)
    |                                                         `- error: cannot find 'MS_SYNC' in scope
105 |         }
106 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:9: error: cannot find 'msync' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:110:26: error: cannot find 'MS_SYNC' in scope
108 |     @inlinable @inline(__always)
109 |     public func sync() {
110 |         msync(ptr, size, MS_SYNC)
    |                          `- error: cannot find 'MS_SYNC' in scope
111 |     }
112 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:114:9: error: cannot find 'munmap' in scope
112 |
113 |     private func unmap() {
114 |         munmap(ptr, size)
    |         `- error: cannot find 'munmap' in scope
115 |     }
116 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:129:27: error: cannot find 'PROT_READ' in scope
127 |         unmap()
128 |
129 |         var prot: Int32 = PROT_READ
    |                           `- error: cannot find 'PROT_READ' in scope
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:130:33: error: cannot find 'PROT_WRITE' in scope
128 |
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
    |                                 `- error: cannot find 'PROT_WRITE' in scope
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
132 |         guard let ptr,
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:131:19: error: cannot find 'mmap' in scope
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                   `- error: cannot find 'mmap' in scope
132 |         guard let ptr,
133 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:131:44: error: cannot find 'MAP_SHARED' in scope
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                                            `- error: cannot find 'MAP_SHARED' in scope
132 |         guard let ptr,
133 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:131:24: error: 'nil' requires a contextual type
129 |         var prot: Int32 = PROT_READ
130 |         if isWritable { prot |= PROT_WRITE }
131 |         let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
    |                        `- error: 'nil' requires a contextual type
132 |         guard let ptr,
133 |               ptr != MAP_FAILED else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.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 + tailSize, MS_SYNC)
    |             `- error: cannot find 'msync' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:156:68: 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 + tailSize, MS_SYNC)
    |                                                                    `- error: cannot find 'MS_SYNC' in scope
157 |         }
158 |     }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:9: error: cannot find 'msync' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:209:49: error: cannot find 'MS_SYNC' in scope
207 |             .assumingMemoryBound(to: T.self)
208 |             .pointee = value
209 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
210 |     }
211 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:9: error: cannot find 'msync' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:281:58: error: cannot find 'MS_SYNC' in scope
279 |     @inlinable @inline(__always)
280 |     public func sync() {
281 |         msync(parent.ptr.advanced(by: baseOffset), size, MS_SYNC)
    |                                                          `- error: cannot find 'MS_SYNC' in scope
282 |     }
283 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:9: error: cannot find 'msync' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |         `- error: cannot find 'msync' in scope
337 |     }
338 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:336:49: error: cannot find 'MS_SYNC' in scope
334 |             .assumingMemoryBound(to: T.self)
335 |             .pointee = value
336 |         msync(ptr.advanced(by: offset), length, MS_SYNC)
    |                                                 `- error: cannot find 'MS_SYNC' in scope
337 |     }
338 | }
[20/210] Compiling v3_conf.cc
[20/210] Compiling v3_extku.cc
[20/210] Compiling v3_crld.cc
[20/210] Compiling v3_enum.cc
[20/210] Compiling v3_bitst.cc
[20/210] Compiling v3_cpols.cc
[20/210] Compiling v3_bcons.cc
BUILD FAILURE 6.1 wasm