Build Information
Failed to build REPL, reference master (90d95e
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 02:04:47 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/REPL.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Samasaur1/REPL
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 90d95e4 Support command aliases
Cloned https://github.com/Samasaur1/REPL.git
Revision (git rev-parse @):
90d95e4b116bb8de356c015025af26c95e569e9a
SUCCESS checkout https://github.com/Samasaur1/REPL.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "repl",
"name": "REPL",
"url": "https://github.com/Samasaur1/REPL.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/REPL",
"dependencies": [
]
}
]
}
Fetching https://github.com/Samasaur1/REPL.git
[1/146] Fetching repl
Fetched https://github.com/Samasaur1/REPL.git from cache (0.67s)
Creating working copy for https://github.com/Samasaur1/REPL.git
Working copy of https://github.com/Samasaur1/REPL.git resolved at master (90d95e4)
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Samasaur1/REPL.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/6] Write sources
[1/6] Write repl-entitlement.plist
[2/6] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module REPL
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:182:5: error: main actor-isolated var 'task' can not be mutated from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: mutation of this var is only permitted within the actor
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
| `- error: main actor-isolated var 'task' can not be mutated from a nonisolated context
183 | task.launchPath = "/bin/bash"
184 | task.arguments = ["-c", command]
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:183:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
184 | task.arguments = ["-c", command]
185 |
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:184:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
184 | task.arguments = ["-c", command]
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
185 |
186 | let pipe = Pipe()
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:187:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
:
185 |
186 | let pipe = Pipe()
187 | task.standardOutput = pipe
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
188 | task.launch()
189 |
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:188:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
:
186 | let pipe = Pipe()
187 | task.standardOutput = pipe
188 | task.launch()
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
189 |
190 | let data = pipe.fileHandleForReading.readDataToEndOfFile()
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:211:39: error: main actor-isolated var 'originalTerm' can not be used 'inout' from a nonisolated context
202 | let c: cc_t = 0
203 | let cct = (c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c) // Set of 20 Special Characters
204 | var originalTerm: termios = termios(c_iflag: 0, c_oflag: 0, c_cflag: 0, c_lflag: 0, c_cc: cct, c_ispeed: 0, c_ospeed: 0)
| `- note: mutation of this var is only permitted within the actor
205 | tcgetattr(STDIN_FILENO, &originalTerm) //this gets the current settings
206 | var term = originalTerm
:
208 | tcsetattr(STDIN_FILENO, TCSANOW, &term) //set these new settings
209 |
210 | func resetTermAndExitWith(sig: Int32) {
| `- note: add '@MainActor' to make global function 'resetTermAndExitWith(sig:)' part of global actor 'MainActor'
211 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTerm)
| `- error: main actor-isolated var 'originalTerm' can not be used 'inout' from a nonisolated context
212 | exit(sig)
213 | }
[5/8] Compiling REPL main.swift
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:182:5: error: main actor-isolated var 'task' can not be mutated from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: mutation of this var is only permitted within the actor
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
| `- error: main actor-isolated var 'task' can not be mutated from a nonisolated context
183 | task.launchPath = "/bin/bash"
184 | task.arguments = ["-c", command]
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:183:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
184 | task.arguments = ["-c", command]
185 |
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:184:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
184 | task.arguments = ["-c", command]
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
185 |
186 | let pipe = Pipe()
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:187:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
:
185 |
186 | let pipe = Pipe()
187 | task.standardOutput = pipe
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
188 | task.launch()
189 |
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:188:5: error: main actor-isolated var 'task' can not be referenced from a nonisolated context
178 | //}
179 |
180 | var task: Process = Process()
| `- note: var declared here
181 | func exec(_ command: String) -> String {
| `- note: add '@MainActor' to make global function 'exec' part of global actor 'MainActor'
182 | task = Process()
183 | task.launchPath = "/bin/bash"
:
186 | let pipe = Pipe()
187 | task.standardOutput = pipe
188 | task.launch()
| `- error: main actor-isolated var 'task' can not be referenced from a nonisolated context
189 |
190 | let data = pipe.fileHandleForReading.readDataToEndOfFile()
/Users/admin/builder/spi-builder-workspace/Sources/REPL/main.swift:211:39: error: main actor-isolated var 'originalTerm' can not be used 'inout' from a nonisolated context
202 | let c: cc_t = 0
203 | let cct = (c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c) // Set of 20 Special Characters
204 | var originalTerm: termios = termios(c_iflag: 0, c_oflag: 0, c_cflag: 0, c_lflag: 0, c_cc: cct, c_ispeed: 0, c_ospeed: 0)
| `- note: mutation of this var is only permitted within the actor
205 | tcgetattr(STDIN_FILENO, &originalTerm) //this gets the current settings
206 | var term = originalTerm
:
208 | tcsetattr(STDIN_FILENO, TCSANOW, &term) //set these new settings
209 |
210 | func resetTermAndExitWith(sig: Int32) {
| `- note: add '@MainActor' to make global function 'resetTermAndExitWith(sig:)' part of global actor 'MainActor'
211 | tcsetattr(STDIN_FILENO, TCSANOW, &originalTerm)
| `- error: main actor-isolated var 'originalTerm' can not be used 'inout' from a nonisolated context
212 | exit(sig)
213 | }
BUILD FAILURE 6.0 macosSpm