Build Information
Failed to build LibPQ, reference master (e16ce4
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 07:45:08 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.1
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
========================================
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": "libpq",
"name": "LibPQ",
"url": "https://github.com/objcio/libpq.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/libpq",
"dependencies": [
]
}
]
}
Fetching https://github.com/objcio/libpq.git
[1/135] Fetching libpq
Fetched https://github.com/objcio/libpq.git from cache (0.66s)
Creating working copy for https://github.com/objcio/libpq.git
Working copy of https://github.com/objcio/libpq.git resolved at master (e16ce4a)
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/objcio/libpq.git
{
"dependencies" : [
],
"manifest_display_name" : "LibPQ",
"name" : "LibPQ",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Clibpq",
"targets" : [
"Clibpq"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "LibPQ",
"targets" : [
"LibPQ"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "sample",
"targets" : [
"sample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "sample",
"module_type" : "SwiftTarget",
"name" : "sample",
"path" : "Sources/sample",
"product_memberships" : [
"sample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"LibPQ"
],
"type" : "executable"
},
{
"c99name" : "LibPQ",
"module_type" : "SwiftTarget",
"name" : "LibPQ",
"path" : "Sources/LibPQ",
"product_memberships" : [
"LibPQ",
"sample"
],
"sources" : [
"Connection.swift",
"LibPQ.swift",
"Result.swift",
"Row.swift",
"TypeConversion.swift"
],
"target_dependencies" : [
"Clibpq"
],
"type" : "library"
},
{
"c99name" : "Clibpq",
"module_type" : "SystemLibraryTarget",
"name" : "Clibpq",
"path" : "Sources/CLibpqmac",
"product_memberships" : [
"Clibpq",
"LibPQ",
"sample"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "5.0"
}
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/7] Write sources
[2/7] Write sample-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.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 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 {
[8/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 {
[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