The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build LibPQ, reference master (e16ce4), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 01:22:39 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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.2
Building package at path:  $PWD
https://github.com/objcio/libpq.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[0/7] Write sample-entitlement.plist
[3/7] Write swift-version-1EA4D86E10B52AF.txt
[5/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 {
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 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 {
[9/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 {
[10/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 {
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
warning: you may be able to install libpq using your system-packager:
    brew install postgresql libpq
BUILD FAILURE 6.2 macosSpm