Build Information
Failed to build swift-system, reference 0.0.1 (8ffa04
), with Swift 6.1 for Wasm on 29 May 2025 01:42:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/swift-system.git
Reference: 0.0.1
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/PureSwift/swift-system
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at 8ffa04c Initial version of Swift System
Cloned https://github.com/PureSwift/swift-system.git
Revision (git rev-parse @):
8ffa04c0a0592e6f4f9c30926dedd8fa1c5371f9
SUCCESS checkout https://github.com/PureSwift/swift-system.git at 0.0.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/PureSwift/swift-system.git
https://github.com/PureSwift/swift-system.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-system",
"name" : "swift-system",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SystemPackage",
"targets" : [
"SystemPackage"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SystemTests",
"module_type" : "SwiftTarget",
"name" : "SystemTests",
"path" : "Tests/SystemTests",
"sources" : [
"ErrnoTest.swift",
"FileOperationsTest.swift",
"FilePathTest.swift",
"FileTypesTest.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SystemPackage"
],
"type" : "test"
},
{
"c99name" : "SystemPackage",
"module_type" : "SwiftTarget",
"name" : "SystemPackage",
"path" : "Sources/System",
"product_memberships" : [
"SystemPackage"
],
"sources" : [
"DarwinPlatformConstants.swift",
"Errno.swift",
"FileDescriptor.swift",
"FileHelpers.swift",
"FileOperations.swift",
"FilePath.swift",
"FilePermissions.swift",
"LinuxPlatformConstants.swift",
"Platform.swift",
"Util.swift"
],
"target_dependencies" : [
"SystemInternals"
],
"type" : "library"
},
{
"c99name" : "SystemInternals",
"module_type" : "SwiftTarget",
"name" : "SystemInternals",
"path" : "Sources/SystemInternals",
"product_memberships" : [
"SystemPackage"
],
"sources" : [
"Exports.swift"
],
"target_dependencies" : [
"CSystem"
],
"type" : "library"
},
{
"c99name" : "CSystem",
"module_type" : "ClangTarget",
"name" : "CSystem",
"path" : "Sources/CSystem",
"product_memberships" : [
"SystemPackage"
],
"sources" : [
"shims.c"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/4] Write sources
[2/4] Compiling CSystem shims.c
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module SystemInternals
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:19:8: error: Unsupported Platform
17 | import Glibc
18 | #else
19 | #error("Unsupported Platform")
| `- error: Unsupported Platform
20 | #endif
21 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:22:26: error: cannot find type 'off_t' in scope
20 | #endif
21 |
22 | public typealias COffT = off_t
| `- error: cannot find type 'off_t' in scope
23 |
24 | // MARK: syscalls and variables
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:43:57: error: cannot find type 'mode_t' in scope
41 |
42 | public func system_open(
43 | _ path: UnsafePointer<CChar>, _ oflag: Int32, _ mode: mode_t
| `- error: cannot find type 'mode_t' in scope
44 | ) -> CInt {
45 | open(path, oflag, mode)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:59:73: error: cannot find type 'off_t' in scope
57 |
58 | public func system_pread(
59 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
60 | ) -> Int {
61 | pread(fd, buf, nbyte, offset)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:66:6: error: cannot find type 'off_t' in scope
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
66 | ) -> off_t {
| `- error: cannot find type 'off_t' in scope
67 | lseek(fd, off, whence)
68 | }
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:65:23: error: cannot find type 'off_t' in scope
63 |
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
| `- error: cannot find type 'off_t' in scope
66 | ) -> off_t {
67 | lseek(fd, off, whence)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:77:66: error: cannot find type 'off_t' in scope
75 |
76 | public func system_pwrite(
77 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
78 | ) -> Int {
79 | pwrite(fd, buf, nbyte, offset)
[6/6] Compiling SystemInternals Exports.swift
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:19:8: error: Unsupported Platform
17 | import Glibc
18 | #else
19 | #error("Unsupported Platform")
| `- error: Unsupported Platform
20 | #endif
21 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:22:26: error: cannot find type 'off_t' in scope
20 | #endif
21 |
22 | public typealias COffT = off_t
| `- error: cannot find type 'off_t' in scope
23 |
24 | // MARK: syscalls and variables
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:43:57: error: cannot find type 'mode_t' in scope
41 |
42 | public func system_open(
43 | _ path: UnsafePointer<CChar>, _ oflag: Int32, _ mode: mode_t
| `- error: cannot find type 'mode_t' in scope
44 | ) -> CInt {
45 | open(path, oflag, mode)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:59:73: error: cannot find type 'off_t' in scope
57 |
58 | public func system_pread(
59 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
60 | ) -> Int {
61 | pread(fd, buf, nbyte, offset)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:66:6: error: cannot find type 'off_t' in scope
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
66 | ) -> off_t {
| `- error: cannot find type 'off_t' in scope
67 | lseek(fd, off, whence)
68 | }
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:65:23: error: cannot find type 'off_t' in scope
63 |
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
| `- error: cannot find type 'off_t' in scope
66 | ) -> off_t {
67 | lseek(fd, off, whence)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:77:66: error: cannot find type 'off_t' in scope
75 |
76 | public func system_pwrite(
77 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
78 | ) -> Int {
79 | pwrite(fd, buf, nbyte, offset)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:33:9: error: cannot find 'Glibc' in scope
31 | #else
32 | public var system_errno: CInt {
33 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
34 | set { Glibc.errno = newValue }
35 | }
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:34:9: error: cannot find 'Glibc' in scope
32 | public var system_errno: CInt {
33 | get { Glibc.errno }
34 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
35 | }
36 | #endif
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:39:3: error: cannot find 'open' in scope
37 |
38 | public func system_open(_ path: UnsafePointer<CChar>, _ oflag: Int32) -> CInt {
39 | open(path, oflag)
| `- error: cannot find 'open' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:45:3: error: cannot find 'open' in scope
43 | _ path: UnsafePointer<CChar>, _ oflag: Int32, _ mode: mode_t
44 | ) -> CInt {
45 | open(path, oflag, mode)
| `- error: cannot find 'open' in scope
46 | }
47 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:49:3: error: cannot find 'close' in scope
47 |
48 | public func system_close(_ fd: Int32) -> Int32 {
49 | close(fd)
| `- error: cannot find 'close' in scope
50 | }
51 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:55:3: error: cannot find 'read' in scope
53 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int
54 | ) -> Int {
55 | read(fd, buf, nbyte)
| `- error: cannot find 'read' in scope
56 | }
57 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:61:3: error: cannot find 'pread' in scope
59 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int, _ offset: off_t
60 | ) -> Int {
61 | pread(fd, buf, nbyte, offset)
| `- error: cannot find 'pread' in scope
62 | }
63 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:73:3: error: cannot find 'write' in scope
71 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int
72 | ) -> Int {
73 | write(fd, buf, nbyte)
| `- error: cannot find 'write' in scope
74 | }
75 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:79:3: error: cannot find 'pwrite' in scope
77 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int, _ offset: off_t
78 | ) -> Int {
79 | pwrite(fd, buf, nbyte, offset)
| `- error: cannot find 'pwrite' in scope
80 | }
81 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:85:3: error: cannot find 'strerror' in scope
83 |
84 | public func system_strerror(_ __errnum: Int32) -> UnsafeMutablePointer<Int8>! {
85 | strerror(__errnum)
| `- error: cannot find 'strerror' in scope
86 | }
87 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:89:3: error: cannot find 'strlen' in scope
87 |
88 | public func system_strlen(_ s: UnsafePointer<Int8>) -> Int {
89 | strlen(s)
| `- error: cannot find 'strlen' in scope
90 | }
91 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module SystemInternals
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:19:8: error: Unsupported Platform
17 | import Glibc
18 | #else
19 | #error("Unsupported Platform")
| `- error: Unsupported Platform
20 | #endif
21 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:22:26: error: cannot find type 'off_t' in scope
20 | #endif
21 |
22 | public typealias COffT = off_t
| `- error: cannot find type 'off_t' in scope
23 |
24 | // MARK: syscalls and variables
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:43:57: error: cannot find type 'mode_t' in scope
41 |
42 | public func system_open(
43 | _ path: UnsafePointer<CChar>, _ oflag: Int32, _ mode: mode_t
| `- error: cannot find type 'mode_t' in scope
44 | ) -> CInt {
45 | open(path, oflag, mode)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:59:73: error: cannot find type 'off_t' in scope
57 |
58 | public func system_pread(
59 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
60 | ) -> Int {
61 | pread(fd, buf, nbyte, offset)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:66:6: error: cannot find type 'off_t' in scope
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
66 | ) -> off_t {
| `- error: cannot find type 'off_t' in scope
67 | lseek(fd, off, whence)
68 | }
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:65:23: error: cannot find type 'off_t' in scope
63 |
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
| `- error: cannot find type 'off_t' in scope
66 | ) -> off_t {
67 | lseek(fd, off, whence)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:77:66: error: cannot find type 'off_t' in scope
75 |
76 | public func system_pwrite(
77 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
78 | ) -> Int {
79 | pwrite(fd, buf, nbyte, offset)
[3/3] Compiling SystemInternals Exports.swift
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:19:8: error: Unsupported Platform
17 | import Glibc
18 | #else
19 | #error("Unsupported Platform")
| `- error: Unsupported Platform
20 | #endif
21 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:22:26: error: cannot find type 'off_t' in scope
20 | #endif
21 |
22 | public typealias COffT = off_t
| `- error: cannot find type 'off_t' in scope
23 |
24 | // MARK: syscalls and variables
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:43:57: error: cannot find type 'mode_t' in scope
41 |
42 | public func system_open(
43 | _ path: UnsafePointer<CChar>, _ oflag: Int32, _ mode: mode_t
| `- error: cannot find type 'mode_t' in scope
44 | ) -> CInt {
45 | open(path, oflag, mode)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:59:73: error: cannot find type 'off_t' in scope
57 |
58 | public func system_pread(
59 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
60 | ) -> Int {
61 | pread(fd, buf, nbyte, offset)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:66:6: error: cannot find type 'off_t' in scope
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
66 | ) -> off_t {
| `- error: cannot find type 'off_t' in scope
67 | lseek(fd, off, whence)
68 | }
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:65:23: error: cannot find type 'off_t' in scope
63 |
64 | public func system_lseek(
65 | _ fd: Int32, _ off: off_t, _ whence: Int32
| `- error: cannot find type 'off_t' in scope
66 | ) -> off_t {
67 | lseek(fd, off, whence)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:77:66: error: cannot find type 'off_t' in scope
75 |
76 | public func system_pwrite(
77 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int, _ offset: off_t
| `- error: cannot find type 'off_t' in scope
78 | ) -> Int {
79 | pwrite(fd, buf, nbyte, offset)
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:33:9: error: cannot find 'Glibc' in scope
31 | #else
32 | public var system_errno: CInt {
33 | get { Glibc.errno }
| `- error: cannot find 'Glibc' in scope
34 | set { Glibc.errno = newValue }
35 | }
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:34:9: error: cannot find 'Glibc' in scope
32 | public var system_errno: CInt {
33 | get { Glibc.errno }
34 | set { Glibc.errno = newValue }
| `- error: cannot find 'Glibc' in scope
35 | }
36 | #endif
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:39:3: error: cannot find 'open' in scope
37 |
38 | public func system_open(_ path: UnsafePointer<CChar>, _ oflag: Int32) -> CInt {
39 | open(path, oflag)
| `- error: cannot find 'open' in scope
40 | }
41 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:45:3: error: cannot find 'open' in scope
43 | _ path: UnsafePointer<CChar>, _ oflag: Int32, _ mode: mode_t
44 | ) -> CInt {
45 | open(path, oflag, mode)
| `- error: cannot find 'open' in scope
46 | }
47 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:49:3: error: cannot find 'close' in scope
47 |
48 | public func system_close(_ fd: Int32) -> Int32 {
49 | close(fd)
| `- error: cannot find 'close' in scope
50 | }
51 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:55:3: error: cannot find 'read' in scope
53 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int
54 | ) -> Int {
55 | read(fd, buf, nbyte)
| `- error: cannot find 'read' in scope
56 | }
57 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:61:3: error: cannot find 'pread' in scope
59 | _ fd: Int32, _ buf: UnsafeMutableRawPointer!, _ nbyte: Int, _ offset: off_t
60 | ) -> Int {
61 | pread(fd, buf, nbyte, offset)
| `- error: cannot find 'pread' in scope
62 | }
63 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:73:3: error: cannot find 'write' in scope
71 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int
72 | ) -> Int {
73 | write(fd, buf, nbyte)
| `- error: cannot find 'write' in scope
74 | }
75 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:79:3: error: cannot find 'pwrite' in scope
77 | _ fd: Int32, _ buf: UnsafeRawPointer!, _ nbyte: Int, _ offset: off_t
78 | ) -> Int {
79 | pwrite(fd, buf, nbyte, offset)
| `- error: cannot find 'pwrite' in scope
80 | }
81 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:85:3: error: cannot find 'strerror' in scope
83 |
84 | public func system_strerror(_ __errnum: Int32) -> UnsafeMutablePointer<Int8>! {
85 | strerror(__errnum)
| `- error: cannot find 'strerror' in scope
86 | }
87 |
/host/spi-builder-workspace/Sources/SystemInternals/Exports.swift:89:3: error: cannot find 'strlen' in scope
87 |
88 | public func system_strlen(_ s: UnsafePointer<Int8>) -> Int {
89 | strlen(s)
| `- error: cannot find 'strlen' in scope
90 | }
91 |
BUILD FAILURE 6.1 wasm