Build Information
Failed to build swift-package-factory, reference v0.1.0 (2b27eb
), with Swift 6.1 for Android on 28 May 2025 14:30:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-package-factory.git
Reference: v0.1.0
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-package-factory
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 2b27eb0 add license and readme
Cloned https://github.com/tayloraswift/swift-package-factory.git
Revision (git rev-parse @):
2b27eb00e8011423edfb02fa70dd4c2c5f03cf16
SUCCESS checkout https://github.com/tayloraswift/swift-package-factory.git at v0.1.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/tayloraswift/swift-package-factory.git
https://github.com/tayloraswift/swift-package-factory.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-system-extras",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kelvin13/swift-system-extras.git"
},
{
"identity" : "swift-syntax",
"requirement" : {
"branch" : [
"swift-DEVELOPMENT-SNAPSHOT-2022-08-15-a"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax.git"
}
],
"manifest_display_name" : "swift-package-factory",
"name" : "swift-package-factory",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "factory",
"targets" : [
"factory"
],
"type" : {
"executable" : null
}
},
{
"name" : "Factory",
"targets" : [
"Factory"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "FactoryPlugin",
"targets" : [
"FactoryPlugin"
],
"type" : {
"plugin" : null
}
}
],
"targets" : [
{
"c99name" : "factory",
"module_type" : "SwiftTarget",
"name" : "factory",
"path" : "Sources/factory",
"product_memberships" : [
"factory",
"FactoryPlugin"
],
"sources" : [
"Main.swift"
],
"target_dependencies" : [
"Factory"
],
"type" : "executable"
},
{
"c99name" : "FactoryPluginValidExampleTarget",
"module_type" : "SwiftTarget",
"name" : "FactoryPluginValidExampleTarget",
"path" : "Examples/ValidExamples",
"sources" : [
"Basic.spf.swift",
"DocComments.spf.swift",
"Nested.spf.swift",
"OtherAttributes.spf.swift",
"Scopes.spf.swift",
"Zip.spf.swift"
],
"type" : "library"
},
{
"c99name" : "FactoryPluginInvalidExampleTarget",
"module_type" : "SwiftTarget",
"name" : "FactoryPluginInvalidExampleTarget",
"path" : "Examples/InvalidExamples",
"sources" : [
"InvalidMatrix.spf.swift"
],
"type" : "library"
},
{
"c99name" : "FactoryPlugin",
"module_type" : "PluginTarget",
"name" : "FactoryPlugin",
"path" : "Plugins/FactoryPlugin",
"plugin_capability" : {
"intent" : {
"description" : "generate swift sources from factory sources",
"type" : "custom",
"verb" : "factory"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"FactoryPlugin"
],
"sources" : [
"Main.swift",
"MissingTargetError.swift"
],
"target_dependencies" : [
"factory"
],
"type" : "plugin"
},
{
"c99name" : "Factory",
"module_type" : "SwiftTarget",
"name" : "Factory",
"path" : "Sources/Factory",
"product_dependencies" : [
"SystemExtras",
"SwiftSyntax",
"SwiftSyntaxParser"
],
"product_memberships" : [
"factory",
"Factory",
"FactoryPlugin"
],
"sources" : [
"Error.swift",
"Factory.swift",
"Instantiator.swift",
"LexicalScope.swift",
"Loop.swift",
"MatrixElement.swift",
"Transformer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-syntax.git
[1/70449] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (7.61s)
Fetching https://github.com/kelvin13/swift-system-extras.git
[1/40] Fetching swift-system-extras
Fetched https://github.com/kelvin13/swift-system-extras.git from cache (0.31s)
Computing version for https://github.com/kelvin13/swift-system-extras.git
Computed https://github.com/kelvin13/swift-system-extras.git at 0.2.0 (0.86s)
Fetching https://github.com/apple/swift-system.git
[1/4391] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.38s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.97s)
Creating working copy for https://github.com/kelvin13/swift-system-extras.git
Working copy of https://github.com/kelvin13/swift-system-extras.git resolved at 0.2.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at swift-DEVELOPMENT-SNAPSHOT-2022-08-15-a (59c93fc)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
warning: 'spi-builder-workspace': found 6 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Examples/ValidExamples/OtherAttributes.spf
/host/spi-builder-workspace/Examples/ValidExamples/Scopes.spf
/host/spi-builder-workspace/Examples/ValidExamples/Basic.spf
/host/spi-builder-workspace/Examples/ValidExamples/Nested.spf
/host/spi-builder-workspace/Examples/ValidExamples/DocComments.spf
/host/spi-builder-workspace/Examples/ValidExamples/Zip.spf
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf
/host/spi-builder-workspace/Examples/InvalidExamples/IdentifierSafety.spf
/host/spi-builder-workspace/Examples/InvalidExamples/UndefinedBasis.spf
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidBasis.spf
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidBasisSyntax.spf
[1/1] Compiling plugin FactoryPlugin
Building for debugging...
[1/44] Write sources
[15/44] Compiling atomic-counter.c
[17/44] Compiling CSystem shims.c
[19/44] Write swift-version-24593BA9C3E375BF.txt
[21/189] Emitting module SystemPackage
[22/192] Compiling FactoryPluginInvalidExampleTarget InvalidMatrix.spf.swift
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:5:9: warning: variable 'x' was never used; consider replacing with '_' or removing it
3 |
4 | // this works because this is a declaration
5 | var x:Int = 0
| `- warning: variable 'x' was never used; consider replacing with '_' or removing it
6 |
7 | // this works because this is a declaration
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:8:9: warning: variable 'y' was never used; consider replacing with '_' or removing it
6 |
7 | // this works because this is a declaration
8 | var y:Int = 0
| `- warning: variable 'y' was never used; consider replacing with '_' or removing it
9 |
10 | // this works because this is a declaration
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:11:9: warning: variable 'z' was never used; consider replacing with '_' or removing it
9 |
10 | // this works because this is a declaration
11 | var z:Int = 0
| `- warning: variable 'z' was never used; consider replacing with '_' or removing it
12 |
13 | #if NEVER
[23/192] Emitting module FactoryPluginInvalidExampleTarget
[24/193] Compiling FactoryPluginValidExampleTarget DocComments.spf.swift
[25/193] Compiling FactoryPluginValidExampleTarget Scopes.spf.swift
[26/193] Compiling FactoryPluginValidExampleTarget Zip.spf.swift
[27/193] Compiling SystemPackage Util+StringArray.swift
[28/193] Compiling SystemPackage Util.swift
[29/193] Compiling SystemPackage UtilConsumers.swift
[30/193] Compiling SystemPackage FilePathTempPosix.swift
[31/193] Compiling SystemPackage FilePathTempWindows.swift
[32/193] Compiling SystemPackage FilePathWindows.swift
[33/193] Compiling SystemPackage FilePermissions.swift
[34/193] Emitting module FactoryPluginValidExampleTarget
[35/193] Compiling FactoryPluginValidExampleTarget Basic.spf.swift
[36/193] Compiling SystemPackage MachPort.swift
[37/193] Compiling SystemPackage PlatformString.swift
[38/193] Compiling SystemPackage SystemString.swift
[39/193] Compiling FactoryPluginValidExampleTarget Nested.spf.swift
[40/193] Compiling FactoryPluginValidExampleTarget OtherAttributes.spf.swift
[41/194] Compiling SwiftSyntax AbsolutePosition.swift
[42/194] Compiling SwiftSyntax AtomicCounter.swift
[43/194] Compiling SwiftSyntax BumpPtrAllocator.swift
[44/194] Compiling SwiftSyntax CNodes.swift
[45/194] Compiling SwiftSyntax IncrementalParseTransition.swift
[46/194] Compiling SwiftSyntax RawSyntax+CSwiftSyntax.swift
[47/194] Compiling SwiftSyntax SyntaxArena.swift
[48/194] Compiling SwiftSyntax SyntaxChildren.swift
[55/194] Compiling SystemPackage MachPort.swift
[56/194] Compiling SystemPackage PlatformString.swift
[57/194] Compiling SystemPackage SystemString.swift
[66/197] Compiling SystemPackage FilePathParsing.swift
[67/197] Compiling SystemPackage FilePathString.swift
[68/197] Compiling SystemPackage FilePathSyntax.swift
[69/197] Compiling SystemPackage FilePathTemp.swift
[70/197] Emitting module SystemPackage
[71/197] Compiling SystemPackage Util+StringArray.swift
[72/197] Compiling SystemPackage Util.swift
[73/197] Compiling SystemPackage UtilConsumers.swift
[77/197] Compiling SystemPackage Backcompat.swift
[78/197] Compiling SystemPackage Mocking.swift
[79/197] Compiling SystemPackage RawBuffer.swift
[80/197] Compiling SystemPackage Syscalls.swift
[81/197] Compiling SystemPackage WindowsSyscallAdapters.swift
[88/203] Wrapping AST for SystemPackage for debugging
[104/207] Emitting module SystemExtras
[105/207] Compiling SystemExtras FilePath.DirectoryView.swift
[106/207] Compiling SystemExtras FilePath.swift
[108/211] Compiling SystemExtras FilePath.DirectoryView.swift
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.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/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
49 |
50 | public
51 | var stream:StreamPointer?
| `- error: cannot find type 'StreamPointer' in scope
52 |
53 | /// - Parameter path: The file system path to provide directory entries for, should reference a directory
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: cannot find 'opendir' in scope
55 | init(_ path:FilePath)
56 | {
57 | self.stream = path.withPlatformString(opendir(_:))
| `- error: cannot find 'opendir' in scope
58 | }
59 |
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
55 | init(_ path:FilePath)
56 | {
57 | self.stream = path.withPlatformString(opendir(_:))
| `- error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
58 | }
59 |
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:63:30: error: cannot find type 'StreamPointer' in scope
61 | func next() -> Component?
62 | {
63 | guard let stream:StreamPointer = self.stream
| `- error: cannot find type 'StreamPointer' in scope
64 | else
65 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:63:51: error: type of expression is ambiguous without a type annotation
61 | func next() -> Component?
62 | {
63 | guard let stream:StreamPointer = self.stream
| `- error: type of expression is ambiguous without a type annotation
64 | else
65 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:68:49: error: cannot find type 'dirent' in scope
66 | return nil
67 | }
68 | guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
| `- error: cannot find type 'dirent' in scope
69 | else
70 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:68:68: error: cannot infer key path type from context; consider explicitly specifying a root type
66 | return nil
67 | }
68 | guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
69 | else
70 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:73:50: error: cannot find type 'dirent' in scope
71 | fatalError("invalid `dirent` layout")
72 | }
73 | while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
| `- error: cannot find type 'dirent' in scope
74 | {
75 | // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: cannot find 'readdir' in scope
71 | fatalError("invalid `dirent` layout")
72 | }
73 | while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
| `- error: cannot find 'readdir' in scope
74 | {
75 | // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: type of expression is ambiguous without a type annotation
71 | fatalError("invalid `dirent` layout")
72 | }
73 | while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
| `- error: type of expression is ambiguous without a type annotation
74 | {
75 | // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:94:13: error: cannot find 'closedir' in scope
92 | }
93 |
94 | closedir(stream)
| `- error: cannot find 'closedir' in scope
95 | self.stream = nil
96 | return nil
[108/211] Wrapping AST for SystemExtras for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[110/211] Emitting module SystemExtras
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.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/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
49 |
50 | public
51 | var stream:StreamPointer?
| `- error: cannot find type 'StreamPointer' in scope
52 |
53 | /// - Parameter path: The file system path to provide directory entries for, should reference a directory
[111/211] Compiling SystemExtras FilePath.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" 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:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': found 6 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Examples/ValidExamples/DocComments.spf
/host/spi-builder-workspace/Examples/ValidExamples/Basic.spf
/host/spi-builder-workspace/Examples/ValidExamples/OtherAttributes.spf
/host/spi-builder-workspace/Examples/ValidExamples/Zip.spf
/host/spi-builder-workspace/Examples/ValidExamples/Nested.spf
/host/spi-builder-workspace/Examples/ValidExamples/Scopes.spf
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf
/host/spi-builder-workspace/Examples/InvalidExamples/UndefinedBasis.spf
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidBasisSyntax.spf
/host/spi-builder-workspace/Examples/InvalidExamples/IdentifierSafety.spf
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidBasis.spf
[0/1] Planning build
[1/1] Compiling plugin FactoryPlugin
Building for debugging...
[1/26] Write swift-version-24593BA9C3E375BF.txt
[3/41] Compiling FactoryPluginValidExampleTarget Zip.spf.swift
[4/51] Compiling FactoryPluginValidExampleTarget Scopes.spf.swift
[5/64] Compiling FactoryPluginValidExampleTarget OtherAttributes.spf.swift
[6/171] Compiling FactoryPluginInvalidExampleTarget InvalidMatrix.spf.swift
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:5:9: warning: variable 'x' was never used; consider replacing with '_' or removing it
3 |
4 | // this works because this is a declaration
5 | var x:Int = 0
| `- warning: variable 'x' was never used; consider replacing with '_' or removing it
6 |
7 | // this works because this is a declaration
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:8:9: warning: variable 'y' was never used; consider replacing with '_' or removing it
6 |
7 | // this works because this is a declaration
8 | var y:Int = 0
| `- warning: variable 'y' was never used; consider replacing with '_' or removing it
9 |
10 | // this works because this is a declaration
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:11:9: warning: variable 'z' was never used; consider replacing with '_' or removing it
9 |
10 | // this works because this is a declaration
11 | var z:Int = 0
| `- warning: variable 'z' was never used; consider replacing with '_' or removing it
12 |
13 | #if NEVER
[7/171] Emitting module FactoryPluginInvalidExampleTarget
[8/172] Compiling FactoryPluginValidExampleTarget DocComments.spf.swift
[9/172] Emitting module FactoryPluginValidExampleTarget
[10/172] Compiling FactoryPluginValidExampleTarget Basic.spf.swift
[11/172] Compiling FactoryPluginValidExampleTarget Nested.spf.swift
[14/173] Compiling SystemPackage MachPort.swift
[15/173] Compiling SystemPackage PlatformString.swift
[16/173] Compiling SystemPackage SystemString.swift
[17/173] Compiling SystemPackage Mocking.swift
[18/173] Compiling SystemPackage RawBuffer.swift
[19/173] Compiling SystemPackage Syscalls.swift
[20/173] Compiling SystemPackage WindowsSyscallAdapters.swift
[21/173] Compiling SystemPackage Backcompat.swift
[22/173] Compiling SystemPackage CInterop.swift
[23/173] Compiling SystemPackage Constants.swift
[24/173] Compiling SystemPackage Exports.swift
[25/176] Compiling SystemPackage FilePathTempPosix.swift
[26/176] Compiling SystemPackage FilePathTempWindows.swift
[27/176] Compiling SystemPackage FilePathWindows.swift
[28/176] Compiling SystemPackage FilePermissions.swift
[29/176] Emitting module SystemPackage
[46/179] Compiling SystemPackage FilePathParsing.swift
[47/179] Compiling SystemPackage FilePathString.swift
[48/179] Compiling SystemPackage FilePathSyntax.swift
[49/179] Compiling SystemPackage FilePathTemp.swift
[50/179] Compiling SystemPackage FileOperations.swift
[51/179] Compiling SystemPackage FilePath.swift
[52/179] Compiling SystemPackage FilePathComponentView.swift
[53/179] Compiling SystemPackage FilePathComponents.swift
[58/179] Compiling SystemPackage Errno.swift
[59/179] Compiling SystemPackage ErrnoWindows.swift
[60/179] Compiling SystemPackage FileDescriptor.swift
[61/179] Compiling SystemPackage FileHelpers.swift
[62/179] Compiling SystemPackage Util+StringArray.swift
[63/179] Compiling SystemPackage Util.swift
[64/179] Compiling SystemPackage UtilConsumers.swift
[77/181] Wrapping AST for SystemPackage for debugging
[80/187] Compiling SystemExtras FilePath.DirectoryView.swift
[81/187] Emitting module SystemExtras
[82/187] Compiling SystemExtras FilePath.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[83/188] Emitting module SystemExtras
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.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/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
49 |
50 | public
51 | var stream:StreamPointer?
| `- error: cannot find type 'StreamPointer' in scope
52 |
53 | /// - Parameter path: The file system path to provide directory entries for, should reference a directory
[84/188] Compiling SystemExtras FilePath.DirectoryView.swift
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.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/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
49 |
50 | public
51 | var stream:StreamPointer?
| `- error: cannot find type 'StreamPointer' in scope
52 |
53 | /// - Parameter path: The file system path to provide directory entries for, should reference a directory
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: cannot find 'opendir' in scope
55 | init(_ path:FilePath)
56 | {
57 | self.stream = path.withPlatformString(opendir(_:))
| `- error: cannot find 'opendir' in scope
58 | }
59 |
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
55 | init(_ path:FilePath)
56 | {
57 | self.stream = path.withPlatformString(opendir(_:))
| `- error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
58 | }
59 |
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:63:30: error: cannot find type 'StreamPointer' in scope
61 | func next() -> Component?
62 | {
63 | guard let stream:StreamPointer = self.stream
| `- error: cannot find type 'StreamPointer' in scope
64 | else
65 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:63:51: error: type of expression is ambiguous without a type annotation
61 | func next() -> Component?
62 | {
63 | guard let stream:StreamPointer = self.stream
| `- error: type of expression is ambiguous without a type annotation
64 | else
65 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:68:49: error: cannot find type 'dirent' in scope
66 | return nil
67 | }
68 | guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
| `- error: cannot find type 'dirent' in scope
69 | else
70 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:68:68: error: cannot infer key path type from context; consider explicitly specifying a root type
66 | return nil
67 | }
68 | guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
69 | else
70 | {
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:73:50: error: cannot find type 'dirent' in scope
71 | fatalError("invalid `dirent` layout")
72 | }
73 | while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
| `- error: cannot find type 'dirent' in scope
74 | {
75 | // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: cannot find 'readdir' in scope
71 | fatalError("invalid `dirent` layout")
72 | }
73 | while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
| `- error: cannot find 'readdir' in scope
74 | {
75 | // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: type of expression is ambiguous without a type annotation
71 | fatalError("invalid `dirent` layout")
72 | }
73 | while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
| `- error: type of expression is ambiguous without a type annotation
74 | {
75 | // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/Sources/SystemExtras/FilePath.DirectoryView.swift:94:13: error: cannot find 'closedir' in scope
92 | }
93 |
94 | closedir(stream)
| `- error: cannot find 'closedir' in scope
95 | self.stream = nil
96 | return nil
[85/188] Compiling SystemExtras FilePath.swift
BUILD FAILURE 6.1 android