The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LibPQ, reference master (e16ce4), with Swift 6.3 for macOS (SPM) on 13 Apr 2026 13:31:44 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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
========================================
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",
  "traits": [
    "default"
  ],
  "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",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/objcio/libpq.git
[1/135] Fetching libpq
Fetched https://github.com/objcio/libpq.git from cache (0.61s)
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.3
Building package at path:  $PWD
https://github.com/objcio/libpq.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[1/7] Write sample-entitlement.plist
[1/7] Write sources
[3/7] Write swift-version--6988338F2F200930.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
warning: you may be able to install libpq using your system-packager:
    brew install postgresql libpq
BUILD FAILURE 6.3 macosSpm