Build Information
Failed to build PerfectFileMaker with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-filemaker.git
Reference: 3.0.1
Cloned https://github.com/perfectlysoft/perfect-filemaker.git into spi-builder-workspace
SUCCESS checkout https://github.com/perfectlysoft/perfect-filemaker.git at 3.0.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/PerfectlySoft/Perfect-CURL.git
Fetching https://github.com/PerfectlySoft/Perfect-XML.git
[1/504] Fetching perfect-curl
[505/731] Fetching perfect-curl, perfect-xml
Fetched https://github.com/PerfectlySoft/Perfect-CURL.git (0.29s)
Fetched https://github.com/PerfectlySoft/Perfect-XML.git (0.29s)
Computing version for https://github.com/PerfectlySoft/Perfect-XML.git
Computed https://github.com/PerfectlySoft/Perfect-XML.git at 3.1.3 (0.32s)
Fetching https://github.com/PerfectlySoft/Perfect-libxml2.git
Fetched https://github.com/PerfectlySoft/Perfect-libxml2.git (0.24s)
Computing version for https://github.com/PerfectlySoft/Perfect-libxml2.git
Computed https://github.com/PerfectlySoft/Perfect-libxml2.git at 3.0.1 (0.30s)
Computing version for https://github.com/PerfectlySoft/Perfect-CURL.git
Computed https://github.com/PerfectlySoft/Perfect-CURL.git at 3.1.0 (0.30s)
Fetching https://github.com/PerfectlySoft/Perfect-HTTP.git
Fetching https://github.com/PerfectlySoft/Perfect-libcurl.git
[1/808] Fetching perfect-http
Fetched https://github.com/PerfectlySoft/Perfect-libcurl.git (0.28s)
Fetched https://github.com/PerfectlySoft/Perfect-HTTP.git (0.30s)
Computing version for https://github.com/PerfectlySoft/Perfect-libcurl.git
Computed https://github.com/PerfectlySoft/Perfect-libcurl.git at 2.1.0 (0.30s)
Computing version for https://github.com/PerfectlySoft/Perfect-HTTP.git
Computed https://github.com/PerfectlySoft/Perfect-HTTP.git at 3.3.0 (0.33s)
Fetching https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Fetching https://github.com/PerfectlySoft/Perfect-Net.git
Fetching https://github.com/PerfectlySoft/PerfectLib.git
[1/570] Fetching perfect-net
Fetched https://github.com/PerfectlySoft/Perfect-LinuxBridge.git (0.22s)
[184/11310] Fetching perfect-net, perfectlib
warning: 'perfectlib': skipping cache due to an error: Failed to clone repository https://github.com/PerfectlySoft/PerfectLib.git:
Cloning into bare repository '/root/.cache/org.swift.swiftpm/repositories/PerfectLib-7b80d868'...
remote: Enumerating objects: 10740, done.
remote: Counting objects: 0% (1/1013)
remote: Counting objects: 1% (11/1013)
remote: Counting objects: 2% (21/1013)
remote: Counting objects: 3% (31/1013)
remote: Counting objects: 4% (41/1013)
remote: Counting objects: 5% (51/1013)
remote: Counting objects: 6% (61/1013)
remote: Counting objects: 7% (71/1013)
remote: Counting objects: 8% (82/1013)
remote: Counting objects: 9% (92/1013)
remote: Counting objects: 10% (102/1013)
remote: Counting objects: 11% (112/1013)
remote: Counting objects: 12% (122/1013)
remote: Counting objects: 13% (132/1013)
remote: Counting objects: 14% (142/1013)
remote: Counting objects: 15% (152/1013)
remote: Counting objects: 16% (163/1013)
remote: Counting objects: 17% (173/1013)
remote: Counting objects: 18% (183/1013)
remote: Counting objects: 19% (193/1013)
remote: Counting objects: 20% (203/1013)
remote: Counting objects: 21% (213/1013)
remote: Counting objects: 22% (223/1013)
remote: Counting objects: 23% (233/1013)
remote: Counting objects: 24% (244/1013)
remote: Counting objects: 25% (254/1013)
remote: Counting objects: 26% (264/1013)
remote: Counting objects: 27% (274/1013)
remote: Counting objects: 28% (284/1013)
remote: Counting objects: 29% (294/1013)
remote: Counting objects: 30% (304/1013)
remote: Counting objects: 31% (315/1013)
remote: Counting objects: 32% (325/1013)
remote: Counting objects: 33% (335/1013)
remote: Counting objects: 34% (345/1013)
remote: Counting objects: 35% (355/1013)
remote: Counting objects: 36% (365/1013)
remote: Counting objects: 37% (375/1013)
remote: Counting objects: 38% (385/1013)
remote: Counting objects: 39% (396/1013)
remote: Counting objects: 40% (406/1013)
remote: Counting objects: 41% (416/1013)
remote: Counting objects: 42% (426/1013)
remote: Counting objects: 43% (436/1013)
remote: Counting objects: 44% (446/1013)
remote: Counting objects: 45% (456/1013)
remote: Counting objects: 46% (466/1013)
remote: Counting objects: 47% (477/1013)
remote: Counting objects: 48% (487/1013)
remote: Counting objects: 49% (497/1013)
remote: Counting objects: 50% (507/1013)
remote: Counting objects: 51% (517/1013)
remote: Counting objects: 52% (527/1013)
remote: Counting objects: 53% (537/1013)
remote: Counting objects: 54% (548/1013)
remote: Counting objects: 55% (558/1013)
remote: Counting objects: 56% (568/1013)
remote: Counting objects: 57% (578/1013)
remote: Counting objects: 58% (588/1013)
remote: Counting objects: 59% (598/1013)
remote: Counting objects: 60% (608/1013)
remote: Counting objects: 61% (618/1013)
remote: Counting objects: 62% (629/1013)
remote: Counting objects: 63% (639/1013)
remote: Counting objects: 64% (649/1013)
remote: Counting objects: 65% (659/1013)
remote: Counting objects: 66% (669/1013)
remote: Counting objects: 67% (679/1013)
remote: Counting objects: 68% (689/1013)
remote: Counting objects: 69% (699/1013)
remote: Counting objects: 70% (710/1013)
remote: Counting objects: 71% (720/1013)
remote: Counting objects: 72% (730/1013)
remote: Counting objects: 73% (740/1013)
remote: Counting objects: 74% (750/1013)
remote: Counting objects: 75% (760/1013)
remote: Counting objects: 76% (770/1013)
remote: Counting objects: 77% (781/1013)
remote: Counting objects: 78% (791/1013)
remote: Counting objects: 79% (801/1013)
remote: Counting objects: 80% (811/1013)
remote: Counting objects: 81% (821/1013)
remote: Counting objects: 82% (831/1013)
remote: Counting objects: 83% (841/1013)
remote: Counting objects: 84% (851/1013)
remote: Counting objects: 85% (862/1013)
remote: Counting objects: 86% (872/1013)
remote: Counting objects: 87% (882/1013)
remote: Counting objects: 88% (892/1013)
remote: Counting objects: 89% (902/1013)
remote: Counting objects: 90% (912/1013)
remote: Counting objects: 91% (922/1013)
remote: Counting objects: 92% (932/1013)
remote: Counting objects: 93% (943/1013)
remote: Counting objects: 94% (953/1013)
remote: Counting objects: 95% (963/1013)
remote: Counting objects: 96% (973/1013)
remote: Counting objects: 97% (983/1013)
remote: Counting objects: 98% (993/1013)
remote: Counting objects: 99% (1003/1013)
remote: Counting objects: 100% (1013/1013)
remote: Counting objects: 100% (1013/1013), done.
remote: Compressing objects: 0% (1/561)
remote: Compressing objects: 1% (6/561)
remote: Compressing objects: 2% (12/561)
remote: Compressing objects: 3% (17/561)
remote: Compressing objects: 4% (23/561)
remote: Compressing objects: 5% (29/561)
remote: Compressing objects: 6% (34/561)
remote: Compressing objects: 7% (40/561)
remote: Compressing objects: 8% (45/561)
remote: Compressing objects: 9% (51/561)
remote: Compressing objects: 10% (57/561)
remote: Compressing objects: 11% (62/561)
remote: Compressing objects: 12% (68/561)
remote: Compressing objects: 13% (73/561)
remote: Compressing objects: 14% (79/561)
remote: Compressing objects: 15% (85/561)
remote: Compressing objects: 16% (90/561)
remote: Compressing objects: 17% (96/561)
remote: Compressing objects: 18% (101/561)
remote: Compressing objects: 19% (107/561)
remote: Compressing objects: 20% (113/561)
remote: Compressing objects: 21% (118/561)
remote: Compressing objects: 22% (124/561)
remote: Compressing objects: 23% (130/561)
remote: Compressing objects: 24% (135/561)
remote: Compressing objects: 25% (141/561)
remote: Compressing objects: 26% (146/561)
remote: Compressing objects: 27% (152/561)
remote: Compressing objects: 28% (158/561)
remote: Compressing objects: 29% (163/561)
remote: Compressing objects: 30% (169/561)
remote: Compressing objects: 31% (174/561)
remote: Compressing objects: 32% (180/561)
remote: Compressing objects: 33% (186/561)
remote: Compressing objects: 34% (191/561)
remote: Compressing objects: 35% (197/561)
remote: Compressing objects: 36% (202/561)
remote: Compressing objects: 37% (208/561)
remote: Compressing objects: 38% (214/561)
remote: Compressing objects: 39% (219/561)
remote: Compressing objects: 40% (225/561)
remote: Compressing objects: 41% (231/561)
remote: Compressing objects: 42% (236/561)
remote: Compressing objects: 43% (242/561)
remote: Compressing objects: 44% (247/561)
remote: Compressing objects: 45% (253/561)
remote: Compressing objects: 46% (259/561)
remote: Compressing objects: 47% (264/561)
remote: Compressing objects: 48% (270/561)
remote: Compressing objects: 49% (275/561)
remote: Compressing objects: 50% (281/561)
remote: Compressing objects: 51% (287/561)
remote: Compressing objects: 52% (292/561)
remote: Compressing objects: 53% (298/561)
remote: Compressing objects: 54% (303/561)
remote: Compressing objects: 55% (309/561)
remote: Compressing objects: 56% (315/561)
remote: Compressing objects: 57% (320/561)
remote: Compressing objects: 58% (326/561)
remote: Compressing objects: 59% (331/561)
remote: Compressing objects: 60% (337/561)
remote: Compressing objects: 61% (343/561)
remote: Compressing objects: 62% (348/561)
remote: Compressing objects: 63% (354/561)
remote: Compressing objects: 64% (360/561)
remote: Compressing objects: 65% (365/561)
remote: Compressing objects: 66% (371/561)
remote: Compressing objects: 67% (376/561)
remote: Compressing objects: 68% (382/561)
remote: Compressing objects: 69% (388/561)
remote: Compressing objects: 70% (393/561)
remote: Compressing objects: 71% (399/561)
remote: Compressing objects: 72% (404/561)
remote: Compressing objects: 73% (410/561)
remote: Compressing objects: 74% (416/561)
remote: Compressing objects: 75% (421/561)
remote: Compressing objects: 76% (427/561)
remote: Compressing objects: 77% (432/561)
remote: Compressing objects: 78% (438/561)
remote: Compressing objects: 79% (444/561)
remote: Compressing objects: 80% (449/561)
remote: Compressing objects: 81% (455/561)
remote: Compressing objects: 82% (461/561)
remote: Compressing objects: 83% (466/561)
remote: Compressing objects: 84% (472/561)
remote: Compressing objects: 85% (477/561)
remote: Compressing objects: 86% (483/561)
remote: Compressing objects: 87% (489/561)
remote: Compressing objects: 88% (494/561)
remote: Compressing objects: 89% (500/561)
remote: Compressing objects: 90% (505/561)
remote: Compressing objects: 91% (511/561)
remote: Compressing objects: 92% (517/561)
remote: Compressing objects: 93% (522/561)
remote: Compressing objects: 94% (528/561)
remote: Compressing objects: 95% (533/561)
remote: Compressing objects: 96% (539/561)
remote: Compressing objects: 97% (545/561)
remote: Compressing objects: 98% (550/561)
remote: Compressing objects: 99% (556/561)
remote: Compressing objects: 100% (561/561)
remote: Compressing objects: 100% (561/561), done.
Receiving objects: 0% (1/10740)
Receiving objects: 1% (108/10740)
Receiving objects: 2% (215/10740)
Receiving objects: 3% (323/10740)
Receiving objects: 4% (430/10740)
Receiving objects: 5% (537/10740)
Receiving objects: 6% (645/10740)
Receiving objects: 7% (752/10740)
Receiving objects: 8% (860/10740)
Receiving objects: 9% (967/10740)
Receiving objects: 10% (1074/10740)
Receiving objects: 11% (1182/10740)
Receiving objects: 12% (1289/10740)
Receiving objects: 13% (1397/10740)
Receiving objects: 14% (1504/10740)
Receiving objects: 15% (1611/10740)
Receiving objects: 16% (1719/10740)
Receiving objects: 17% (1826/10740)
Receiving objects: 18% (1934/10740)
Receiving objects: 19% (2041/10740)
Receiving objects: 20% (2148/10740)
Receiving objects: 21% (2256/10740)
Receiving objects: 22% (2363/10740)
Receiving objects: 23% (2471/10740)
Receiving objects: 24% (2578/10740)
Receiving objects: 25% (2685/10740)
Receiving objects: 26% (2793/10740)
Receiving objects: 27% (2900/10740)
Receiving objects: 28% (3008/10740)
Receiving objects: 29% (3115/10740)
Receiving objects: 30% (3222/10740)
Receiving objects: 31% (3330/10740)
Receiving objects: 32% (3437/10740)
Receiving objects: 33% (3545/10740)
Receiving objects: 34% (3652/10740)
Receiving objects: 35% (3759/10740)
Receiving objects: 36% (3867/10740)
Receiving objects: 37% (3974/10740)
Receiving objects: 38% (4082/10740)
Receiving objects: 39% (4189/10740)
Receiving objects: 40% (4296/10740)
Receiving objects: 41% (4404/10740)
Receiving objects: 42% (4511/10740)
Receiving objects: 43% (4619/10740)
Receiving objects: 44% (4726/10740)
Receiving objects: 45% (4833/10740)
Receiving objects: 46% (4941/10740)
Receiving objects: 47% (5048/10740)
Receiving objects: 48% (5156/10740)
Receiving objects: 49% (5263/10740)
Receiving objects: 50% (5370/10740)
Receiving objects: 51% (5478/10740)
Receiving objects: 52% (5585/10740)
Receiving objects: 53% (5693/10740)
Receiving objects: 54% (5800/10740)
Receiving objects: 55% (5907/10740)
Receiving objects: 56% (6015/10740)
Receiving objects: 57% (6122/10740)
Receiving objects: 58% (6230/10740)
Receiving objects: 59% (6337/10740)
Receiving objects: 60% (6444/10740)
Receiving objects: 61% (6552/10740)
Receiving objects: 62% (6659/10740)
Receiving objects: 63% (6767/10740)
Receiving objects: 64% (6874/10740)
Receiving objects: 65% (6981/10740)
Receiving objects: 66% (7089/10740)
Receiving objects: 67% (7196/10740)
Receiving objects: 68% (7304/10740)
Receiving objects: 69% (7411/10740)
Receiving objects: 70% (7518/10740)
Receiving objects: 71% (7626/10740)
Receiving objects: 72% (7733/10740)
Receiving objects: 73% (7841/10740)
Receiving objects: 74% (7948/10740)
Receiving objects: 75% (8055/10740)
Receiving objects: 76% (8163/10740)
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Fetched https://github.com/PerfectlySoft/Perfect-Net.git (0.92s)
[1/10740] Fetching perfectlib
Fetched https://github.com/PerfectlySoft/PerfectLib.git (4.46s)
Computing version for https://github.com/PerfectlySoft/Perfect-LinuxBridge.git
Computed https://github.com/PerfectlySoft/Perfect-LinuxBridge.git at 3.1.0 (0.31s)
Computing version for https://github.com/PerfectlySoft/Perfect-Net.git
Computed https://github.com/PerfectlySoft/Perfect-Net.git at 3.3.0 (0.31s)
Fetching https://github.com/PerfectlySoft/Perfect-Thread.git
Fetching https://github.com/PerfectlySoft/Perfect-Crypto.git
[1/612] Fetching perfect-crypto
[613/991] Fetching perfect-crypto, perfect-thread
Fetched https://github.com/PerfectlySoft/Perfect-Crypto.git (0.29s)
Fetched https://github.com/PerfectlySoft/Perfect-Thread.git (0.29s)
Computing version for https://github.com/PerfectlySoft/Perfect-Crypto.git
Computed https://github.com/PerfectlySoft/Perfect-Crypto.git at 3.3.0 (0.35s)
Fetching https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git
[1/188] Fetching perfect-copenssl-linux
Fetched https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git (0.26s)
Computing version for https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git
Computed https://github.com/PerfectlySoft/Perfect-COpenSSL-Linux.git at 4.0.2 (1.25s)
Computing version for https://github.com/PerfectlySoft/Perfect-Thread.git
Computed https://github.com/PerfectlySoft/Perfect-Thread.git at 3.0.7 (0.31s)
Computing version for https://github.com/PerfectlySoft/PerfectLib.git
Computed https://github.com/PerfectlySoft/PerfectLib.git at 3.1.4 (0.33s)
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-XML.git
Working copy of https://github.com/PerfectlySoft/Perfect-XML.git resolved at 3.1.3
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-libxml2.git
Working copy of https://github.com/PerfectlySoft/Perfect-libxml2.git resolved at 3.0.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-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/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-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/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-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-Net.git
Working copy of https://github.com/PerfectlySoft/Perfect-Net.git resolved at 3.3.0
warning: 'perfect-libcurl': ignoring declared target(s) 'cURL' in the system package
warning: 'perfect-libxml2': ignoring declared target(s) 'libxml2' in the system package
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install libxml-2.0 using your system-packager:
apt-get install libxml2-dev
Building for debugging...
[0/1] Compiling LinuxBridge LinuxBridge.c
[2/20] Emitting module PerfectThread
[3/20] Compiling PerfectXML XMLDOM.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
^
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
#include <libxml2/libxml/tree.h>
^
/host/spi-builder-workspace/.build/checkouts/Perfect-XML/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
import perfectxml2
^
[4/20] Compiling PerfectXML XPath.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
^
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
#include <libxml2/libxml/tree.h>
^
/host/spi-builder-workspace/.build/checkouts/Perfect-XML/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
import perfectxml2
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/20] 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 {
^~~~~~
[6/21] Compiling PerfectThread Threading.swift
[7/21] Compiling PerfectLib PerfectServer.swift
[8/21] Compiling PerfectLib PerfectError.swift
[9/21] Compiling PerfectLib SysProcess.swift
[10/21] Compiling PerfectLib Log.swift
[11/21] Compiling PerfectThread Promise.swift
[12/21] Compiling PerfectThread ThreadQueue.swift
[15/23] Compiling PerfectLib JSONConvertible.swift
[16/23] Compiling PerfectXML XMLStream.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
^
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
#include <libxml2/libxml/tree.h>
^
/host/spi-builder-workspace/.build/checkouts/Perfect-XML/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
import perfectxml2
^
[17/23] 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)
^~~~~~~~~~~~~
[18/23] Compiling PerfectLib Bytes.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) {
^~~~~~
[19/23] 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) {
^~~~~~
[20/23] Compiling PerfectLib Utilities.swift
error: fatalError
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/23] Emitting module PerfectXML
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
^
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
#include <libxml2/libxml/tree.h>
^
/host/spi-builder-workspace/.build/checkouts/Perfect-XML/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
import perfectxml2
^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "libxml2.h"
^
/host/spi-builder-workspace/.build/checkouts/Perfect-libxml2/libxml2.h:4:10: error: 'libxml2/libxml/tree.h' file not found
#include <libxml2/libxml/tree.h>
^
/host/spi-builder-workspace/.build/checkouts/Perfect-XML/Sources/PerfectXML/SAX.swift:8:8: error: could not build C module 'perfectxml2'
import perfectxml2
^
BUILD FAILURE 5.9 linux
Build Machine: Linux 2