Build Information
Failed to build PerfectZip, reference master (c2daba), with Swift 6.3 for Linux on 10 Apr 2026 23:05:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-zip.git
Reference: master
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/perfectlysoft/perfect-zip
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c2dabad Merge pull request #4 from florianreinhart/master
Cloned https://github.com/perfectlysoft/perfect-zip.git
Revision (git rev-parse @):
c2dabad5a8f7e1eadaa5682bb5794b21d015ae2d
SUCCESS checkout https://github.com/perfectlysoft/perfect-zip.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/perfectlysoft/perfect-zip.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/PerfectlySoft/PerfectLib.git
Fetching https://github.com/PerfectlySoft/Perfect-CZlib-src.git
[1/337] Fetching perfect-czlib-src
[227/11121] Fetching perfect-czlib-src, perfectlib
Fetched https://github.com/PerfectlySoft/Perfect-CZlib-src.git from cache (3.26s)
Fetched https://github.com/PerfectlySoft/PerfectLib.git from cache (3.37s)
Computing version for https://github.com/PerfectlySoft/Perfect-CZlib-src.git
Computed https://github.com/PerfectlySoft/Perfect-CZlib-src.git at 0.0.4 (3.82s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 3.1.4 (0.49s)
Fetching https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
[1/65] Fetching perfect-linuxbridge
Fetched https://github.com/PerfectlySoft/Perfect-LinuxBridge.git from cache (1.38s)
Computing version for https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Computed https://github.com/PerfectlySoft/Perfect-LinuxBridge.git at 3.1.0 (1.86s)
Creating working copy for https://github.com/PerfectlySoft/PerfectLib.git
Working copy of https://github.com/PerfectlySoft/PerfectLib.git resolved at 3.1.4
Creating working copy for https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Working copy of https://github.com/PerfectlySoft/Perfect-LinuxBridge.git resolved at 3.1.0
Creating working copy for https://github.com/PerfectlySoft/Perfect-CZlib-src.git
Working copy of https://github.com/PerfectlySoft/Perfect-CZlib-src.git resolved at 0.0.4
Building for debugging...
[0/16] Compiling prng.c
[1/16] Compiling minizip ioapi.c
[2/16] Compiling pwd2key.c
[3/16] Compiling minizip zip.c
[4/16] Compiling hmac.c
[5/16] Compiling entropy.c
[6/16] Compiling sha1.c
[7/16] Write sources
[9/16] Compiling fileenc.c
[10/16] Compiling aeskey.c
[11/16] Compiling LinuxBridge LinuxBridge.c
[12/16] Compiling minizip unzip.c
[13/16] Compiling aescrypt.c
[14/16] Compiling aestab.c
[15/16] Write swift-version-24593BA9C3E375BF.txt
[17/25] Compiling PerfectLib Log.swift
[18/26] Compiling PerfectLib PerfectServer.swift
[19/26] Compiling PerfectLib PerfectError.swift
[20/26] Compiling PerfectLib SysProcess.swift
[21/26] Compiling PerfectLib JSONConvertible.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/26] Emitting module PerfectLib
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128:54: error: cannot find type 'dirent' in scope
126 |
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
| `- error: cannot find type 'dirent' in scope
129 | return readdir_r(d, &dirEnt, endPtr)
130 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128:114: error: cannot find type 'dirent' in scope
126 |
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
| `- error: cannot find type 'dirent' in scope
129 | return readdir_r(d, &dirEnt, endPtr)
130 | }
[23/26] Compiling PerfectLib File.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:66:16: error: cannot find 'access' in scope
64 | /// - returns: True if the file exists or false otherwise
65 | public var exists: Bool {
66 | return access(internalPath, F_OK) != -1
| `- error: cannot find 'access' in scope
67 | }
68 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:85:19: error: cannot find 'readlink' in scope
83 | var ary = [UInt8](repeating: 0, count: maxPath)
84 | let buffer = UnsafeMutableRawPointer(mutating: ary).assumingMemoryBound(to: Int8.self)
85 | let res = readlink(internalPath, buffer, maxPath)
| `- error: cannot find 'readlink' in scope
86 | guard res != -1 else {
87 | return internalPath
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:116:15: error: cannot find 'wordexp_t' in scope
114 | #if !os(iOS) && !os(tvOS)
115 | if !inPath.isEmpty && inPath[inPath.startIndex] == "~" {
116 | var wexp = wordexp_t()
| `- error: cannot find 'wordexp_t' in scope
117 | guard 0 == wordexp(inPath, &wexp, 0),
118 | let we_wordv = wexp.we_wordv else {
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:117:15: error: cannot find 'wordexp' in scope
115 | if !inPath.isEmpty && inPath[inPath.startIndex] == "~" {
116 | var wexp = wordexp_t()
117 | guard 0 == wordexp(inPath, &wexp, 0),
| `- error: cannot find 'wordexp' in scope
118 | let we_wordv = wexp.we_wordv else {
119 | return inPath
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:122:5: error: cannot find 'wordfree' in scope
120 | }
121 | defer {
122 | wordfree(&wexp)
| `- error: cannot find 'wordfree' in scope
123 | }
124 | if let resolved = we_wordv[0], let pth = String(validatingUTF8: resolved) {
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:148:8: error: module 'SwiftGlibc' has no member named 'close'
146 | if fd != -1 {
147 | #if os(Linux)
148 | _ = SwiftGlibc.close(CInt(fd))
| `- error: module 'SwiftGlibc' has no member named 'close'
149 | #else
150 | _ = Darwin.close(CInt(fd))
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:258:28: error: cannot find 'lseek' in scope
256 | get {
257 | if isOpen {
258 | return Int(lseek(Int32(fd), 0, SEEK_CUR))
| `- error: cannot find 'lseek' in scope
259 | }
260 | return 0
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:264:13: error: cannot find 'lseek' in scope
262 | /// Sets the file's position marker given the value as measured from the begining of the file.
263 | set {
264 | lseek(Int32(fd), off_t(newValue), SEEK_SET)
| `- error: cannot find 'lseek' in scope
265 | }
266 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:274:9: error: cannot find 'unlink' in scope
272 | func delete() {
273 | close()
274 | unlink(path)
| `- error: cannot find 'unlink' in scope
275 | }
276 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:407:13: error: cannot find 'symlink' in scope
405 | destFile.delete()
406 | }
407 | let res = symlink(self.path, path)
| `- error: cannot find 'symlink' in scope
408 | if res == 0 {
409 | return File(path)
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:442:19: error: cannot find 'read' in scope
440 | let ptr = UnsafeMutableRawPointer(mutating: ary).assumingMemoryBound(to: Int8.self)
441 |
442 | let readCount = read(CInt(fd), ptr, bSize)
| `- error: cannot find 'read' in scope
443 | guard readCount >= 0 else {
444 | try ThrowFileError()
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:480:15: error: module 'SwiftGlibc' has no member named 'write'
478 | let ptr = UnsafeMutableRawPointer(mutating: bytes).assumingMemoryBound(to: UInt8.self).advanced(by: dataPosition)
479 | #if os(Linux)
480 | let wrote = SwiftGlibc.write(Int32(fd), ptr, len)
| `- error: module 'SwiftGlibc' has no member named 'write'
481 | #else
482 | let wrote = Darwin.write(Int32(fd), ptr, len)
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:573:18: error: cannot find 'mkstemp' in scope
571 | name[utf8.count] = 0
572 |
573 | let fd = mkstemp(name)
| `- error: cannot find 'mkstemp' in scope
574 | let tmpFileName = String(validatingUTF8: name)!
575 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:584:45: error: cannot find 'STDIN_FILENO' in scope
582 | /// This file can be used to write to standard in
583 | public var fileStdin: File {
584 | return UnclosableFile("/dev/stdin", fd: STDIN_FILENO)
| `- error: cannot find 'STDIN_FILENO' in scope
585 | }
586 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:589:43: error: cannot find 'STDOUT_FILENO' in scope
587 | /// This file can be used to write to standard out
588 | public var fileStdout: File {
589 | return UnclosableFile("/dev/stdout", fd: STDOUT_FILENO)
| `- error: cannot find 'STDOUT_FILENO' in scope
590 | }
591 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:594:43: error: cannot find 'STDERR_FILENO' in scope
592 | /// This file can be used to write to standard error
593 | public var fileStderr: File {
594 | return UnclosableFile("/dev/stderr", fd: STDERR_FILENO)
| `- error: cannot find 'STDERR_FILENO' in scope
595 | }
596 |
[24/26] Compiling PerfectLib Bytes.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128:54: error: cannot find type 'dirent' in scope
126 |
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
| `- error: cannot find type 'dirent' in scope
129 | return readdir_r(d, &dirEnt, endPtr)
130 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128:114: error: cannot find type 'dirent' in scope
126 |
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
| `- error: cannot find type 'dirent' in scope
129 | return readdir_r(d, &dirEnt, endPtr)
130 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:47:13: error: cannot find 'chdir' in scope
45 | /// Set this Dir as the process' working directory.
46 | public func setAsWorkingDir() throws {
47 | let res = chdir(internalPath)
| `- error: cannot find 'chdir' in scope
48 | guard res == 0 else {
49 | try ThrowFileError()
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:56:11: error: cannot find 'getcwd' in scope
54 | public static var workingDir: Dir {
55 | let buffer = Array(repeating: 0 as UInt8, count: 2049)
56 | let _ = getcwd(UnsafeMutableRawPointer(mutating: buffer).assumingMemoryBound(to: Int8.self), 2048)
| `- error: cannot find 'getcwd' in scope
57 | let path = String(validatingUTF8: UnsafeMutableRawPointer(mutating: buffer).assumingMemoryBound(to: Int8.self)) ?? "."
58 | return Dir(path)
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:62:10: error: cannot find 'access' in scope
60 |
61 | func exists(_ path: String) -> Bool {
62 | return access(path, F_OK) != -1
| `- error: cannot find 'access' in scope
63 | }
64 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:89:13: error: cannot find 'rmdir' in scope
87 | /// - throws: `PerfectError.FileError`
88 | public func delete() throws {
89 | let res = rmdir(realPath)
| `- error: cannot find 'rmdir' in scope
90 | guard res != -1 else {
91 | try ThrowFileError()
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:129:16: error: cannot find 'readdir_r' in scope
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
129 | return readdir_r(d, &dirEnt, endPtr)
| `- error: cannot find 'readdir_r' in scope
130 | }
131 | #else
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:141:19: error: cannot find 'opendir' in scope
139 | /// - throws: `PerfectError.FileError`
140 | public func forEachEntry(closure: (String) throws -> ()) throws {
141 | guard let dir = opendir(realPath) else {
| `- error: cannot find 'opendir' in scope
142 | try ThrowFileError()
143 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:145:11: error: cannot find 'closedir' in scope
143 | }
144 |
145 | defer { closedir(dir) }
| `- error: cannot find 'closedir' in scope
146 |
147 | var ent = dirent()
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:13: error: cannot find 'dirent' in scope
145 | defer { closedir(dir) }
146 |
147 | var ent = dirent()
| `- error: cannot find 'dirent' in scope
148 | let entPtr = UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>.allocate(capacity: 1)
149 | defer { entPtr.deallocate() }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:148:58: error: cannot find type 'dirent' in scope
146 |
147 | var ent = dirent()
148 | let entPtr = UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>.allocate(capacity: 1)
| `- error: cannot find type 'dirent' in scope
149 | defer { entPtr.deallocate() }
150 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:174:41: error: cannot find 'DT_DIR' in scope
172 | nameBuf.append(0)
173 | if let name = String(validatingUTF8: nameBuf), !(name == "." || name == "..") {
174 | if Int32(type) == Int32(DT_DIR) {
| `- error: cannot find 'DT_DIR' in scope
175 | try closure(name + "/")
176 | } else {
[25/26] Compiling PerfectLib Dir.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128:54: error: cannot find type 'dirent' in scope
126 |
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
| `- error: cannot find type 'dirent' in scope
129 | return readdir_r(d, &dirEnt, endPtr)
130 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128:114: error: cannot find type 'dirent' in scope
126 |
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
| `- error: cannot find type 'dirent' in scope
129 | return readdir_r(d, &dirEnt, endPtr)
130 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:47:13: error: cannot find 'chdir' in scope
45 | /// Set this Dir as the process' working directory.
46 | public func setAsWorkingDir() throws {
47 | let res = chdir(internalPath)
| `- error: cannot find 'chdir' in scope
48 | guard res == 0 else {
49 | try ThrowFileError()
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:56:11: error: cannot find 'getcwd' in scope
54 | public static var workingDir: Dir {
55 | let buffer = Array(repeating: 0 as UInt8, count: 2049)
56 | let _ = getcwd(UnsafeMutableRawPointer(mutating: buffer).assumingMemoryBound(to: Int8.self), 2048)
| `- error: cannot find 'getcwd' in scope
57 | let path = String(validatingUTF8: UnsafeMutableRawPointer(mutating: buffer).assumingMemoryBound(to: Int8.self)) ?? "."
58 | return Dir(path)
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:62:10: error: cannot find 'access' in scope
60 |
61 | func exists(_ path: String) -> Bool {
62 | return access(path, F_OK) != -1
| `- error: cannot find 'access' in scope
63 | }
64 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:89:13: error: cannot find 'rmdir' in scope
87 | /// - throws: `PerfectError.FileError`
88 | public func delete() throws {
89 | let res = rmdir(realPath)
| `- error: cannot find 'rmdir' in scope
90 | guard res != -1 else {
91 | try ThrowFileError()
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:129:16: error: cannot find 'readdir_r' in scope
127 | #if os(Linux)
128 | func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
129 | return readdir_r(d, &dirEnt, endPtr)
| `- error: cannot find 'readdir_r' in scope
130 | }
131 | #else
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:141:19: error: cannot find 'opendir' in scope
139 | /// - throws: `PerfectError.FileError`
140 | public func forEachEntry(closure: (String) throws -> ()) throws {
141 | guard let dir = opendir(realPath) else {
| `- error: cannot find 'opendir' in scope
142 | try ThrowFileError()
143 | }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:145:11: error: cannot find 'closedir' in scope
143 | }
144 |
145 | defer { closedir(dir) }
| `- error: cannot find 'closedir' in scope
146 |
147 | var ent = dirent()
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:13: error: cannot find 'dirent' in scope
145 | defer { closedir(dir) }
146 |
147 | var ent = dirent()
| `- error: cannot find 'dirent' in scope
148 | let entPtr = UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>.allocate(capacity: 1)
149 | defer { entPtr.deallocate() }
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:148:58: error: cannot find type 'dirent' in scope
146 |
147 | var ent = dirent()
148 | let entPtr = UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>.allocate(capacity: 1)
| `- error: cannot find type 'dirent' in scope
149 | defer { entPtr.deallocate() }
150 |
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:174:41: error: cannot find 'DT_DIR' in scope
172 | nameBuf.append(0)
173 | if let name = String(validatingUTF8: nameBuf), !(name == "." || name == "..") {
174 | if Int32(type) == Int32(DT_DIR) {
| `- error: cannot find 'DT_DIR' in scope
175 | try closure(name + "/")
176 | } else {
[26/26] Compiling PerfectLib Utilities.swift
BUILD FAILURE 6.3 linux