Build Information
Failed to build LibPQ 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/objcio/libpq.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/objcio/libpq
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e16ce4a Checkpoint
Cloned https://github.com/objcio/libpq.git
Revision (git rev-parse @):
e16ce4a5f742dd7b14ce326b6aac2d425fb314d9
SUCCESS checkout https://github.com/objcio/libpq.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/objcio/libpq.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/7] Write sources
[2/7] Write sample-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/13] Compiling LibPQ TypeConversion.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibpqmac/shim.h:4:10: error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include "/opt/homebrew/opt/libpq/include/libpq-fe.h"
| `- error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
5 | #include "/opt/homebrew/opt/libpq/include/postgres_ext.h"
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build Objective-C module 'Clibpq'
7 |
8 | import Foundation
9 | import Clibpq
| `- error: could not build Objective-C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/13] Emitting module LibPQ
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibpqmac/shim.h:4:10: error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include "/opt/homebrew/opt/libpq/include/libpq-fe.h"
| `- error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
5 | #include "/opt/homebrew/opt/libpq/include/postgres_ext.h"
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build Objective-C module 'Clibpq'
7 |
8 | import Foundation
9 | import Clibpq
| `- error: could not build Objective-C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[7/13] Compiling LibPQ LibPQ.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibpqmac/shim.h:4:10: error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include "/opt/homebrew/opt/libpq/include/libpq-fe.h"
| `- error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
5 | #include "/opt/homebrew/opt/libpq/include/postgres_ext.h"
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build Objective-C module 'Clibpq'
7 |
8 | import Foundation
9 | import Clibpq
| `- error: could not build Objective-C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[8/13] Compiling LibPQ Result.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibpqmac/shim.h:4:10: error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include "/opt/homebrew/opt/libpq/include/libpq-fe.h"
| `- error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
5 | #include "/opt/homebrew/opt/libpq/include/postgres_ext.h"
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build Objective-C module 'Clibpq'
7 |
8 | import Foundation
9 | import Clibpq
| `- error: could not build Objective-C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[9/13] Compiling LibPQ Connection.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibpqmac/shim.h:4:10: error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include "/opt/homebrew/opt/libpq/include/libpq-fe.h"
| `- error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
5 | #include "/opt/homebrew/opt/libpq/include/postgres_ext.h"
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build Objective-C module 'Clibpq'
7 |
8 | import Foundation
9 | import Clibpq
| `- error: could not build Objective-C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[10/13] Compiling LibPQ Row.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibpqmac/shim.h:4:10: error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include "/opt/homebrew/opt/libpq/include/libpq-fe.h"
| `- error: '/opt/homebrew/opt/libpq/include/libpq-fe.h' file not found
5 | #include "/opt/homebrew/opt/libpq/include/postgres_ext.h"
6 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build Objective-C module 'Clibpq'
7 |
8 | import Foundation
9 | import Clibpq
| `- error: could not build Objective-C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libpq using your system-packager:
brew install postgresql libpq
BUILD FAILURE 6.0 macosSpm