The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FileUtils, reference 1.3.2 (596947), with Swift 6.3 for Wasm on 14 Apr 2026 13:50:55 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nerzh/SwiftFileUtils.git
Reference: 1.3.2
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/nerzh/SwiftFileUtils
 * tag               1.3.2      -> FETCH_HEAD
HEAD is now at 596947e ref2
Cloned https://github.com/nerzh/SwiftFileUtils.git
Revision (git rev-parse @):
596947ed909050f61fa0d342df4b5959bf48342c
SUCCESS checkout https://github.com/nerzh/SwiftFileUtils.git at 1.3.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/nerzh/SwiftFileUtils.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/nerzh/swift-regular-expression.git
[1/61] Fetching swift-regular-expression
Fetched https://github.com/nerzh/swift-regular-expression.git from cache (0.23s)
Computing version for https://github.com/nerzh/swift-regular-expression.git
Computed https://github.com/nerzh/swift-regular-expression.git at 0.2.4 (0.78s)
Creating working copy for https://github.com/nerzh/swift-regular-expression.git
Working copy of https://github.com/nerzh/swift-regular-expression.git resolved at 0.2.4
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Emitting module SwiftRegularExpression
[5/5] Compiling SwiftRegularExpression String+Regexp.swift
[7/12] Compiling FileUtils ReadFile.swift
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:13:44: error: cannot find type 'FILE' in scope
11 |
12 |     let fileURL: URL
13 |     private var file: UnsafeMutablePointer<FILE>? = nil
   |                                            `- error: cannot find type 'FILE' in scope
14 |
15 |     init(fileURL: URL) {
[8/12] Compiling FileUtils WriteFile.swift
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:42: error: cannot find 'O_TRUNC' in scope
63 |                         _ text: String,
64 |                         _ encoding: String.Encoding = .utf8,
65 |                         _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                          `- error: cannot find 'O_TRUNC' in scope
66 |                         _ mode: mode_t = 0o755
67 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:63: error: cannot find 'O_CREAT' in scope
63 |                         _ text: String,
64 |                         _ encoding: String.Encoding = .utf8,
65 |                         _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                                               `- error: cannot find 'O_CREAT' in scope
66 |                         _ mode: mode_t = 0o755
67 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:48: error: cannot find 'O_TRUNC' in scope
78 |     class func writeFilePosix(to: String,
79 |                               _ data: Data?,
80 |                               _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                                `- error: cannot find 'O_TRUNC' in scope
81 |                               _ mode: mode_t = 0o755
82 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:69: error: cannot find 'O_CREAT' in scope
78 |     class func writeFilePosix(to: String,
79 |                               _ data: Data?,
80 |                               _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                                                     `- error: cannot find 'O_CREAT' in scope
81 |                               _ mode: mode_t = 0o755
82 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
[9/12] Compiling FileUtils Mode.swift
[10/12] Compiling FileUtils FileReader.swift
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:13:44: error: cannot find type 'FILE' in scope
11 |
12 |     let fileURL: URL
13 |     private var file: UnsafeMutablePointer<FILE>? = nil
   |                                            `- error: cannot find type 'FILE' in scope
14 |
15 |     init(fileURL: URL) {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/12] Emitting module FileUtils
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:13:44: error: cannot find type 'FILE' in scope
11 |
12 |     let fileURL: URL
13 |     private var file: UnsafeMutablePointer<FILE>? = nil
   |                                            `- error: cannot find type 'FILE' in scope
14 |
15 |     init(fileURL: URL) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:42: error: cannot find 'O_TRUNC' in scope
63 |                         _ text: String,
64 |                         _ encoding: String.Encoding = .utf8,
65 |                         _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                          `- error: cannot find 'O_TRUNC' in scope
66 |                         _ mode: mode_t = 0o755
67 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:63: error: cannot find 'O_CREAT' in scope
63 |                         _ text: String,
64 |                         _ encoding: String.Encoding = .utf8,
65 |                         _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                                               `- error: cannot find 'O_CREAT' in scope
66 |                         _ mode: mode_t = 0o755
67 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:48: error: cannot find 'O_TRUNC' in scope
78 |     class func writeFilePosix(to: String,
79 |                               _ data: Data?,
80 |                               _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                                `- error: cannot find 'O_TRUNC' in scope
81 |                               _ mode: mode_t = 0o755
82 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:69: error: cannot find 'O_CREAT' in scope
78 |     class func writeFilePosix(to: String,
79 |                               _ data: Data?,
80 |                               _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
   |                                                                     `- error: cannot find 'O_CREAT' in scope
81 |                               _ mode: mode_t = 0o755
82 |     ) {
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
[12/12] Compiling FileUtils FileUtils.swift
/host/spi-builder-workspace/Sources/FileUtils/FileUtils.swift:53:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 51 |     class func createFile(_ path: String?) {
 52 |         guard let path = path else { return }
 53 |         FileManager.default.createFile(atPath: path, contents: nil, attributes: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 54 |     }
 55 |
/host/spi-builder-workspace/Sources/FileUtils/FileUtils.swift:133:16: warning: will never be executed
131 |         guard
132 |             let cStringPointer: UnsafeMutablePointer<Int8> = pointer
133 |         else { throw fatalError("unknown error for path: \(path)\nPlease, check your path.\n") }
    |                |     `- note: a call to a never-returning function
    |                `- warning: will never be executed
134 |         defer { free(cStringPointer) }
135 |
BUILD FAILURE 6.3 wasm