The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PostgresStORM 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/SwiftORM/Postgres-StORM.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/SwiftORM/Postgres-StORM
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 63a1fd6 Removed force unwrap on null date column values
Cloned https://github.com/SwiftORM/Postgres-StORM.git
Revision (git rev-parse @):
63a1fd68e4aa4d961b92e1b9b21fd17d4ee6f5af
SUCCESS checkout https://github.com/SwiftORM/Postgres-StORM.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SwiftORM/Postgres-StORM.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-Logger.git
Fetching https://github.com/PerfectlySoft/Perfect-PostgreSQL.git
Fetching https://github.com/SwiftORM/StORM.git
[1/1494] Fetching perfect-postgresql
[31/1676] Fetching perfect-postgresql, perfect-logger
[293/2378] Fetching perfect-postgresql, perfect-logger, storm
[243/1676] Fetching perfect-postgresql, perfect-logger
[410/2378] Fetching perfect-postgresql, perfect-logger, storm
Fetched https://github.com/PerfectlySoft/Perfect-Logger.git from cache (0.27s)
[1703/2196] Fetching perfect-postgresql, storm
Fetched https://github.com/SwiftORM/StORM.git from cache (0.34s)
Fetched https://github.com/PerfectlySoft/Perfect-PostgreSQL.git from cache (0.34s)
Computing version for https://github.com/PerfectlySoft/Perfect-Logger.git
Computed https://github.com/PerfectlySoft/Perfect-Logger.git at 3.3.0 (1.08s)
Fetching https://github.com/PerfectlySoft/Perfect-CURL.git
[1/504] Fetching perfect-curl
Fetched https://github.com/PerfectlySoft/Perfect-CURL.git from cache (0.22s)
Computing version for https://github.com/PerfectlySoft/Perfect-CURL.git
Computed https://github.com/PerfectlySoft/Perfect-CURL.git at 3.1.0 (0.41s)
Fetching https://github.com/PerfectlySoft/Perfect-HTTP.git
Fetching https://github.com/PerfectlySoft/Perfect-libcurl.git
[1/77] Fetching perfect-libcurl
[78/885] Fetching perfect-libcurl, perfect-http
Fetched https://github.com/PerfectlySoft/Perfect-libcurl.git from cache (0.23s)
Fetched https://github.com/PerfectlySoft/Perfect-HTTP.git from cache (0.24s)
Computing version for https://github.com/PerfectlySoft/Perfect-libcurl.git
Computed https://github.com/PerfectlySoft/Perfect-libcurl.git at 2.1.0 (0.40s)
Computing version for https://github.com/SwiftORM/StORM.git
Computed https://github.com/SwiftORM/StORM.git at 3.3.0 (0.41s)
Fetching https://github.com/iamjono/SwiftMoment.git
Fetching https://github.com/PerfectlySoft/PerfectLib.git
[1/877] Fetching swiftmoment
[878/11661] Fetching swiftmoment, perfectlib
Fetched https://github.com/iamjono/SwiftMoment.git from cache (3.22s)
Fetched https://github.com/PerfectlySoft/PerfectLib.git from cache (3.33s)
Computing version for https://github.com/iamjono/SwiftMoment.git
Computed https://github.com/iamjono/SwiftMoment.git at 1.3.0 (0.67s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 3.1.4 (0.68s)
Fetching https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
[1/65] Fetching perfect-linuxbridge
Fetched https://github.com/PerfectlySoft/Perfect-LinuxBridge.git from cache (0.31s)
Computing version for https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Computed https://github.com/PerfectlySoft/Perfect-LinuxBridge.git at 3.1.0 (0.69s)
Computing version for https://github.com/PerfectlySoft/Perfect-PostgreSQL.git
Computed https://github.com/PerfectlySoft/Perfect-PostgreSQL.git at 3.2.1 (0.61s)
Fetching https://github.com/PerfectlySoft/Perfect-libpq-linux.git
Fetching https://github.com/PerfectlySoft/Perfect-CRUD.git
[1/43] Fetching perfect-libpq-linux
[44/1233] Fetching perfect-libpq-linux, perfect-crud
Fetched https://github.com/PerfectlySoft/Perfect-libpq-linux.git from cache (0.27s)
Fetched https://github.com/PerfectlySoft/Perfect-CRUD.git from cache (0.27s)
Computing version for https://github.com/PerfectlySoft/Perfect-CRUD.git
Computed https://github.com/PerfectlySoft/Perfect-CRUD.git at 1.2.3 (0.36s)
Computing version for https://github.com/PerfectlySoft/Perfect-libpq-linux.git
Computed https://github.com/PerfectlySoft/Perfect-libpq-linux.git at 2.1.0 (0.36s)
Computing version for https://github.com/PerfectlySoft/Perfect-HTTP.git
Computed https://github.com/PerfectlySoft/Perfect-HTTP.git at 3.3.0 (0.38s)
Fetching https://github.com/PerfectlySoft/Perfect-Net.git
[1/570] Fetching perfect-net
Fetched https://github.com/PerfectlySoft/Perfect-Net.git from cache (0.36s)
Computing version for https://github.com/PerfectlySoft/Perfect-Net.git
Computed https://github.com/PerfectlySoft/Perfect-Net.git at 3.3.0 (0.67s)
Fetching https://github.com/PerfectlySoft/Perfect-Thread.git
Fetching https://github.com/PerfectlySoft/Perfect-Crypto.git
[1/612] Fetching perfect-crypto
[332/991] Fetching perfect-crypto, perfect-thread
Fetched https://github.com/PerfectlySoft/Perfect-Crypto.git from cache (0.39s)
Fetched https://github.com/PerfectlySoft/Perfect-Thread.git from cache (0.39s)
Computing version for https://github.com/PerfectlySoft/Perfect-Crypto.git
Computed https://github.com/PerfectlySoft/Perfect-Crypto.git at 3.3.0 (0.51s)
Fetching https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git
[1/188] Fetching perfect-copenssl-linux
Fetched https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git from cache (0.22s)
Computing version for https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git
Computed https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git at 4.0.2 (0.46s)
Computing version for https://github.com/PerfectlySoft/Perfect-Thread.git
Computed https://github.com/PerfectlySoft/Perfect-Thread.git at 3.0.7 (0.40s)
Creating working copy for https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git
Working copy of https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git resolved at 4.0.2
Creating working copy for https://github.com/iamjono/SwiftMoment.git
Working copy of https://github.com/iamjono/SwiftMoment.git resolved at 1.3.0
Creating working copy for https://github.com/PerfectlySoft/Perfect-Logger.git
Working copy of https://github.com/PerfectlySoft/Perfect-Logger.git resolved at 3.3.0
Creating working copy for https://github.com/PerfectlySoft/Perfect-CRUD.git
Working copy of https://github.com/PerfectlySoft/Perfect-CRUD.git resolved at 1.2.3
Creating working copy for https://github.com/PerfectlySoft/Perfect-Crypto.git
Working copy of https://github.com/PerfectlySoft/Perfect-Crypto.git resolved at 3.3.0
Creating working copy for https://github.com/PerfectlySoft/Perfect-PostgreSQL.git
Working copy of https://github.com/PerfectlySoft/Perfect-PostgreSQL.git resolved at 3.2.1
Creating working copy for https://github.com/PerfectlySoft/Perfect-CURL.git
Working copy of https://github.com/PerfectlySoft/Perfect-CURL.git resolved at 3.1.0
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-HTTP.git
Working copy of https://github.com/PerfectlySoft/Perfect-HTTP.git resolved at 3.3.0
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/SwiftORM/StORM.git
Working copy of https://github.com/SwiftORM/StORM.git resolved at 3.3.0
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-Net.git
Working copy of https://github.com/PerfectlySoft/Perfect-Net.git resolved at 3.3.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/Perfect-libpq-linux.git
Working copy of https://github.com/PerfectlySoft/Perfect-libpq-linux.git resolved at 2.1.0
warning: 'perfect-libcurl': ignoring declared target(s) 'cURL' in the system package
warning: 'perfect-libpq-linux': ignoring declared target(s) 'libpq' in the system package
warning: you may be able to install libpq using your system-packager:
    apt-get install libpq-dev
Building for debugging...
[0/14] Write sources
[12/14] Compiling LinuxBridge LinuxBridge.c
[13/14] Write swift-version-24593BA9C3E375BF.txt
[15/58] Compiling SwiftMoment TimeUnit.swift
[16/58] Compiling SwiftMoment Operators.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/58] Emitting module PerfectLib
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128: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:128:114: error: cannot find type 'dirent' in scope
    func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
                                                                                                                 ^~~~~~
[18/59] Emitting module PerfectThread
[19/59] Compiling PerfectLib PerfectError.swift
[20/59] Compiling PerfectThread Threading.swift
[21/59] Compiling PerfectLib Log.swift
[22/59] Compiling PerfectLib PerfectServer.swift
[23/59] Compiling PerfectLib SysProcess.swift
[24/59] Compiling PerfectLib JSONConvertible.swift
[25/59] Compiling PerfectThread Promise.swift
[26/59] Compiling PerfectThread ThreadQueue.swift
[28/60] Compiling PerfectCRUD Logging.swift
[29/60] Compiling PerfectCRUD PerfectCRUD.swift
[30/60] Compiling PerfectCRUD Select.swift
[31/60] Compiling PerfectCRUD Logical.swift
[32/60] Compiling PerfectCRUD Insert.swift
[33/60] Compiling PerfectCRUD Join.swift
[34/63] 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:85:19: error: cannot find 'readlink' in scope
        let res = readlink(internalPath, buffer, maxPath)
                  ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:116:15: error: cannot find 'wordexp_t' in scope
                        var wexp = wordexp_t()
                                   ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:117:15: error: cannot find 'wordexp' in scope
                        guard 0 == wordexp(inPath, &wexp, 0),
                                   ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:122:5: error: cannot find 'wordfree' in scope
                                wordfree(&wexp)
                                ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:148:8: error: module 'SwiftGlibc' has no member named 'close'
                        _ = SwiftGlibc.close(CInt(fd))
                            ^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:258: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:264: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:274:9: error: cannot find 'unlink' in scope
        unlink(path)
        ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:407:13: error: cannot find 'symlink' in scope
                let res = symlink(self.path, path)
                          ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:442:19: error: cannot find 'read' in scope
                let readCount = read(CInt(fd), ptr, bSize)
                                ^~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:480:15: error: module 'SwiftGlibc' has no member named 'write'
                let wrote = SwiftGlibc.write(Int32(fd), ptr, len)
                            ^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:573:18: error: cannot find 'mkstemp' in scope
        let fd = mkstemp(name)
                 ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:584: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:589: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:594:43: error: cannot find 'STDERR_FILENO' in scope
        return UnclosableFile("/dev/stderr", fd: STDERR_FILENO)
                                                 ^~~~~~~~~~~~~
[35/63] Compiling PerfectCRUD In.swift
[36/63] Compiling PerfectCRUD InInts.swift
[37/63] Compiling PerfectCRUD Like.swift
[38/63] Compiling PerfectCRUD Coding.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128: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:128: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:56:11: error: cannot find 'getcwd' in scope
                let _ = getcwd(UnsafeMutableRawPointer(mutating: buffer).assumingMemoryBound(to: Int8.self), 2048)
                        ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:62:10: error: cannot find 'access' in scope
                return access(path, F_OK) != -1
                       ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:89:13: error: cannot find 'rmdir' in scope
                let res = rmdir(realPath)
                          ^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:129:16: error: cannot find 'readdir_r' in scope
        return readdir_r(d, &dirEnt, endPtr)
               ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:141:19: error: cannot find 'opendir' in scope
                guard let dir = opendir(realPath) else {
                                ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:145:11: error: cannot find 'closedir' in scope
                defer { closedir(dir) }
                        ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:13: error: cannot find 'dirent' in scope
                var ent = dirent()
                          ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:148: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:174:41: error: cannot find 'DT_DIR' in scope
                if Int32(type) == Int32(DT_DIR) {
                                        ^~~~~~
[39/63] Compiling PerfectCRUD CodingBindings.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128: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:128: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:56:11: error: cannot find 'getcwd' in scope
                let _ = getcwd(UnsafeMutableRawPointer(mutating: buffer).assumingMemoryBound(to: Int8.self), 2048)
                        ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:62:10: error: cannot find 'access' in scope
                return access(path, F_OK) != -1
                       ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:89:13: error: cannot find 'rmdir' in scope
                let res = rmdir(realPath)
                          ^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:129:16: error: cannot find 'readdir_r' in scope
        return readdir_r(d, &dirEnt, endPtr)
               ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:141:19: error: cannot find 'opendir' in scope
                guard let dir = opendir(realPath) else {
                                ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:145:11: error: cannot find 'closedir' in scope
                defer { closedir(dir) }
                        ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:13: error: cannot find 'dirent' in scope
                var ent = dirent()
                          ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:148: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:174:41: error: cannot find 'DT_DIR' in scope
                if Int32(type) == Int32(DT_DIR) {
                                        ^~~~~~
[40/63] Compiling PerfectCRUD Delete.swift
[41/63] Compiling PerfectCRUD Comparison.swift
[42/63] Compiling PerfectCRUD ComparisonInts.swift
[43/63] Compiling PerfectCRUD Equality.swift
[44/63] Compiling PerfectCRUD EqualityInts.swift
[45/63] Compiling PerfectCRUD Expression.swift
[46/63] Compiling SwiftMoment Duration.swift
[47/63] Emitting module SwiftMoment
[48/63] Emitting module PerfectCRUD
[51/63] Compiling PerfectCRUD CodingJoins.swift
[52/63] Compiling PerfectCRUD CodingKeyPaths.swift
[53/63] Compiling PerfectCRUD CodingNames.swift
[54/63] Compiling PerfectCRUD CodingRows.swift
[55/63] Compiling PerfectCRUD Create.swift
[56/63] Compiling PerfectCRUD Database.swift
[57/63] Compiling SwiftMoment MomentFromNow.swift
[58/63] Compiling SwiftMoment Extensions.swift
[59/63] Compiling SwiftMoment Moment.swift
[60/64] Compiling PerfectLib Utilities.swift
error: fatalError
warning: 'perfect-libcurl': ignoring declared target(s) 'cURL' in the system package
warning: 'perfect-libpq-linux': ignoring declared target(s) 'libpq' in the system package
warning: you may be able to install libpq using your system-packager:
    apt-get install libpq-dev
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Emitting module SwiftMoment
[4/11] Compiling PerfectCRUD Where.swift
[5/14] Compiling PerfectCRUD Update.swift
[6/17] 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:85:19: error: cannot find 'readlink' in scope
        let res = readlink(internalPath, buffer, maxPath)
                  ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:116:15: error: cannot find 'wordexp_t' in scope
                        var wexp = wordexp_t()
                                   ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:117:15: error: cannot find 'wordexp' in scope
                        guard 0 == wordexp(inPath, &wexp, 0),
                                   ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:122:5: error: cannot find 'wordfree' in scope
                                wordfree(&wexp)
                                ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:148:8: error: module 'SwiftGlibc' has no member named 'close'
                        _ = SwiftGlibc.close(CInt(fd))
                            ^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:258: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:264: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:274:9: error: cannot find 'unlink' in scope
        unlink(path)
        ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:407:13: error: cannot find 'symlink' in scope
                let res = symlink(self.path, path)
                          ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:442:19: error: cannot find 'read' in scope
                let readCount = read(CInt(fd), ptr, bSize)
                                ^~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:480:15: error: module 'SwiftGlibc' has no member named 'write'
                let wrote = SwiftGlibc.write(Int32(fd), ptr, len)
                            ^~~~~~~~~~ ~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:573:18: error: cannot find 'mkstemp' in scope
        let fd = mkstemp(name)
                 ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/File.swift:584: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:589: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:594:43: error: cannot find 'STDERR_FILENO' in scope
        return UnclosableFile("/dev/stderr", fd: STDERR_FILENO)
                                                 ^~~~~~~~~~~~~
[7/17] Compiling PerfectLib Dir.swift
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128: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:128: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:56:11: error: cannot find 'getcwd' in scope
                let _ = getcwd(UnsafeMutableRawPointer(mutating: buffer).assumingMemoryBound(to: Int8.self), 2048)
                        ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:62:10: error: cannot find 'access' in scope
                return access(path, F_OK) != -1
                       ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:89:13: error: cannot find 'rmdir' in scope
                let res = rmdir(realPath)
                          ^~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:129:16: error: cannot find 'readdir_r' in scope
        return readdir_r(d, &dirEnt, endPtr)
               ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:141:19: error: cannot find 'opendir' in scope
                guard let dir = opendir(realPath) else {
                                ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:145:11: error: cannot find 'closedir' in scope
                defer { closedir(dir) }
                        ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:147:13: error: cannot find 'dirent' in scope
                var ent = dirent()
                          ^~~~~~
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:148: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:174:41: error: cannot find 'DT_DIR' in scope
                if Int32(type) == Int32(DT_DIR) {
                                        ^~~~~~
[8/17] Compiling PerfectCRUD Table.swift
[9/17] Emitting module PerfectCRUD
[10/17] Compiling PerfectCRUD Select.swift
[11/17] Compiling PerfectCRUD Database.swift
[12/17] Compiling PerfectCRUD Insert.swift
[13/17] Compiling PerfectCRUD Create.swift
[14/17] Compiling PerfectCRUD Join.swift
[15/17] Compiling PerfectCRUD PerfectCRUD.swift
[17/18] Compiling PerfectLib Bytes.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/18] Emitting module PerfectLib
/host/spi-builder-workspace/.build/checkouts/PerfectLib/Sources/PerfectLib/Dir.swift:128: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:128:114: error: cannot find type 'dirent' in scope
    func readDir(_ d: OpaquePointer, _ dirEnt: inout dirent, _ endPtr: UnsafeMutablePointer<UnsafeMutablePointer<dirent>?>!) -> Int32 {
                                                                                                                 ^~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1