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 swift-edf, reference main (9a0616), with Swift 6.1 for Wasm on 30 May 2025 10:47:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-edf.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-edf
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9a0616d Merge pull request #2 from p-x9/feature/fileio-0.3.0
Cloned https://github.com/p-x9/swift-edf.git
Revision (git rev-parse @):
9a0616d27762028a8d4005545f8ec3277ed9c5ef
SUCCESS checkout https://github.com/p-x9/swift-edf.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/p-x9/swift-edf.git
https://github.com/p-x9/swift-edf.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-fileio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/swift-fileio.git"
    }
  ],
  "manifest_display_name" : "swift-edf",
  "name" : "swift-edf",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "EDF",
      "targets" : [
        "EDF"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "EDFTests",
      "module_type" : "SwiftTarget",
      "name" : "EDFTests",
      "path" : "Tests/EDFTests",
      "sources" : [
        "EDFTests.swift"
      ],
      "target_dependencies" : [
        "EDF"
      ],
      "type" : "test"
    },
    {
      "c99name" : "EDFC",
      "module_type" : "ClangTarget",
      "name" : "EDFC",
      "path" : "Sources/EDFC",
      "product_memberships" : [
        "EDF"
      ],
      "sources" : [
        "dummy.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "EDF",
      "module_type" : "SwiftTarget",
      "name" : "EDF",
      "path" : "Sources/EDF",
      "product_dependencies" : [
        "FileIO"
      ],
      "product_memberships" : [
        "EDF"
      ],
      "sources" : [
        "EDF.swift",
        "EDFFile+Internal.swift",
        "EDFFile.swift",
        "Extension/FileIOProtocol+.swift",
        "Extension/String+.swift",
        "Model/EDFAnnotation.swift",
        "Model/EDFHeader.swift",
        "Model/EDFSignalInfo.swift",
        "Protocol/LayoutWrapper.swift",
        "Util/DataChunks.swift",
        "Util/DataSequence.swift"
      ],
      "target_dependencies" : [
        "EDFC"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/p-x9/swift-fileio.git
[1/156] Fetching swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.23s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.9.0 (0.86s)
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
Building for debugging...
[0/4] Write sources
[2/4] Compiling EDFC dummy.c
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/8] Compiling FileIO StreamedFile.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] 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 | }
[7/8] Compiling FileIO FileIO.swift
[8/8] 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 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] 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 | }
[3/5] Compiling FileIO FileIO.swift
[4/5] 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 | }
[5/5] Compiling FileIO StreamedFile.swift
BUILD FAILURE 6.1 wasm