Build Information
Failed to build swift-io, reference master (9c68f7), with Swift 6.1 for Android on 5 Oct 2025 13:00:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-io.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/tayloraswift/swift-io
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 9c68f73 format code using dollup
Cloned https://github.com/tayloraswift/swift-io.git
Revision (git rev-parse @):
9c68f73034a61b742a9dbc98661946b990e4b319
SUCCESS checkout https://github.com/tayloraswift/swift-io.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/tayloraswift/swift-io.git
https://github.com/tayloraswift/swift-io.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "swift-system",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-system"
}
],
"manifest_display_name" : "swift-io",
"name" : "swift-io",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "15.0"
},
{
"name" : "ios",
"version" : "18.0"
},
{
"name" : "visionos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "SystemIO",
"targets" : [
"SystemIO"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "System_ArgumentParser",
"targets" : [
"System_ArgumentParser"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "System_ArgumentParser",
"module_type" : "SwiftTarget",
"name" : "System_ArgumentParser",
"path" : "Sources/System_ArgumentParser",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"System_ArgumentParser"
],
"sources" : [
"FilePath (ext).swift",
"FilePath.Directory (ext).swift"
],
"target_dependencies" : [
"SystemIO"
],
"type" : "library"
},
{
"c99name" : "SystemTests",
"module_type" : "SwiftTarget",
"name" : "SystemTests",
"path" : "Sources/SystemTests",
"sources" : [
"Directories.swift"
],
"target_dependencies" : [
"SystemIO"
],
"type" : "test"
},
{
"c99name" : "SystemIO",
"module_type" : "SwiftTarget",
"name" : "SystemIO",
"path" : "Sources/SystemIO",
"product_dependencies" : [
"SystemPackage"
],
"product_memberships" : [
"SystemIO",
"System_ArgumentParser"
],
"sources" : [
"FileDescriptor.swift",
"FileError.swift",
"FilePath (ext).swift",
"FilePath.Directory.swift",
"FilePath.DirectoryIterator.Stream.swift",
"FilePath.DirectoryIterator.swift",
"FilePath.DirectoryPointer.swift",
"FilePermissions (ext).swift",
"FilePermissions.Component.swift",
"FileReadError.swift",
"FileSeekError.swift",
"FileStatus.swift",
"FileSystemStats.swift",
"FileType.swift",
"SystemProcess.Environment.swift",
"SystemProcess.EnvironmentEncoder.swift",
"SystemProcess.Stream.swift",
"SystemProcess.swift",
"SystemProcessError.swift",
"lexemes.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-argument-parser
[1/16643] Fetching swift-argument-parser
[2498/21681] Fetching swift-argument-parser, swift-system
Fetched https://github.com/apple/swift-system from cache (0.72s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.73s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (1.37s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.3 (0.70s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/9] Write sources
[7/9] Write swift-version-24593BA9C3E375BF.txt
[8/9] Compiling CSystem shims.c
[10/42] Emitting module SystemPackage
[11/46] Compiling SystemPackage SystemString.swift
[12/46] Compiling SystemPackage Util+StringArray.swift
[13/46] Compiling SystemPackage Util.swift
[14/46] Compiling SystemPackage UtilConsumers.swift
[15/46] Emitting module ArgumentParserToolInfo
[16/46] Compiling ArgumentParserToolInfo ToolInfo.swift
[18/47] Compiling SystemPackage FilePath.swift
[19/47] Compiling SystemPackage FilePathComponentView.swift
[20/47] Compiling SystemPackage FilePathComponents.swift
[21/47] Compiling SystemPackage FilePathParsing.swift
[22/47] Compiling SystemPackage FilePathString.swift
[23/47] Compiling SystemPackage Errno.swift
[24/47] Compiling SystemPackage ErrnoWindows.swift
[25/47] Compiling SystemPackage FileDescriptor.swift
[26/47] Compiling SystemPackage FileHelpers.swift
[27/47] Compiling SystemPackage FileOperations.swift
[28/47] Compiling SystemPackage FilePathSyntax.swift
[29/47] Compiling SystemPackage FilePathTemp.swift
[30/47] Compiling SystemPackage FilePathTempPosix.swift
[31/47] Compiling SystemPackage FilePathTempWindows.swift
[32/47] Compiling SystemPackage FilePathWindows.swift
[33/47] Compiling SystemPackage FilePermissions.swift
[34/47] Compiling SystemPackage IOCompletion.swift
[35/47] Compiling SystemPackage IORequest.swift
[36/91] Compiling ArgumentParser Flag.swift
[37/91] Compiling ArgumentParser NameSpecification.swift
[38/91] Compiling ArgumentParser Option.swift
[39/91] Compiling ArgumentParser InputKey.swift
[40/91] Compiling ArgumentParser CommandParser.swift
[41/91] Compiling ArgumentParser ArgumentVisibility.swift
[42/91] Compiling ArgumentParser CompletionKind.swift
[43/91] Compiling ArgumentParser Errors.swift
[44/91] Compiling ArgumentParser InputOrigin.swift
[45/91] Compiling ArgumentParser Name.swift
[46/91] Compiling ArgumentParser Parsed.swift
[47/91] Compiling ArgumentParser ParsedValues.swift
[49/111] Emitting module ArgumentParser
[50/111] Compiling SystemIO FileDescriptor.swift
[51/111] Compiling SystemIO FileError.swift
[52/111] Compiling SystemIO FilePath (ext).swift
[53/111] Compiling SystemIO FileReadError.swift
[54/111] Compiling SystemIO FileSeekError.swift
[55/111] Compiling SystemIO FileStatus.swift
[56/111] Compiling SystemIO FileSystemStats.swift
[57/117] Compiling ArgumentParser CollectionExtensions.swift
[58/117] Compiling ArgumentParser Mutex.swift
[59/117] Compiling ArgumentParser Platform.swift
[60/117] Compiling ArgumentParser SequenceExtensions.swift
[61/117] Compiling ArgumentParser StringExtensions.swift
[62/117] Compiling ArgumentParser SwiftExtensions.swift
[63/117] Compiling SystemIO SystemProcess.Environment.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:40:49: error: cannot find 'environ' in scope
38 | to: CChar.self
39 | ).baseAddress else {
40 | return try yield(self.inherit ? environ : nil)
| `- error: cannot find 'environ' in scope
41 | }
42 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:44:29: error: cannot find 'environ' in scope
42 |
43 | var inherited: Int = 0
44 | while case _? = environ[inherited] {
| `- error: cannot find 'environ' in scope
45 | inherited += 1
46 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:53:53: error: cannot find 'environ' in scope
51 | ) {
52 | for i: Int in 0 ..< inherited {
53 | $0.initializeElement(at: i, to: environ[i])
| `- error: cannot find 'environ' in scope
54 | }
55 | var i: Int = inherited
[64/117] Compiling SystemIO SystemProcess.EnvironmentEncoder.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:40:49: error: cannot find 'environ' in scope
38 | to: CChar.self
39 | ).baseAddress else {
40 | return try yield(self.inherit ? environ : nil)
| `- error: cannot find 'environ' in scope
41 | }
42 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:44:29: error: cannot find 'environ' in scope
42 |
43 | var inherited: Int = 0
44 | while case _? = environ[inherited] {
| `- error: cannot find 'environ' in scope
45 | inherited += 1
46 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:53:53: error: cannot find 'environ' in scope
51 | ) {
52 | for i: Int in 0 ..< inherited {
53 | $0.initializeElement(at: i, to: environ[i])
| `- error: cannot find 'environ' in scope
54 | }
55 | var i: Int = inherited
[65/117] Compiling SystemIO SystemProcess.Stream.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:13:44: error: cannot find type 'pid_t' in scope
11 | public let id: pid_t
12 |
13 | private init(invocation: [String], id: pid_t) {
| `- error: cannot find type 'pid_t' in scope
14 | self.invocation = invocation
15 | self.id = id
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:15:14: error: property 'id' requires that 'SystemProcess' be a class type
13 | private init(invocation: [String], id: pid_t) {
14 | self.invocation = invocation
15 | self.id = id
| `- error: property 'id' requires that 'SystemProcess' be a class type
16 | }
17 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:13: error: cannot find 'posix_spawn_file_actions_init' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:44: error: cannot find 'actions' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'actions' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:47: error: cannot find 'actions' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'actions' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:47: error: cannot find 'actions' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:47: error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'actions' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:47: error: cannot find 'actions' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'actions' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:110:22: error: cannot find type 'pid_t' in scope
108 | }
109 |
110 | var process: pid_t = 0
| `- error: cannot find type 'pid_t' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:17: error: cannot find 'posix_spawnp' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawnp' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:50: error: cannot find 'actions' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:17: error: cannot find 'posix_spawn' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawn' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:55: error: cannot find 'actions' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:59: error: 'nil' requires a contextual type
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: 'nil' requires a contextual type
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:47: error: extra argument 'id' in call
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: extra argument 'id' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:19: error: missing argument for parameter 'command' in call
28 | }
29 | extension SystemProcess {
30 | public init(
| `- note: 'init(command:_:stdout:stderr:duping:echo:with:)' declared here
31 | command: String?,
32 | _ arguments: String?...,
:
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: missing argument for parameter 'command' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:31: error: cannot convert value of type '[String]' to expected argument type 'String'
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: cannot convert value of type '[String]' to expected argument type 'String'
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:16: error: cannot find 'waitpid' in scope
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: cannot find 'waitpid' in scope
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:29: error: property 'id' requires that 'SystemProcess' be a class type
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: property 'id' requires that 'SystemProcess' be a class type
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:129:19: error: property 'id' requires that 'SystemProcess' be a class type
127 |
128 | switch waitpid(self.id, &status, 0) {
129 | case self.id: break
| `- error: property 'id' requires that 'SystemProcess' be a class type
130 | case let status: return .failure(.wait(status, self.invocation))
131 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
[66/117] Compiling SystemIO SystemProcess.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:13:44: error: cannot find type 'pid_t' in scope
11 | public let id: pid_t
12 |
13 | private init(invocation: [String], id: pid_t) {
| `- error: cannot find type 'pid_t' in scope
14 | self.invocation = invocation
15 | self.id = id
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:15:14: error: property 'id' requires that 'SystemProcess' be a class type
13 | private init(invocation: [String], id: pid_t) {
14 | self.invocation = invocation
15 | self.id = id
| `- error: property 'id' requires that 'SystemProcess' be a class type
16 | }
17 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:13: error: cannot find 'posix_spawn_file_actions_init' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:44: error: cannot find 'actions' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'actions' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:47: error: cannot find 'actions' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'actions' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:47: error: cannot find 'actions' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:47: error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'actions' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:47: error: cannot find 'actions' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'actions' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:110:22: error: cannot find type 'pid_t' in scope
108 | }
109 |
110 | var process: pid_t = 0
| `- error: cannot find type 'pid_t' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:17: error: cannot find 'posix_spawnp' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawnp' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:50: error: cannot find 'actions' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:17: error: cannot find 'posix_spawn' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawn' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:55: error: cannot find 'actions' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:59: error: 'nil' requires a contextual type
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: 'nil' requires a contextual type
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:47: error: extra argument 'id' in call
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: extra argument 'id' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:19: error: missing argument for parameter 'command' in call
28 | }
29 | extension SystemProcess {
30 | public init(
| `- note: 'init(command:_:stdout:stderr:duping:echo:with:)' declared here
31 | command: String?,
32 | _ arguments: String?...,
:
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: missing argument for parameter 'command' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:31: error: cannot convert value of type '[String]' to expected argument type 'String'
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: cannot convert value of type '[String]' to expected argument type 'String'
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:16: error: cannot find 'waitpid' in scope
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: cannot find 'waitpid' in scope
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:29: error: property 'id' requires that 'SystemProcess' be a class type
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: property 'id' requires that 'SystemProcess' be a class type
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:129:19: error: property 'id' requires that 'SystemProcess' be a class type
127 |
128 | switch waitpid(self.id, &status, 0) {
129 | case self.id: break
| `- error: property 'id' requires that 'SystemProcess' be a class type
130 | case let status: return .failure(.wait(status, self.invocation))
131 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
[67/119] Compiling SystemIO SystemProcessError.swift
[68/119] Compiling SystemIO lexemes.swift
[69/119] Compiling SystemIO FileType.swift
[70/119] Compiling SystemIO FilePath.Directory.swift
[71/119] Compiling SystemIO FilePath.DirectoryIterator.Stream.swift
[72/119] Compiling SystemIO FilePath.DirectoryIterator.swift
[81/119] Compiling SystemIO FilePath.DirectoryPointer.swift
[82/119] Compiling SystemIO FilePermissions (ext).swift
[83/119] Compiling SystemIO FilePermissions.Component.swift
[87/119] Compiling ArgumentParser SplitArguments.swift
[88/119] Compiling ArgumentParser DumpHelpGenerator.swift
[89/119] Compiling ArgumentParser HelpCommand.swift
[90/119] Compiling ArgumentParser HelpGenerator.swift
[91/119] Compiling ArgumentParser MessageInfo.swift
[92/119] Compiling ArgumentParser UsageGenerator.swift
[98/119] Compiling ArgumentParser ParserError.swift
[99/119] Compiling ArgumentParser Tree.swift
[100/119] Compiling ArgumentParser CodingKeyValidator.swift
[101/119] Compiling ArgumentParser NonsenseFlagsValidator.swift
[102/119] Compiling ArgumentParser ParsableArgumentsValidation.swift
[103/119] Compiling ArgumentParser PositionalArgumentsValidator.swift
[104/119] Compiling ArgumentParser UniqueNamesValidator.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[106/120] Emitting module SystemIO
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:13:44: error: cannot find type 'pid_t' in scope
11 | public let id: pid_t
12 |
13 | private init(invocation: [String], id: pid_t) {
| `- error: cannot find type 'pid_t' in scope
14 | self.invocation = invocation
15 | self.id = id
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:27:20: error: cannot find 'stat' in scope
25 | try path.withPlatformString {
26 | var value: stat = .init()
27 | switch stat($0, &value) {
| `- error: cannot find 'stat' in scope
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:29:48: error: cannot find 'errno' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
30 | }
31 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:26:24: error: cannot find type 'stat' in scope
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
26 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:25:18: error: type of expression is ambiguous without a type annotation
23 | extension FileStatus {
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
| `- error: type of expression is ambiguous without a type annotation
26 | var value: stat = .init()
27 | switch stat($0, &value) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:34:20: error: cannot find type 'stat' in scope
32 | }
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:35:16: error: cannot find 'fstat' in scope
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
35 | switch fstat(file.rawValue, &value) {
| `- error: cannot find 'fstat' in scope
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:37:44: error: cannot find 'errno' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
38 | }
39 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:27:20: error: cannot find 'stat' in scope
25 | try path.withPlatformString {
26 | var value: stat = .init()
27 | switch stat($0, &value) {
| `- error: cannot find 'stat' in scope
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:29:48: error: cannot find 'errno' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
30 | }
31 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:26:24: error: cannot find type 'stat' in scope
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
26 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:25:18: error: type of expression is ambiguous without a type annotation
23 | extension FileStatus {
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
| `- error: type of expression is ambiguous without a type annotation
26 | var value: stat = .init()
27 | switch stat($0, &value) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:34:20: error: cannot find type 'stat' in scope
32 | }
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:35:16: error: cannot find 'fstat' in scope
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
35 | switch fstat(file.rawValue, &value) {
| `- error: cannot find 'fstat' in scope
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:37:44: error: cannot find 'errno' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
38 | }
39 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:27:20: error: cannot find 'stat' in scope
25 | try path.withPlatformString {
26 | var value: stat = .init()
27 | switch stat($0, &value) {
| `- error: cannot find 'stat' in scope
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:29:48: error: cannot find 'errno' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
30 | }
31 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:26:24: error: cannot find type 'stat' in scope
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
26 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:25:18: error: type of expression is ambiguous without a type annotation
23 | extension FileStatus {
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
| `- error: type of expression is ambiguous without a type annotation
26 | var value: stat = .init()
27 | switch stat($0, &value) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:34:20: error: cannot find type 'stat' in scope
32 | }
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:35:16: error: cannot find 'fstat' in scope
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
35 | switch fstat(file.rawValue, &value) {
| `- error: cannot find 'fstat' in scope
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:37:44: error: cannot find 'errno' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
38 | }
39 | }
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:55:20: error: cannot find type 'statvfs' in scope
53 | extension FileSystemStats {
54 | public static func containing(path: FilePath) throws -> Self {
55 | let stats: statvfs = try withUnsafeTemporaryAllocation(of: statvfs.self, capacity: 1) {
| `- error: cannot find type 'statvfs' in scope
56 | guard case 0 = statvfs(path.string, &$0[0]) else {
57 | throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:63:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
61 | }
62 | // Explicit `UInt32 -> UInt` conversion needed on Darwin.
63 | return .init(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
64 | id: UInt.init(stats.f_fsid),
65 | fragmentCount: UInt.init(stats.f_blocks),
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:55:20: error: cannot find type 'statvfs' in scope
53 | extension FileSystemStats {
54 | public static func containing(path: FilePath) throws -> Self {
55 | let stats: statvfs = try withUnsafeTemporaryAllocation(of: statvfs.self, capacity: 1) {
| `- error: cannot find type 'statvfs' in scope
56 | guard case 0 = statvfs(path.string, &$0[0]) else {
57 | throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:63:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
61 | }
62 | // Explicit `UInt32 -> UInt` conversion needed on Darwin.
63 | return .init(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
64 | id: UInt.init(stats.f_fsid),
65 | fragmentCount: UInt.init(stats.f_blocks),
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:51: error: cannot find 'getcwd' in scope
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:58: error: 'nil' requires a contextual type
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:35:13: error: cannot find 'free' in scope
33 | }
34 | defer {
35 | free(buffer)
| `- error: cannot find 'free' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:24:35: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
24 | let pointer: FilePath.DirectoryPointer? = try path.withPlatformString {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
25 | if let pointer: FilePath.DirectoryPointer = opendir($0) {
26 | return pointer
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:36: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
45 | return nil
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:64: error: type of expression is ambiguous without a type annotation
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: type of expression is ambiguous without a type annotation
45 | return nil
46 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:46: error: cannot find type 'dirent' in scope
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:65: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:47: error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find type 'dirent' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: cannot find 'readdir' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find 'readdir' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: type of expression is ambiguous without a type annotation
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: type of expression is ambiguous without a type annotation
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:71:9: error: cannot find 'closedir' in scope
69 | }
70 |
71 | closedir(stream)
| `- error: cannot find 'closedir' in scope
72 | self = .opened(nil)
73 | return nil
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:72:24: error: 'nil' requires a contextual type
70 |
71 | closedir(stream)
72 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
73 | return nil
74 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:21: error: type 'Errno' has no member 'opened'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: type 'Errno' has no member 'opened'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:39: error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:80:9: error: cannot find 'closedir' in scope
78 | }
79 |
80 | closedir(stream)
| `- error: cannot find 'closedir' in scope
81 | self = .opened(nil)
82 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:81:24: error: 'nil' requires a contextual type
79 |
80 | closedir(stream)
81 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
82 | }
83 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:51: error: cannot find 'getcwd' in scope
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:58: error: 'nil' requires a contextual type
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:35:13: error: cannot find 'free' in scope
33 | }
34 | defer {
35 | free(buffer)
| `- error: cannot find 'free' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:24:35: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
24 | let pointer: FilePath.DirectoryPointer? = try path.withPlatformString {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
25 | if let pointer: FilePath.DirectoryPointer = opendir($0) {
26 | return pointer
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:36: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
45 | return nil
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:64: error: type of expression is ambiguous without a type annotation
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: type of expression is ambiguous without a type annotation
45 | return nil
46 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:46: error: cannot find type 'dirent' in scope
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:65: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:47: error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find type 'dirent' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: cannot find 'readdir' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find 'readdir' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: type of expression is ambiguous without a type annotation
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: type of expression is ambiguous without a type annotation
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:71:9: error: cannot find 'closedir' in scope
69 | }
70 |
71 | closedir(stream)
| `- error: cannot find 'closedir' in scope
72 | self = .opened(nil)
73 | return nil
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:72:24: error: 'nil' requires a contextual type
70 |
71 | closedir(stream)
72 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
73 | return nil
74 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:21: error: type 'Errno' has no member 'opened'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: type 'Errno' has no member 'opened'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:39: error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:80:9: error: cannot find 'closedir' in scope
78 | }
79 |
80 | closedir(stream)
| `- error: cannot find 'closedir' in scope
81 | self = .opened(nil)
82 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:81:24: error: 'nil' requires a contextual type
79 |
80 | closedir(stream)
81 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
82 | }
83 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:51: error: cannot find 'getcwd' in scope
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:58: error: 'nil' requires a contextual type
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:35:13: error: cannot find 'free' in scope
33 | }
34 | defer {
35 | free(buffer)
| `- error: cannot find 'free' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:24:35: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
24 | let pointer: FilePath.DirectoryPointer? = try path.withPlatformString {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
25 | if let pointer: FilePath.DirectoryPointer = opendir($0) {
26 | return pointer
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:36: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
45 | return nil
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:64: error: type of expression is ambiguous without a type annotation
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: type of expression is ambiguous without a type annotation
45 | return nil
46 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:46: error: cannot find type 'dirent' in scope
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:65: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:47: error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find type 'dirent' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: cannot find 'readdir' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find 'readdir' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: type of expression is ambiguous without a type annotation
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: type of expression is ambiguous without a type annotation
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:71:9: error: cannot find 'closedir' in scope
69 | }
70 |
71 | closedir(stream)
| `- error: cannot find 'closedir' in scope
72 | self = .opened(nil)
73 | return nil
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:72:24: error: 'nil' requires a contextual type
70 |
71 | closedir(stream)
72 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
73 | return nil
74 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:21: error: type 'Errno' has no member 'opened'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: type 'Errno' has no member 'opened'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:39: error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:80:9: error: cannot find 'closedir' in scope
78 | }
79 |
80 | closedir(stream)
| `- error: cannot find 'closedir' in scope
81 | self = .opened(nil)
82 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:81:24: error: 'nil' requires a contextual type
79 |
80 | closedir(stream)
81 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
82 | }
83 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/36] Compiling SystemPackage Syscalls.swift
[5/36] Compiling SystemPackage WindowsSyscallAdapters.swift
[6/36] Compiling SystemPackage MachPort.swift
[7/36] Compiling SystemPackage PlatformString.swift
[8/40] Compiling SystemPackage FilePathSyntax.swift
[9/40] Compiling SystemPackage FilePathTemp.swift
[10/40] Compiling SystemPackage FilePathTempPosix.swift
[11/40] Compiling SystemPackage FilePathTempWindows.swift
[12/40] Compiling SystemPackage Constants.swift
[13/40] Compiling SystemPackage Exports.swift
[14/40] Compiling SystemPackage Mocking.swift
[15/40] Compiling SystemPackage RawBuffer.swift
[16/40] Compiling ArgumentParserToolInfo ToolInfo.swift
[17/40] Emitting module ArgumentParserToolInfo
[18/41] Emitting module SystemPackage
[19/41] Compiling SystemPackage Errno.swift
[20/41] Compiling SystemPackage ErrnoWindows.swift
[21/41] Compiling SystemPackage FileDescriptor.swift
[22/41] Compiling SystemPackage FileHelpers.swift
[23/41] Compiling SystemPackage FileOperations.swift
[25/41] Compiling SystemPackage SystemString.swift
[26/41] Compiling SystemPackage Util+StringArray.swift
[27/41] Compiling SystemPackage Util.swift
[28/41] Compiling SystemPackage UtilConsumers.swift
[29/41] Compiling SystemPackage FilePathWindows.swift
[30/41] Compiling SystemPackage FilePermissions.swift
[31/41] Compiling SystemPackage IOCompletion.swift
[32/41] Compiling SystemPackage IORequest.swift
[33/41] Compiling SystemPackage IORing.swift
[34/41] Compiling SystemPackage RawIORequest.swift
[35/41] Compiling SystemPackage Backcompat.swift
[36/41] Compiling SystemPackage CInterop.swift
[37/41] Compiling SystemPackage FilePath.swift
[38/41] Compiling SystemPackage FilePathComponentView.swift
[39/41] Compiling SystemPackage FilePathComponents.swift
[40/41] Compiling SystemPackage FilePathParsing.swift
[41/41] Compiling SystemPackage FilePathString.swift
[43/105] Compiling SystemIO SystemProcess.Environment.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:40:49: error: cannot find 'environ' in scope
38 | to: CChar.self
39 | ).baseAddress else {
40 | return try yield(self.inherit ? environ : nil)
| `- error: cannot find 'environ' in scope
41 | }
42 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:44:29: error: cannot find 'environ' in scope
42 |
43 | var inherited: Int = 0
44 | while case _? = environ[inherited] {
| `- error: cannot find 'environ' in scope
45 | inherited += 1
46 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:53:53: error: cannot find 'environ' in scope
51 | ) {
52 | for i: Int in 0 ..< inherited {
53 | $0.initializeElement(at: i, to: environ[i])
| `- error: cannot find 'environ' in scope
54 | }
55 | var i: Int = inherited
[44/105] Compiling SystemIO SystemProcess.EnvironmentEncoder.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:40:49: error: cannot find 'environ' in scope
38 | to: CChar.self
39 | ).baseAddress else {
40 | return try yield(self.inherit ? environ : nil)
| `- error: cannot find 'environ' in scope
41 | }
42 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:44:29: error: cannot find 'environ' in scope
42 |
43 | var inherited: Int = 0
44 | while case _? = environ[inherited] {
| `- error: cannot find 'environ' in scope
45 | inherited += 1
46 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:53:53: error: cannot find 'environ' in scope
51 | ) {
52 | for i: Int in 0 ..< inherited {
53 | $0.initializeElement(at: i, to: environ[i])
| `- error: cannot find 'environ' in scope
54 | }
55 | var i: Int = inherited
[45/105] Compiling SystemIO SystemProcess.Stream.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:13:44: error: cannot find type 'pid_t' in scope
11 | public let id: pid_t
12 |
13 | private init(invocation: [String], id: pid_t) {
| `- error: cannot find type 'pid_t' in scope
14 | self.invocation = invocation
15 | self.id = id
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:15:14: error: property 'id' requires that 'SystemProcess' be a class type
13 | private init(invocation: [String], id: pid_t) {
14 | self.invocation = invocation
15 | self.id = id
| `- error: property 'id' requires that 'SystemProcess' be a class type
16 | }
17 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:13: error: cannot find 'posix_spawn_file_actions_init' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:44: error: cannot find 'actions' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'actions' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:47: error: cannot find 'actions' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'actions' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:47: error: cannot find 'actions' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:47: error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'actions' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:47: error: cannot find 'actions' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'actions' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:110:22: error: cannot find type 'pid_t' in scope
108 | }
109 |
110 | var process: pid_t = 0
| `- error: cannot find type 'pid_t' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:17: error: cannot find 'posix_spawnp' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawnp' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:50: error: cannot find 'actions' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:17: error: cannot find 'posix_spawn' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawn' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:55: error: cannot find 'actions' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:59: error: 'nil' requires a contextual type
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: 'nil' requires a contextual type
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:47: error: extra argument 'id' in call
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: extra argument 'id' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:19: error: missing argument for parameter 'command' in call
28 | }
29 | extension SystemProcess {
30 | public init(
| `- note: 'init(command:_:stdout:stderr:duping:echo:with:)' declared here
31 | command: String?,
32 | _ arguments: String?...,
:
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: missing argument for parameter 'command' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:31: error: cannot convert value of type '[String]' to expected argument type 'String'
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: cannot convert value of type '[String]' to expected argument type 'String'
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:16: error: cannot find 'waitpid' in scope
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: cannot find 'waitpid' in scope
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:29: error: property 'id' requires that 'SystemProcess' be a class type
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: property 'id' requires that 'SystemProcess' be a class type
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:129:19: error: property 'id' requires that 'SystemProcess' be a class type
127 |
128 | switch waitpid(self.id, &status, 0) {
129 | case self.id: break
| `- error: property 'id' requires that 'SystemProcess' be a class type
130 | case let status: return .failure(.wait(status, self.invocation))
131 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
[46/105] Compiling SystemIO SystemProcess.swift
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:13:44: error: cannot find type 'pid_t' in scope
11 | public let id: pid_t
12 |
13 | private init(invocation: [String], id: pid_t) {
| `- error: cannot find type 'pid_t' in scope
14 | self.invocation = invocation
15 | self.id = id
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:15:14: error: property 'id' requires that 'SystemProcess' be a class type
13 | private init(invocation: [String], id: pid_t) {
14 | self.invocation = invocation
15 | self.id = id
| `- error: property 'id' requires that 'SystemProcess' be a class type
16 | }
17 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:13: error: cannot find 'posix_spawn_file_actions_init' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'posix_spawn_file_actions_init' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:93:44: error: cannot find 'actions' in scope
91 |
92 | do {
93 | posix_spawn_file_actions_init(&actions)
| `- error: cannot find 'actions' in scope
94 | }
95 | defer {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:13: error: cannot find 'posix_spawn_file_actions_destroy' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:96:47: error: cannot find 'actions' in scope
94 | }
95 | defer {
96 | posix_spawn_file_actions_destroy(&actions)
| `- error: cannot find 'actions' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:100:47: error: cannot find 'actions' in scope
98 |
99 | if let stdout: FileDescriptor {
100 | posix_spawn_file_actions_adddup2(&actions, stdout.rawValue, 1)
| `- error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:103:47: error: cannot find 'actions' in scope
101 | }
102 | if let stderr: FileDescriptor {
103 | posix_spawn_file_actions_adddup2(&actions, stderr.rawValue, 2)
| `- error: cannot find 'actions' in scope
104 | }
105 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:13: error: cannot find 'posix_spawn_file_actions_adddup2' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'posix_spawn_file_actions_adddup2' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:107:47: error: cannot find 'actions' in scope
105 |
106 | for stream: SystemProcess.Stream in streams {
107 | posix_spawn_file_actions_adddup2(&actions, stream.parent.rawValue, stream.child)
| `- error: cannot find 'actions' in scope
108 | }
109 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:110:22: error: cannot find type 'pid_t' in scope
108 | }
109 |
110 | var process: pid_t = 0
| `- error: cannot find type 'pid_t' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:17: error: cannot find 'posix_spawnp' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawnp' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:50: error: cannot find 'actions' in scope
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:17: error: cannot find 'posix_spawn' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'posix_spawn' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:115:55: error: cannot find 'actions' in scope
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
| `- error: cannot find 'actions' in scope
116 | }
117 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:113:59: error: 'nil' requires a contextual type
111 | let status: Int32 = environment.withUnsafePointers {
112 | if let command: String {
113 | posix_spawnp(&process, command, &actions, nil, argv, $0)
| `- error: 'nil' requires a contextual type
114 | } else {
115 | posix_spawn(&process, invocation[0], &actions, nil, argv, $0)
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:47: error: extra argument 'id' in call
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: extra argument 'id' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:19: error: missing argument for parameter 'command' in call
28 | }
29 | extension SystemProcess {
30 | public init(
| `- note: 'init(command:_:stdout:stderr:duping:echo:with:)' declared here
31 | command: String?,
32 | _ arguments: String?...,
:
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: missing argument for parameter 'command' in call
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:122:31: error: cannot convert value of type '[String]' to expected argument type 'String'
120 | }
121 |
122 | self.init(invocation: invocation, id: process)
| `- error: cannot convert value of type '[String]' to expected argument type 'String'
123 | }
124 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:16: error: cannot find 'waitpid' in scope
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: cannot find 'waitpid' in scope
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:128:29: error: property 'id' requires that 'SystemProcess' be a class type
126 | var status: Int32 = 0
127 |
128 | switch waitpid(self.id, &status, 0) {
| `- error: property 'id' requires that 'SystemProcess' be a class type
129 | case self.id: break
130 | case let status: return .failure(.wait(status, self.invocation))
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:129:19: error: property 'id' requires that 'SystemProcess' be a class type
127 |
128 | switch waitpid(self.id, &status, 0) {
129 | case self.id: break
| `- error: property 'id' requires that 'SystemProcess' be a class type
130 | case let status: return .failure(.wait(status, self.invocation))
131 | }
Swift.Identifiable:2:11: note: where 'Self' = 'SystemProcess'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | extension Identifiable where Self : AnyObject {
| `- note: where 'Self' = 'SystemProcess'
3 | public var id: ObjectIdentifier { get }
4 | }
[47/107] Compiling SystemIO lexemes.swift
[48/107] Compiling ArgumentParser InputOrigin.swift
[49/107] Compiling ArgumentParser Name.swift
[50/107] Compiling ArgumentParser Parsed.swift
[51/107] Compiling ArgumentParser ParsedValues.swift
[52/107] Compiling ArgumentParser ParserError.swift
[53/107] Compiling ArgumentParser CollectionExtensions.swift
[54/107] Compiling ArgumentParser Mutex.swift
[55/107] Compiling ArgumentParser Platform.swift
[56/107] Compiling ArgumentParser SequenceExtensions.swift
[57/107] Compiling ArgumentParser StringExtensions.swift
[58/107] Compiling ArgumentParser SwiftExtensions.swift
[59/113] Emitting module ArgumentParser
[60/113] Compiling SystemIO FileDescriptor.swift
[61/113] Compiling SystemIO FileError.swift
[62/113] Compiling SystemIO FilePath (ext).swift
[63/113] Compiling SystemIO SystemProcessError.swift
[65/113] Compiling ArgumentParser Tree.swift
[66/113] Compiling ArgumentParser CodingKeyValidator.swift
[67/113] Compiling ArgumentParser NonsenseFlagsValidator.swift
[68/113] Compiling ArgumentParser ParsableArgumentsValidation.swift
[69/113] Compiling ArgumentParser PositionalArgumentsValidator.swift
[70/113] Compiling ArgumentParser UniqueNamesValidator.swift
[74/113] Compiling SystemIO FilePath.Directory.swift
[75/113] Compiling SystemIO FilePath.DirectoryIterator.Stream.swift
[76/113] Compiling SystemIO FilePath.DirectoryIterator.swift
[77/113] Compiling SystemIO FileReadError.swift
[78/113] Compiling SystemIO FileSeekError.swift
[79/113] Compiling SystemIO FileStatus.swift
[80/113] Compiling SystemIO FileSystemStats.swift
[81/113] Compiling SystemIO FileType.swift
[82/113] Compiling SystemIO FilePath.DirectoryPointer.swift
[83/113] Compiling SystemIO FilePermissions (ext).swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[84/113] Emitting module SystemIO
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.Environment.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:11:20: error: cannot find type 'pid_t' in scope
9 | @frozen public struct SystemProcess: Identifiable {
10 | let invocation: [String]
11 | public let id: pid_t
| `- error: cannot find type 'pid_t' in scope
12 |
13 | private init(invocation: [String], id: pid_t) {
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/SystemProcess.swift:13:44: error: cannot find type 'pid_t' in scope
11 | public let id: pid_t
12 |
13 | private init(invocation: [String], id: pid_t) {
| `- error: cannot find type 'pid_t' in scope
14 | self.invocation = invocation
15 | self.id = id
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:27:20: error: cannot find 'stat' in scope
25 | try path.withPlatformString {
26 | var value: stat = .init()
27 | switch stat($0, &value) {
| `- error: cannot find 'stat' in scope
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:29:48: error: cannot find 'errno' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
30 | }
31 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:26:24: error: cannot find type 'stat' in scope
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
26 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:25:18: error: type of expression is ambiguous without a type annotation
23 | extension FileStatus {
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
| `- error: type of expression is ambiguous without a type annotation
26 | var value: stat = .init()
27 | switch stat($0, &value) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:34:20: error: cannot find type 'stat' in scope
32 | }
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:35:16: error: cannot find 'fstat' in scope
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
35 | switch fstat(file.rawValue, &value) {
| `- error: cannot find 'fstat' in scope
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:37:44: error: cannot find 'errno' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
38 | }
39 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:27:20: error: cannot find 'stat' in scope
25 | try path.withPlatformString {
26 | var value: stat = .init()
27 | switch stat($0, &value) {
| `- error: cannot find 'stat' in scope
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:29:48: error: cannot find 'errno' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
30 | }
31 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:26:24: error: cannot find type 'stat' in scope
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
26 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:25:18: error: type of expression is ambiguous without a type annotation
23 | extension FileStatus {
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
| `- error: type of expression is ambiguous without a type annotation
26 | var value: stat = .init()
27 | switch stat($0, &value) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:34:20: error: cannot find type 'stat' in scope
32 | }
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:35:16: error: cannot find 'fstat' in scope
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
35 | switch fstat(file.rawValue, &value) {
| `- error: cannot find 'fstat' in scope
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:37:44: error: cannot find 'errno' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
38 | }
39 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:12:34: error: cannot find type 'stat' in scope
10 |
11 | @frozen public struct FileStatus {
12 | @usableFromInline let value: stat
| `- error: cannot find type 'stat' in scope
13 |
14 | private init(value: stat) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:14:25: error: cannot find type 'stat' in scope
12 | @usableFromInline let value: stat
13 |
14 | private init(value: stat) {
| `- error: cannot find type 'stat' in scope
15 | self.value = value
16 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:20:30: error: cannot find 'S_IFMT' in scope
18 | extension FileStatus {
19 | @inlinable public func `is`(_ type: FileType) -> Bool {
20 | self.value.st_mode & S_IFMT == type.mask
| `- error: cannot find 'S_IFMT' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:27:20: error: cannot find 'stat' in scope
25 | try path.withPlatformString {
26 | var value: stat = .init()
27 | switch stat($0, &value) {
| `- error: cannot find 'stat' in scope
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:29:48: error: cannot find 'errno' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
29 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
30 | }
31 | }
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:26:24: error: cannot find type 'stat' in scope
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
26 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
27 | switch stat($0, &value) {
28 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:25:18: error: type of expression is ambiguous without a type annotation
23 | extension FileStatus {
24 | public static func status(of path: FilePath) throws -> Self {
25 | try path.withPlatformString {
| `- error: type of expression is ambiguous without a type annotation
26 | var value: stat = .init()
27 | switch stat($0, &value) {
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:34:20: error: cannot find type 'stat' in scope
32 | }
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
| `- error: cannot find type 'stat' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:35:16: error: cannot find 'fstat' in scope
33 | public static func status(of file: FileDescriptor) throws -> Self {
34 | var value: stat = .init()
35 | switch fstat(file.rawValue, &value) {
| `- error: cannot find 'fstat' in scope
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileStatus.swift:37:44: error: cannot find 'errno' in scope
35 | switch fstat(file.rawValue, &value) {
36 | case 0: return .init(value: value)
37 | case _: throw Errno.init(rawValue: errno)
| `- error: cannot find 'errno' in scope
38 | }
39 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:51: error: cannot find 'getcwd' in scope
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:58: error: 'nil' requires a contextual type
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:35:13: error: cannot find 'free' in scope
33 | }
34 | defer {
35 | free(buffer)
| `- error: cannot find 'free' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:24:35: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
24 | let pointer: FilePath.DirectoryPointer? = try path.withPlatformString {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
25 | if let pointer: FilePath.DirectoryPointer = opendir($0) {
26 | return pointer
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:36: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
45 | return nil
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:64: error: type of expression is ambiguous without a type annotation
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: type of expression is ambiguous without a type annotation
45 | return nil
46 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:46: error: cannot find type 'dirent' in scope
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:65: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:47: error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find type 'dirent' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: cannot find 'readdir' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find 'readdir' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: type of expression is ambiguous without a type annotation
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: type of expression is ambiguous without a type annotation
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:71:9: error: cannot find 'closedir' in scope
69 | }
70 |
71 | closedir(stream)
| `- error: cannot find 'closedir' in scope
72 | self = .opened(nil)
73 | return nil
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:72:24: error: 'nil' requires a contextual type
70 |
71 | closedir(stream)
72 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
73 | return nil
74 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:21: error: type 'Errno' has no member 'opened'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: type 'Errno' has no member 'opened'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:39: error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:80:9: error: cannot find 'closedir' in scope
78 | }
79 |
80 | closedir(stream)
| `- error: cannot find 'closedir' in scope
81 | self = .opened(nil)
82 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:81:24: error: 'nil' requires a contextual type
79 |
80 | closedir(stream)
81 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
82 | }
83 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:51: error: cannot find 'getcwd' in scope
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:58: error: 'nil' requires a contextual type
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:35:13: error: cannot find 'free' in scope
33 | }
34 | defer {
35 | free(buffer)
| `- error: cannot find 'free' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:24:35: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
24 | let pointer: FilePath.DirectoryPointer? = try path.withPlatformString {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
25 | if let pointer: FilePath.DirectoryPointer = opendir($0) {
26 | return pointer
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:36: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
45 | return nil
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:64: error: type of expression is ambiguous without a type annotation
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: type of expression is ambiguous without a type annotation
45 | return nil
46 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:46: error: cannot find type 'dirent' in scope
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:65: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:47: error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find type 'dirent' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: cannot find 'readdir' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find 'readdir' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: type of expression is ambiguous without a type annotation
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: type of expression is ambiguous without a type annotation
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:71:9: error: cannot find 'closedir' in scope
69 | }
70 |
71 | closedir(stream)
| `- error: cannot find 'closedir' in scope
72 | self = .opened(nil)
73 | return nil
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:72:24: error: 'nil' requires a contextual type
70 |
71 | closedir(stream)
72 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
73 | return nil
74 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:21: error: type 'Errno' has no member 'opened'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: type 'Errno' has no member 'opened'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:39: error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:80:9: error: cannot find 'closedir' in scope
78 | }
79 |
80 | closedir(stream)
| `- error: cannot find 'closedir' in scope
81 | self = .opened(nil)
82 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:81:24: error: 'nil' requires a contextual type
79 |
80 | closedir(stream)
81 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
82 | }
83 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:12:8: error: unsupported platform
10 |
11 | #else
12 | #error("unsupported platform")
| `- error: unsupported platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:51: error: cannot find 'getcwd' in scope
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:31:58: error: 'nil' requires a contextual type
29 | public static func current() -> Self? {
30 | guard
31 | let buffer: UnsafeMutablePointer<CChar> = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
32 | return nil
33 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.Directory.swift:35:13: error: cannot find 'free' in scope
33 | }
34 | defer {
35 | free(buffer)
| `- error: cannot find 'free' in scope
36 | }
37 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:10:8: error: unsupported platform
8 | import Glibc
9 | #else
10 | #error("unsupported platform")
| `- error: unsupported platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:17:30: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
15 | @usableFromInline @frozen enum Stream {
16 | case unopened(FilePath)
17 | case opened(FilePath.DirectoryPointer?)
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
18 | }
19 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:21:53: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
19 | }
20 | extension FilePath.DirectoryIterator.Stream {
21 | private mutating func open() throws -> FilePath.DirectoryPointer? {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:24:35: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
22 | switch self {
23 | case .unopened(let path):
24 | let pointer: FilePath.DirectoryPointer? = try path.withPlatformString {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
25 | if let pointer: FilePath.DirectoryPointer = opendir($0) {
26 | return pointer
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:36: error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: 'DirectoryPointer' is not a member type of struct 'SystemPackage.FilePath'
45 | return nil
46 | }
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/FilePath/FilePath.swift:41:15: note: 'FilePath' declared here
39 | /// like case insensitivity, Unicode normalization, and symbolic links.
40 | @available(System 0.0.1, *)
41 | public struct FilePath: Sendable {
| `- note: 'FilePath' declared here
42 | // TODO(docs): Section on all the new syntactic operations, lexical normalization, decomposition,
43 | // components, etc.
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:44:64: error: type of expression is ambiguous without a type annotation
42 | }
43 | mutating func next() throws -> FilePath.Component? {
44 | guard let stream: FilePath.DirectoryPointer = try self.open() else {
| `- error: type of expression is ambiguous without a type annotation
45 | return nil
46 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:46: error: cannot find type 'dirent' in scope
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:48:65: error: cannot infer key path type from context; consider explicitly specifying a root type
46 | }
47 |
48 | guard let offset: Int = MemoryLayout<dirent>.offset(of: \.d_name) else {
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 | fatalError("invalid `dirent` layout")
50 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:47: error: cannot find type 'dirent' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find type 'dirent' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: cannot find 'readdir' in scope
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: cannot find 'readdir' in scope
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:51:57: error: type of expression is ambiguous without a type annotation
49 | fatalError("invalid `dirent` layout")
50 | }
51 | while let entry: UnsafeMutablePointer<dirent> = readdir(stream) {
| `- error: type of expression is ambiguous without a type annotation
52 | // `entry` is likely statically-allocated, and has variable-length layout.
53 | // attemping to unbind or rebind memory would be meaningless, as we must
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:71:9: error: cannot find 'closedir' in scope
69 | }
70 |
71 | closedir(stream)
| `- error: cannot find 'closedir' in scope
72 | self = .opened(nil)
73 | return nil
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:72:24: error: 'nil' requires a contextual type
70 |
71 | closedir(stream)
72 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
73 | return nil
74 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:21: error: type 'Errno' has no member 'opened'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: type 'Errno' has no member 'opened'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:76:39: error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
74 | }
75 | mutating func close() {
76 | guard case .opened(let stream?) = self else {
| `- error: expression pattern of type 'Errno' cannot match values of type 'FilePath.DirectoryIterator.Stream'
77 | return
78 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:80:9: error: cannot find 'closedir' in scope
78 | }
79 |
80 | closedir(stream)
| `- error: cannot find 'closedir' in scope
81 | self = .opened(nil)
82 | }
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryIterator.Stream.swift:81:24: error: 'nil' requires a contextual type
79 |
80 | closedir(stream)
81 | self = .opened(nil)
| `- error: 'nil' requires a contextual type
82 | }
83 | }
[91/113] Compiling ArgumentParser OptionGroup.swift
[92/113] Compiling ArgumentParser AsyncParsableCommand.swift
[93/113] Compiling ArgumentParser CommandConfiguration.swift
[94/113] Compiling ArgumentParser CommandGroup.swift
[95/113] Compiling ArgumentParser EnumerableFlag.swift
[96/113] Compiling ArgumentParser ExpressibleByArgument.swift
[97/113] Compiling SystemIO FilePermissions.Component.swift
[103/113] Compiling ArgumentParser SplitArguments.swift
[104/113] Compiling ArgumentParser DumpHelpGenerator.swift
[105/113] Compiling ArgumentParser HelpCommand.swift
[106/113] Compiling ArgumentParser HelpGenerator.swift
[107/113] Compiling ArgumentParser MessageInfo.swift
[108/113] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:55:20: error: cannot find type 'statvfs' in scope
53 | extension FileSystemStats {
54 | public static func containing(path: FilePath) throws -> Self {
55 | let stats: statvfs = try withUnsafeTemporaryAllocation(of: statvfs.self, capacity: 1) {
| `- error: cannot find type 'statvfs' in scope
56 | guard case 0 = statvfs(path.string, &$0[0]) else {
57 | throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:63:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
61 | }
62 | // Explicit `UInt32 -> UInt` conversion needed on Darwin.
63 | return .init(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
64 | id: UInt.init(stats.f_fsid),
65 | fragmentCount: UInt.init(stats.f_blocks),
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:6:8: error: unsupported platform
4 | import Darwin
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:55:20: error: cannot find type 'statvfs' in scope
53 | extension FileSystemStats {
54 | public static func containing(path: FilePath) throws -> Self {
55 | let stats: statvfs = try withUnsafeTemporaryAllocation(of: statvfs.self, capacity: 1) {
| `- error: cannot find type 'statvfs' in scope
56 | guard case 0 = statvfs(path.string, &$0[0]) else {
57 | throw Errno.init(rawValue: errno)
/host/spi-builder-workspace/Sources/SystemIO/FileSystemStats.swift:63:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
61 | }
62 | // Explicit `UInt32 -> UInt` conversion needed on Darwin.
63 | return .init(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
64 | id: UInt.init(stats.f_fsid),
65 | fragmentCount: UInt.init(stats.f_blocks),
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FileType.swift:19:26: error: cannot find type 'mode_t' in scope
17 | }
18 | extension FileType {
19 | @inlinable var mask: mode_t {
| `- error: cannot find type 'mode_t' in scope
20 | switch self {
21 | case .blockDevice: S_IFBLK
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
/host/spi-builder-workspace/Sources/SystemIO/FilePath.DirectoryPointer.swift:6:8: error: unsupported platform
4 | import Glibc
5 | #else
6 | #error("unsupported platform")
| `- error: unsupported platform
7 | #endif
8 |
BUILD FAILURE 6.1 android