The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-fileio-extra, reference 0.4.0 (8e7d47), with Swift 6.2 for Wasm on 29 Sep 2026 14:18:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-fileio-extra.git
Reference: 0.4.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-fileio-extra
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 8e7d474 Merge pull request #4 from p-x9/ci/multi-platform-build
Cloned https://github.com/p-x9/swift-fileio-extra.git
Revision (git rev-parse @):
8e7d47436bd3b2d73ddd4e0be0c689b3c8aa1b87
SUCCESS checkout https://github.com/p-x9/swift-fileio-extra.git at 0.4.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/p-x9/swift-fileio-extra.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/p-x9/swift-binary-parse-support.git
[1/690] Fetching swift-fileio
[691/946] Fetching swift-fileio, swift-binary-parse-support
Fetched https://github.com/p-x9/swift-binary-parse-support.git from cache (0.88s)
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.88s)
Computing version for https://github.com/p-x9/swift-binary-parse-support.git
Computed https://github.com/p-x9/swift-binary-parse-support.git at 0.3.0 (1.03s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.15.1 (0.13s)
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.15.1
Creating working copy for https://github.com/p-x9/swift-binary-parse-support.git
Working copy of https://github.com/p-x9/swift-binary-parse-support.git resolved at 0.3.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/24] Compiling BinaryParseSupport MemorySequence.swift
[6/25] Compiling BinaryParseSupport FileHandle+.swift
[7/25] Compiling BinaryParseSupport String+.swift
[8/25] Compiling BinaryParseSupport BinaryParseSupport.swift
[9/25] Compiling BinaryParseSupport Data+.swift
[10/25] Compiling BinaryParseSupport LayoutWrapper.swift
[11/25] Compiling BinaryParseSupport StringTable.swift
[12/25] Compiling BinaryParseSupport DataSequence.swift
[13/25] Compiling BinaryParseSupport UnsafePointer+.swift
[14/25] Compiling BinaryParseSupport Endian.swift
[15/25] Compiling BinaryParseSupport StringTableEntry.swift
[16/25] Compiling BinaryParseSupport BitFlags.swift
[17/25] Emitting module BinaryParseSupport
[18/25] Compiling FileIO StreamedFile.swift
[19/25] Compiling FileIO ConcatenatedStreamedFile.swift
[20/25] Compiling FileIO FileIO.swift
[21/25] Compiling FileIO MemoryMappedFile.swift
[22/25] Compiling FileIO system.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:151:29: error: cannot find 'PROT_READ' in scope
149 |     return view
150 | #else
151 |     var protection: Int32 = PROT_READ
    |                             `- error: cannot find 'PROT_READ' in scope
152 |     if isWritable { protection |= PROT_WRITE }
153 |
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:152:35: error: cannot find 'PROT_WRITE' in scope
150 | #else
151 |     var protection: Int32 = PROT_READ
152 |     if isWritable { protection |= PROT_WRITE }
    |                                   `- error: cannot find 'PROT_WRITE' in scope
153 |
154 |     let mapFailed = UnsafeMutableRawPointer(bitPattern: -1)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:155:44: error: cannot find 'mmap' in scope
153 |
154 |     let mapFailed = UnsafeMutableRawPointer(bitPattern: -1)
155 |     let result: UnsafeMutableRawPointer? = mmap(
    |                                            `- error: cannot find 'mmap' in scope
156 |         nil, length, protection, MAP_SHARED, fileDescriptor, 0
157 |     )
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:156:34: error: cannot find 'MAP_SHARED' in scope
154 |     let mapFailed = UnsafeMutableRawPointer(bitPattern: -1)
155 |     let result: UnsafeMutableRawPointer? = mmap(
156 |         nil, length, protection, MAP_SHARED, fileDescriptor, 0
    |                                  `- error: cannot find 'MAP_SHARED' in scope
157 |     )
158 |     guard let result, _fastPath(result != mapFailed) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:156:9: error: 'nil' requires a contextual type
154 |     let mapFailed = UnsafeMutableRawPointer(bitPattern: -1)
155 |     let result: UnsafeMutableRawPointer? = mmap(
156 |         nil, length, protection, MAP_SHARED, fileDescriptor, 0
    |         `- error: 'nil' requires a contextual type
157 |     )
158 |     guard let result, _fastPath(result != mapFailed) else {
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:170:5: error: cannot find 'munmap' in scope
168 |     UnmapViewOfFile(pointer)
169 | #else
170 |     munmap(pointer, length)
    |     `- error: cannot find 'munmap' in scope
171 | #endif
172 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:183:5: error: cannot find 'msync' in scope
181 |     FlushViewOfFile(pointer, SIZE_T(length))
182 | #else
183 |     msync(pointer, length, MS_SYNC)
    |     `- error: cannot find 'msync' in scope
184 | #endif
185 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:183:28: error: cannot find 'MS_SYNC' in scope
181 |     FlushViewOfFile(pointer, SIZE_T(length))
182 | #else
183 |     msync(pointer, length, MS_SYNC)
    |                            `- error: cannot find 'MS_SYNC' in scope
184 | #endif
185 | }
[23/25] Compiling FileIO ConcatenatedMemoryMappedFile.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/25] Emitting module FileIO
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:183:5: error: cannot find 'msync' in scope
181 |     FlushViewOfFile(pointer, SIZE_T(length))
182 | #else
183 |     msync(pointer, length, MS_SYNC)
    |     `- error: cannot find 'msync' in scope
184 | #endif
185 | }
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/system.swift:183:28: error: cannot find 'MS_SYNC' in scope
181 |     FlushViewOfFile(pointer, SIZE_T(length))
182 | #else
183 |     msync(pointer, length, MS_SYNC)
    |                            `- error: cannot find 'MS_SYNC' in scope
184 | #endif
185 | }
[25/25] Compiling BinaryParseSupport UnicodeStrings.swift
BUILD FAILURE 6.2 wasm