The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Fortify, reference main (999f26), with Swift 6.1 for Wasm on 30 May 2025 15:18:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/Fortify.git
Reference: main
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/johnno1962/Fortify
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 999f264 Remove #filePath
Cloned https://github.com/johnno1962/Fortify.git
Revision (git rev-parse @):
999f2644ed80ecd67db3344c79bfe9f329f03ad5
SUCCESS checkout https://github.com/johnno1962/Fortify.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/johnno1962/Fortify.git
https://github.com/johnno1962/Fortify.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "stringindex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnno1962/StringIndex"
    },
    {
      "identity" : "swiftregex5",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.0.1",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnno1962/SwiftRegex5.git"
    },
    {
      "identity" : "popen",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnno1962/Popen.git"
    },
    {
      "identity" : "dlkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.2.3",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/johnno1962/DLKit"
    }
  ],
  "manifest_display_name" : "Fortify",
  "name" : "Fortify",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Fortify",
      "targets" : [
        "Fortify"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FortifyTests",
      "module_type" : "SwiftTarget",
      "name" : "FortifyTests",
      "path" : "Tests/FortifyTests",
      "sources" : [
        "FortifyTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Fortify"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Fortify",
      "module_type" : "SwiftTarget",
      "name" : "Fortify",
      "path" : "Sources",
      "product_dependencies" : [
        "StringIndex",
        "DLKit",
        "Popen",
        "DLKitC",
        "SwiftRegex"
      ],
      "product_memberships" : [
        "Fortify"
      ],
      "sources" : [
        "Fortify.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/johnno1962/SwiftRegex5.git
Fetching https://github.com/johnno1962/StringIndex
Fetching https://github.com/johnno1962/DLKit
Fetching https://github.com/johnno1962/Popen.git
[1/154] Fetching stringindex
[3/281] Fetching stringindex, popen
[282/490] Fetching stringindex, popen, swiftregex5
[491/889] Fetching stringindex, popen, swiftregex5, dlkit
Fetched https://github.com/johnno1962/StringIndex from cache (0.34s)
Fetched https://github.com/johnno1962/SwiftRegex5.git from cache (0.34s)
Fetched https://github.com/johnno1962/DLKit from cache (0.35s)
Fetched https://github.com/johnno1962/Popen.git from cache (0.35s)
Computing version for https://github.com/johnno1962/SwiftRegex5.git
Computed https://github.com/johnno1962/SwiftRegex5.git at 6.1.3 (0.91s)
Computing version for https://github.com/johnno1962/StringIndex
Computed https://github.com/johnno1962/StringIndex at 2.2.4 (0.94s)
Computing version for https://github.com/johnno1962/Popen.git
Computed https://github.com/johnno1962/Popen.git at 2.1.7 (0.53s)
Computing version for https://github.com/johnno1962/DLKit
Computed https://github.com/johnno1962/DLKit at 3.4.8 (0.54s)
Fetching https://github.com/johnno1962/fishhook
[1/169] Fetching fishhook
Fetched https://github.com/johnno1962/fishhook from cache (0.17s)
Computing version for https://github.com/johnno1962/fishhook
Computed https://github.com/johnno1962/fishhook at 1.2.1 (0.67s)
Creating working copy for https://github.com/johnno1962/Popen.git
Working copy of https://github.com/johnno1962/Popen.git resolved at 2.1.7
Creating working copy for https://github.com/johnno1962/SwiftRegex5.git
Working copy of https://github.com/johnno1962/SwiftRegex5.git resolved at 6.1.3
Creating working copy for https://github.com/johnno1962/fishhook
Working copy of https://github.com/johnno1962/fishhook resolved at 1.2.1
Creating working copy for https://github.com/johnno1962/StringIndex
Working copy of https://github.com/johnno1962/StringIndex resolved at 2.2.4
Creating working copy for https://github.com/johnno1962/DLKit
Working copy of https://github.com/johnno1962/DLKit resolved at 3.4.8
Building for debugging...
[0/10] Write sources
[5/10] Compiling DLKitC trie_dlops.mm
[6/10] Compiling fishhook fishhook.c
[7/10] Compiling DLKitC DLKitC.c
[8/10] Compiling DLKitC trie_dladdr.mm
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/30] Emitting module DLKit
[12/30] Compiling DLKit Demangling.swift
[13/30] Compiling DLKit Interposing.swift
[14/30] Compiling DLKit Iterators.swift
[15/30] Compiling Popen Topen.swift
[16/30] Compiling DLKit DLKit.swift
[17/30] Compiling DLKit ImageSymbols.swift
[18/30] Compiling DLKit FileSymbols.swift
[20/31] Compiling Popen Fstat.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fstat.swift:41:32: error: cannot find 'geteuid' in scope
39 |     public var isSocket: Bool { modeFlags == S_IFLNK }
40 |     public var isLink: Bool { modeFlags == S_IFSOCK }
41 |     public var isOwned: Bool { geteuid() == st_uid }
   |                                `- error: cannot find 'geteuid' in scope
42 | }
43 |
[21/31] Compiling Popen Glob.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Glob.swift:26:29: error: value of type 'glob_t' has no member 'gl_matchc'
24 |         defer { index += 1 }
25 |         #if !os(Linux)
26 |         guard index < pglob.gl_matchc else { return nil }
   |                             `- error: value of type 'glob_t' has no member 'gl_matchc'
27 |         #endif
28 |         return pglob.gl_pathv[index]
[22/31] Compiling StringIndex Subscripts.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/31] Emitting module Popen
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:53:47: error: cannot find type 'FILE' in scope
 51 |     }
 52 |
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:55:47: error: cannot find type 'FILE' in scope
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
    |                                               `- error: cannot find type 'FILE' in scope
 56 |         guard let stream = stream else { return nil }
 57 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:26:54: error: cannot find type 'FILE' in scope
 24 | @_silgen_name("popen")
 25 | public func popen(_: UnsafePointer<CChar>,
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
    |                                                      `- error: cannot find type 'FILE' in scope
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:28:44: error: cannot find type 'FILE' in scope
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
    |                                            `- error: cannot find type 'FILE' in scope
 29 |
 30 | open class Popen: FILEStream, Sequence, IteratorProtocol {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:78:47: error: cannot find type 'FILE' in scope
 76 |     #endif
 77 |
 78 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:81:46: error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
 81 |     public init(stream: UnsafeMutablePointer<FILE>) {
    |                                              `- error: cannot find type 'FILE' in scope
 82 |         Self.openFILEStreams += 1
 83 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:17:61: error: cannot find type 'FILE' in scope
15 |
16 | extension UnsafeMutablePointer: FILEStream,
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
   |                                                             `- error: cannot find type 'FILE' in scope
18 |     public typealias Element = String
19 |     public var fileStream: Self { return self }
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | `- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | |- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
   | `- note: add stubs for conformance
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
Swift.Sequence.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol Sequence {
2 | associatedtype Element where Self.Element == Self.Iterator.Element}
  |                `- note: protocol requires nested type 'Element'
3 |
Swift.Sequence.Iterator:2:16: note: protocol requires nested type 'Iterator'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: protocol requires nested type 'Iterator'
3 |
[24/31] Compiling Popen Fopen.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:53:47: error: cannot find type 'FILE' in scope
 51 |     }
 52 |
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:55:47: error: cannot find type 'FILE' in scope
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
    |                                               `- error: cannot find type 'FILE' in scope
 56 |         guard let stream = stream else { return nil }
 57 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:62:14: error: no exact matches in call to initializer
 59 |     }
 60 |
 61 |     public convenience init?(path: String, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (path: String, mode: Fopen.FILEMode)
 62 |         self.init(stream: fopen(path, mode.mode))
    |              `- error: no exact matches in call to initializer
 63 |     }
 64 |
 65 |     public convenience init?(fd: CInt, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (fd: CInt, mode: Fopen.FILEMode)
 66 |         self.init(stream: fdopen(fd, mode.mode))
 67 |     }
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:66:14: error: no exact matches in call to initializer
 59 |     }
 60 |
 61 |     public convenience init?(path: String, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (path: String, mode: Fopen.FILEMode)
 62 |         self.init(stream: fopen(path, mode.mode))
 63 |     }
 64 |
 65 |     public convenience init?(fd: CInt, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (fd: CInt, mode: Fopen.FILEMode)
 66 |         self.init(stream: fdopen(fd, mode.mode))
    |              `- error: no exact matches in call to initializer
 67 |     }
 68 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:72:14: error: no exact matches in call to initializer
 59 |     }
 60 |
 61 |     public convenience init?(path: String, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (path: String, mode: Fopen.FILEMode)
 62 |         self.init(stream: fopen(path, mode.mode))
 63 |     }
 64 |
 65 |     public convenience init?(fd: CInt, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (fd: CInt, mode: Fopen.FILEMode)
 66 |         self.init(stream: fdopen(fd, mode.mode))
 67 |     }
    :
 70 |     public convenience init?(buffer: UnsafeMutableRawPointer,
 71 |                              count: Int, mode: FILEMode = .read) {
 72 |         self.init(stream: fmemopen(buffer, count, mode.mode))
    |              `- error: no exact matches in call to initializer
 73 |     }
 74 |
[25/31] Compiling StringIndex StringIndex.swift
[26/31] Compiling StringIndex OffsetIndex.swift
[27/31] Emitting module StringIndex
[28/32] Compiling Popen Stream.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:17:61: error: cannot find type 'FILE' in scope
15 |
16 | extension UnsafeMutablePointer: FILEStream,
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
   |                                                             `- error: cannot find type 'FILE' in scope
18 |     public typealias Element = String
19 |     public var fileStream: Self { return self }
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | `- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | |- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
   | `- note: add stubs for conformance
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
Swift.Sequence.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol Sequence {
2 | associatedtype Element where Self.Element == Self.Iterator.Element}
  |                `- note: protocol requires nested type 'Element'
3 |
Swift.Sequence.Iterator:2:16: note: protocol requires nested type 'Iterator'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: protocol requires nested type 'Iterator'
3 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:28:44: error: cannot find type 'FILE' in scope
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
    |                                            `- error: cannot find type 'FILE' in scope
 29 |
 30 | open class Popen: FILEStream, Sequence, IteratorProtocol {
[29/32] Compiling Popen Popen.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:26:54: error: cannot find type 'FILE' in scope
 24 | @_silgen_name("popen")
 25 | public func popen(_: UnsafePointer<CChar>,
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
    |                                                      `- error: cannot find type 'FILE' in scope
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:28:44: error: cannot find type 'FILE' in scope
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
    |                                            `- error: cannot find type 'FILE' in scope
 29 |
 30 | open class Popen: FILEStream, Sequence, IteratorProtocol {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:78:47: error: cannot find type 'FILE' in scope
 76 |     #endif
 77 |
 78 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:81:46: error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
 81 |     public init(stream: UnsafeMutablePointer<FILE>) {
    |                                              `- error: cannot find type 'FILE' in scope
 82 |         Self.openFILEStreams += 1
 83 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:90:27: error: extra argument 'stream' in call
 88 |             return nil
 89 |         }
 90 |         self.init(stream: stream)
    |                           `- error: extra argument 'stream' in call
 91 |     }
 92 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:90:19: error: missing argument for parameter 'cmd' in call
 84 |     }
 85 |
 86 |     public convenience init?(cmd: String, mode: Fopen.FILEMode = .read) {
    |                        `- note: 'init(cmd:mode:)' declared here
 87 |         guard let stream = popen(cmd, mode.mode) else {
 88 |             return nil
 89 |         }
 90 |         self.init(stream: stream)
    |                   `- error: missing argument for parameter 'cmd' in call
 91 |     }
 92 |
[31/32] Emitting module SwiftRegex
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/21] Compiling DLKit Iterators.swift
[3/21] Compiling DLKit ImageSymbols.swift
[4/21] Compiling DLKit Interposing.swift
[5/21] Compiling Popen Topen.swift
[6/21] Compiling DLKit Demangling.swift
[7/21] Compiling DLKit FileSymbols.swift
[8/21] Emitting module DLKit
[9/21] Compiling DLKit DLKit.swift
[11/22] Compiling Popen Fopen.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:53:47: error: cannot find type 'FILE' in scope
 51 |     }
 52 |
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:55:47: error: cannot find type 'FILE' in scope
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
    |                                               `- error: cannot find type 'FILE' in scope
 56 |         guard let stream = stream else { return nil }
 57 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:62:14: error: no exact matches in call to initializer
 59 |     }
 60 |
 61 |     public convenience init?(path: String, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (path: String, mode: Fopen.FILEMode)
 62 |         self.init(stream: fopen(path, mode.mode))
    |              `- error: no exact matches in call to initializer
 63 |     }
 64 |
 65 |     public convenience init?(fd: CInt, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (fd: CInt, mode: Fopen.FILEMode)
 66 |         self.init(stream: fdopen(fd, mode.mode))
 67 |     }
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:66:14: error: no exact matches in call to initializer
 59 |     }
 60 |
 61 |     public convenience init?(path: String, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (path: String, mode: Fopen.FILEMode)
 62 |         self.init(stream: fopen(path, mode.mode))
 63 |     }
 64 |
 65 |     public convenience init?(fd: CInt, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (fd: CInt, mode: Fopen.FILEMode)
 66 |         self.init(stream: fdopen(fd, mode.mode))
    |              `- error: no exact matches in call to initializer
 67 |     }
 68 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:72:14: error: no exact matches in call to initializer
 59 |     }
 60 |
 61 |     public convenience init?(path: String, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (path: String, mode: Fopen.FILEMode)
 62 |         self.init(stream: fopen(path, mode.mode))
 63 |     }
 64 |
 65 |     public convenience init?(fd: CInt, mode: FILEMode = .read) {
    |                        `- note: candidate has partially matching parameter list (fd: CInt, mode: Fopen.FILEMode)
 66 |         self.init(stream: fdopen(fd, mode.mode))
 67 |     }
    :
 70 |     public convenience init?(buffer: UnsafeMutableRawPointer,
 71 |                              count: Int, mode: FILEMode = .read) {
 72 |         self.init(stream: fmemopen(buffer, count, mode.mode))
    |              `- error: no exact matches in call to initializer
 73 |     }
 74 |
[12/22] Compiling Popen Fstat.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fstat.swift:41:32: error: cannot find 'geteuid' in scope
39 |     public var isSocket: Bool { modeFlags == S_IFLNK }
40 |     public var isLink: Bool { modeFlags == S_IFSOCK }
41 |     public var isOwned: Bool { geteuid() == st_uid }
   |                                `- error: cannot find 'geteuid' in scope
42 | }
43 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/22] Compiling Popen Popen.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:26:54: error: cannot find type 'FILE' in scope
 24 | @_silgen_name("popen")
 25 | public func popen(_: UnsafePointer<CChar>,
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
    |                                                      `- error: cannot find type 'FILE' in scope
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:28:44: error: cannot find type 'FILE' in scope
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
    |                                            `- error: cannot find type 'FILE' in scope
 29 |
 30 | open class Popen: FILEStream, Sequence, IteratorProtocol {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:78:47: error: cannot find type 'FILE' in scope
 76 |     #endif
 77 |
 78 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:81:46: error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
 81 |     public init(stream: UnsafeMutablePointer<FILE>) {
    |                                              `- error: cannot find type 'FILE' in scope
 82 |         Self.openFILEStreams += 1
 83 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:90:27: error: extra argument 'stream' in call
 88 |             return nil
 89 |         }
 90 |         self.init(stream: stream)
    |                           `- error: extra argument 'stream' in call
 91 |     }
 92 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:90:19: error: missing argument for parameter 'cmd' in call
 84 |     }
 85 |
 86 |     public convenience init?(cmd: String, mode: Fopen.FILEMode = .read) {
    |                        `- note: 'init(cmd:mode:)' declared here
 87 |         guard let stream = popen(cmd, mode.mode) else {
 88 |             return nil
 89 |         }
 90 |         self.init(stream: stream)
    |                   `- error: missing argument for parameter 'cmd' in call
 91 |     }
 92 |
[14/22] Compiling Popen Glob.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Glob.swift:26:29: error: value of type 'glob_t' has no member 'gl_matchc'
24 |         defer { index += 1 }
25 |         #if !os(Linux)
26 |         guard index < pglob.gl_matchc else { return nil }
   |                             `- error: value of type 'glob_t' has no member 'gl_matchc'
27 |         #endif
28 |         return pglob.gl_pathv[index]
[15/22] Compiling Popen Stream.swift
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:17:61: error: cannot find type 'FILE' in scope
15 |
16 | extension UnsafeMutablePointer: FILEStream,
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
   |                                                             `- error: cannot find type 'FILE' in scope
18 |     public typealias Element = String
19 |     public var fileStream: Self { return self }
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | `- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | |- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
   | `- note: add stubs for conformance
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
Swift.Sequence.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol Sequence {
2 | associatedtype Element where Self.Element == Self.Iterator.Element}
  |                `- note: protocol requires nested type 'Element'
3 |
Swift.Sequence.Iterator:2:16: note: protocol requires nested type 'Iterator'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: protocol requires nested type 'Iterator'
3 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:28:44: error: cannot find type 'FILE' in scope
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
    |                                            `- error: cannot find type 'FILE' in scope
 29 |
 30 | open class Popen: FILEStream, Sequence, IteratorProtocol {
[16/22] Emitting module Popen
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:53:47: error: cannot find type 'FILE' in scope
 51 |     }
 52 |
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Fopen.swift:55:47: error: cannot find type 'FILE' in scope
 53 |     open var fileStream: UnsafeMutablePointer<FILE>
 54 |
 55 |     public init?(stream: UnsafeMutablePointer<FILE>?) {
    |                                               `- error: cannot find type 'FILE' in scope
 56 |         guard let stream = stream else { return nil }
 57 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:13:42: error: cannot find type 'FILE' in scope
11 |
12 | public protocol FILEStream {
13 |     var fileStream: UnsafeMutablePointer<FILE> { get }
   |                                          `- error: cannot find type 'FILE' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:26:54: error: cannot find type 'FILE' in scope
 24 | @_silgen_name("popen")
 25 | public func popen(_: UnsafePointer<CChar>,
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
    |                                                      `- error: cannot find type 'FILE' in scope
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:28:44: error: cannot find type 'FILE' in scope
 26 |     _: UnsafePointer<CChar>) -> UnsafeMutablePointer<FILE>!
 27 | @_silgen_name("pclose")
 28 | public func pclose(_: UnsafeMutablePointer<FILE>?) -> CInt
    |                                            `- error: cannot find type 'FILE' in scope
 29 |
 30 | open class Popen: FILEStream, Sequence, IteratorProtocol {
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:78:47: error: cannot find type 'FILE' in scope
 76 |     #endif
 77 |
 78 |     open var fileStream: UnsafeMutablePointer<FILE>
    |                                               `- error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Popen.swift:81:46: error: cannot find type 'FILE' in scope
 79 |     open var exitStatus: CInt?
 80 |
 81 |     public init(stream: UnsafeMutablePointer<FILE>) {
    |                                              `- error: cannot find type 'FILE' in scope
 82 |         Self.openFILEStreams += 1
 83 |         fileStream = stream
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:17:61: error: cannot find type 'FILE' in scope
15 |
16 | extension UnsafeMutablePointer: FILEStream,
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
   |                                                             `- error: cannot find type 'FILE' in scope
18 |     public typealias Element = String
19 |     public var fileStream: Self { return self }
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | `- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'Sequence'
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
/host/spi-builder-workspace/.build/checkouts/Popen/Sources/Popen/Stream.swift:16:1: error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
14 | }
15 |
16 | extension UnsafeMutablePointer: FILEStream,
   | |- error: type 'UnsafeMutablePointer<Pointee>' does not conform to protocol 'IteratorProtocol'
   | `- note: add stubs for conformance
17 |     Swift.Sequence, Swift.IteratorProtocol where Pointee == FILE {
18 |     public typealias Element = String
Swift.Sequence.Element:2:16: note: protocol requires nested type 'Element'
1 | protocol Sequence {
2 | associatedtype Element where Self.Element == Self.Iterator.Element}
  |                `- note: protocol requires nested type 'Element'
3 |
Swift.Sequence.Iterator:2:16: note: protocol requires nested type 'Iterator'
1 | protocol Sequence {
2 | associatedtype Iterator : IteratorProtocol}
  |                `- note: protocol requires nested type 'Iterator'
3 |
BUILD FAILURE 6.1 wasm