The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build LibPQ, reference master (e16ce4), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 00:50:16 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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",
  "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.70s)
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
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
Building for debugging...
[0/7] Write sources
[2/7] Write sample-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/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 {
[6/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 {
[7/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 {
[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 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
BUILD FAILURE 6.0 macosSpm