Build Information
Failed to build SwiftyModbus with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DimaRU/SwiftyModbus.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DimaRU/SwiftyModbus
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 444406b Fix Package definition file errors for Xcode 15/Swift 5.9
Cloned https://github.com/DimaRU/SwiftyModbus.git
Revision (git rev-parse @):
444406bf0d43bf325073e892256c963e5bf77441
SUCCESS checkout https://github.com/DimaRU/SwiftyModbus.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/DimaRU/SwiftyModbus.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/24] Compiling PromiseKit Resolver.swift
[6/24] Compiling PromiseKit Thenable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/25] Emitting module SwiftyModbus
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libmodbus.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/Libmodbus/libmodbus.h:1:9: error: 'modbus.h' file not found
1 | #import <modbus.h>
| `- error: 'modbus.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyModbus/SwiftyModbus.swift:9:8: error: could not build Objective-C module 'CModbus'
7 |
8 | import Foundation
9 | import CModbus
| `- error: could not build Objective-C module 'CModbus'
10 |
11 | fileprivate let errorValue: Int32 = -1
[8/25] Compiling PromiseKit hang.swift
[9/25] Compiling PromiseKit after.swift
[10/25] Compiling PromiseKit firstly.swift
[11/25] Compiling PromiseKit race.swift
[12/25] Compiling PromiseKit Configuration.swift
[13/25] Compiling PromiseKit CustomStringConvertible.swift
[14/25] Compiling PromiseKit Error.swift
[15/25] Compiling PromiseKit Guarantee.swift
[16/25] Compiling PromiseKit Catchable.swift
[17/25] Compiling PromiseKit Combine.swift
[18/25] Compiling PromiseKit Async.swift
[19/25] Compiling PromiseKit Box.swift
[20/25] Emitting module PromiseKit
[21/25] Compiling PromiseKit LogEvent.swift
[22/25] Compiling PromiseKit Promise.swift
[23/25] Compiling SwiftyModbus SwiftyModbus.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libmodbus.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/Libmodbus/libmodbus.h:1:9: error: 'modbus.h' file not found
1 | #import <modbus.h>
| `- error: 'modbus.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyModbus/SwiftyModbus.swift:9:8: error: could not build Objective-C module 'CModbus'
7 |
8 | import Foundation
9 | import CModbus
| `- error: could not build Objective-C module 'CModbus'
10 |
11 | fileprivate let errorValue: Int32 = -1
[24/25] Compiling SwiftyModbus SwiftyModbusResult.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libmodbus.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/Libmodbus/libmodbus.h:1:9: error: 'modbus.h' file not found
1 | #import <modbus.h>
| `- error: 'modbus.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyModbus/SwiftyModbus.swift:9:8: error: could not build Objective-C module 'CModbus'
7 |
8 | import Foundation
9 | import CModbus
| `- error: could not build Objective-C module 'CModbus'
10 |
11 | fileprivate let errorValue: Int32 = -1
Fetching https://github.com/mxcl/PromiseKit.git
[1/16963] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (4.73s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (0.70s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libmodbus using your system-packager:
brew install libmodbus
BUILD FAILURE 6.0 macosSpm