Build Information
Failed to build PerfectCURL with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-curl.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-curl
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0593841 Updated swift tools version. Updated PerfectLib version
Cloned https://github.com/perfectlysoft/perfect-curl.git
Revision (git rev-parse @):
0593841a172433e5c9841791a87f9fe56d8c0ce4
SUCCESS checkout https://github.com/perfectlysoft/perfect-curl.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/perfectlysoft/perfect-curl.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/PerfectlySoft/Perfect-libcurl.git
Fetching https://github.com/PerfectlySoft/Perfect-Thread.git
Fetching https://github.com/PerfectlySoft/PerfectLib.git
[1/77] Fetching perfect-libcurl
[78/456] Fetching perfect-libcurl, perfect-thread
[457/11240] Fetching perfect-libcurl, perfect-thread, perfectlib
Fetched https://github.com/PerfectlySoft/Perfect-libcurl.git from cache (2.58s)
Fetched https://github.com/PerfectlySoft/Perfect-Thread.git from cache (2.58s)
Fetched https://github.com/PerfectlySoft/PerfectLib.git from cache (2.65s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 4.0.1 (0.41s)
Fetching https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
[1/65] Fetching perfect-linuxbridge
Fetched https://github.com/PerfectlySoft/Perfect-LinuxBridge.git from cache (0.19s)
Computing version for https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Computed https://github.com/PerfectlySoft/Perfect-LinuxBridge.git at 3.1.0 (1.08s)
Computing version for https://github.com/PerfectlySoft/Perfect-Thread.git
Computed https://github.com/PerfectlySoft/Perfect-Thread.git at 3.0.7 (0.43s)
Computing version for https://github.com/PerfectlySoft/Perfect-libcurl.git
Computed https://github.com/PerfectlySoft/Perfect-libcurl.git at 2.1.0 (0.96s)
Creating working copy for https://github.com/PerfectlySoft/Perfect-Thread.git
Working copy of https://github.com/PerfectlySoft/Perfect-Thread.git resolved at 3.0.7
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-libcurl.git
Working copy of https://github.com/PerfectlySoft/Perfect-libcurl.git resolved at 2.1.0
Creating working copy for https://github.com/PerfectlySoft/PerfectLib.git
Working copy of https://github.com/PerfectlySoft/PerfectLib.git resolved at 4.0.1
warning: 'perfect-libcurl': ignoring declared target(s) 'cURL' in the system package
warning: 'spi-builder-workspace': dependency 'perfect-libcurl' is not used by any target
Building for debugging...
[0/5] Write sources
[3/5] Write swift-version-24593BA9C3E375BF.txt
[4/5] Compiling LinuxBridge LinuxBridge.c
[6/18] Compiling PerfectLib Bytes.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:54: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:114: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:47:13: error: cannot find 'chdir' in scope
let res = chdir(internalPath)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:57:8: error: cannot find 'getcwd' in scope
_ = getcwd($0.bindMemory(to: Int8.self).baseAddress, 2048)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:64:10: error: cannot find 'access' in scope
return access(path, F_OK) != -1
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:91:13: error: cannot find 'rmdir' in scope
let res = rmdir(realPath)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:131:19: error: cannot find 'readdir' in scope
guard let ent = readdir(d) else {
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:19: error: cannot find 'opendir' in scope
guard let dir = opendir(realPath) else {
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:151:11: error: cannot find 'closedir' in scope
defer { closedir(dir) }
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:153:13: error: cannot find 'dirent' in scope
var ent = dirent()
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:154:58: error: cannot find type 'dirent' in scope
let entPtr = UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>.allocate(capacity: 1)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:180:41: error: cannot find 'DT_DIR' in scope
if Int32(type) == Int32(DT_DIR) {
^~~~~~
[7/18] Compiling PerfectLib Dir.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:54: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:114: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:47:13: error: cannot find 'chdir' in scope
let res = chdir(internalPath)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:57:8: error: cannot find 'getcwd' in scope
_ = getcwd($0.bindMemory(to: Int8.self).baseAddress, 2048)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:64:10: error: cannot find 'access' in scope
return access(path, F_OK) != -1
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:91:13: error: cannot find 'rmdir' in scope
let res = rmdir(realPath)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:131:19: error: cannot find 'readdir' in scope
guard let ent = readdir(d) else {
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:19: error: cannot find 'opendir' in scope
guard let dir = opendir(realPath) else {
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:151:11: error: cannot find 'closedir' in scope
defer { closedir(dir) }
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:153:13: error: cannot find 'dirent' in scope
var ent = dirent()
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:154:58: error: cannot find type 'dirent' in scope
let entPtr = UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>.allocate(capacity: 1)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:180:41: error: cannot find 'DT_DIR' in scope
if Int32(type) == Int32(DT_DIR) {
^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/19] Emitting module PerfectLib
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:54: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:114: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
[9/19] Compiling PerfectLib Log.swift
[10/19] Compiling PerfectThread Promise.swift
[11/19] Compiling PerfectThread Threading.swift
[12/19] Compiling PerfectThread ThreadQueue.swift
[13/19] Emitting module PerfectThread
[15/20] Compiling PerfectLib PerfectServer.swift
[16/20] Compiling PerfectLib SysProcess.swift
[17/20] Compiling PerfectLib PerfectError.swift
[18/20] Compiling PerfectLib JSONConvertible.swift
[19/20] Compiling PerfectLib File.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:66:16: error: cannot find 'access' in scope
return access(internalPath, F_OK) != -1
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:88:11: error: cannot find 'readlink' in scope
return readlink(internalPath, p, maxPath)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:119:15: error: cannot find 'wordexp_t' in scope
var wexp = wordexp_t()
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:120:15: error: cannot find 'wordexp' in scope
guard 0 == wordexp(inPath, &wexp, 0),
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:125:5: error: cannot find 'wordfree' in scope
wordfree(&wexp)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:151:8: error: module 'SwiftGlibc' has no member named 'close'
_ = SwiftGlibc.close(CInt(fd))
^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:261:28: error: cannot find 'lseek' in scope
return Int(lseek(Int32(fd), 0, SEEK_CUR))
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:267:13: error: cannot find 'lseek' in scope
lseek(Int32(fd), off_t(newValue), SEEK_SET)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:277:9: error: cannot find 'unlink' in scope
unlink(path)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:410:13: error: cannot find 'symlink' in scope
let res = symlink(self.path, path)
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:445:6: error: cannot find 'read' in scope
read(CInt(fd), $0.bindMemory(to: Int8.self).baseAddress, bSize)
^~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:484:4: error: module 'SwiftGlibc' has no member named 'write'
SwiftGlibc.write(Int32(fd), $0.bindMemory(to: Int8.self).baseAddress?.advanced(by: dataPosition), len)
^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:580:18: error: cannot find 'mkstemp' in scope
let fd = mkstemp(name)
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:591:45: error: cannot find 'STDIN_FILENO' in scope
return UnclosableFile("/dev/stdin", fd: STDIN_FILENO)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:596:43: error: cannot find 'STDOUT_FILENO' in scope
return UnclosableFile("/dev/stdout", fd: STDOUT_FILENO)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:601:43: error: cannot find 'STDERR_FILENO' in scope
return UnclosableFile("/dev/stderr", fd: STDERR_FILENO)
^~~~~~~~~~~~~
[20/20] Compiling PerfectLib Utilities.swift
error: fatalError
warning: 'perfect-libcurl': ignoring declared target(s) 'cURL' in the system package
warning: 'spi-builder-workspace': dependency 'perfect-libcurl' is not used by any target
[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] Compiling PerfectLib Bytes.swift
[3/5] Emitting module PerfectLib
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:54: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:114: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
[4/5] Compiling PerfectLib File.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:66:16: error: cannot find 'access' in scope
return access(internalPath, F_OK) != -1
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:88:11: error: cannot find 'readlink' in scope
return readlink(internalPath, p, maxPath)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:119:15: error: cannot find 'wordexp_t' in scope
var wexp = wordexp_t()
^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:120:15: error: cannot find 'wordexp' in scope
guard 0 == wordexp(inPath, &wexp, 0),
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:125:5: error: cannot find 'wordfree' in scope
wordfree(&wexp)
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:151:8: error: module 'SwiftGlibc' has no member named 'close'
_ = SwiftGlibc.close(CInt(fd))
^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:261:28: error: cannot find 'lseek' in scope
return Int(lseek(Int32(fd), 0, SEEK_CUR))
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:267:13: error: cannot find 'lseek' in scope
lseek(Int32(fd), off_t(newValue), SEEK_SET)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:277:9: error: cannot find 'unlink' in scope
unlink(path)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:410:13: error: cannot find 'symlink' in scope
let res = symlink(self.path, path)
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:445:6: error: cannot find 'read' in scope
read(CInt(fd), $0.bindMemory(to: Int8.self).baseAddress, bSize)
^~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:484:4: error: module 'SwiftGlibc' has no member named 'write'
SwiftGlibc.write(Int32(fd), $0.bindMemory(to: Int8.self).baseAddress?.advanced(by: dataPosition), len)
^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:580:18: error: cannot find 'mkstemp' in scope
let fd = mkstemp(name)
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:591:45: error: cannot find 'STDIN_FILENO' in scope
return UnclosableFile("/dev/stdin", fd: STDIN_FILENO)
^~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:596:43: error: cannot find 'STDOUT_FILENO' in scope
return UnclosableFile("/dev/stdout", fd: STDOUT_FILENO)
^~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:601:43: error: cannot find 'STDERR_FILENO' in scope
return UnclosableFile("/dev/stderr", fd: STDERR_FILENO)
^~~~~~~~~~~~~
[5/5] Compiling PerfectLib Dir.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:54: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:130:114: error: cannot find type 'dirent' in scope
func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:47:13: error: cannot find 'chdir' in scope
let res = chdir(internalPath)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:57:8: error: cannot find 'getcwd' in scope
_ = getcwd($0.bindMemory(to: Int8.self).baseAddress, 2048)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:64:10: error: cannot find 'access' in scope
return access(path, F_OK) != -1
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:91:13: error: cannot find 'rmdir' in scope
let res = rmdir(realPath)
^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:131:19: error: cannot find 'readdir' in scope
guard let ent = readdir(d) else {
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:19: error: cannot find 'opendir' in scope
guard let dir = opendir(realPath) else {
^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:151:11: error: cannot find 'closedir' in scope
defer { closedir(dir) }
^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:153:13: error: cannot find 'dirent' in scope
var ent = dirent()
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:154:58: error: cannot find type 'dirent' in scope
let entPtr = UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>.allocate(capacity: 1)
^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:180:41: error: cannot find 'DT_DIR' in scope
if Int32(type) == Int32(DT_DIR) {
^~~~~~
error: fatalError
BUILD FAILURE 5.10 linux