The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LibPQ, reference master (e16ce4), with Swift 6.1 for Android on 28 May 2025 13:26:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/objcio/libpq.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/objcio/libpq.git
https://github.com/objcio/libpq.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LibPQ",
  "name" : "LibPQ",
  "path" : "/host/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/Clibpq",
      "product_memberships" : [
        "Clibpq",
        "LibPQ",
        "sample"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: you may be able to install libpq using your system-packager:
    apt-get install libpq-dev
warning: you may be able to install libpq using your system-packager:
    apt-get install libpq-dev
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling LibPQ LibPQ.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[5/13] Compiling LibPQ Result.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build 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:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[7/13] Compiling LibPQ Connection.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[8/13] Compiling LibPQ Row.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[9/13] Compiling LibPQ TypeConversion.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: you may be able to install libpq using your system-packager:
    apt-get install libpq-dev
warning: you may be able to install libpq using your system-packager:
    apt-get install libpq-dev
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
[2/11] Compiling LibPQ TypeConversion.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[3/11] Compiling LibPQ Row.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[4/11] Compiling LibPQ LibPQ.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[5/11] Compiling LibPQ Result.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Emitting module LibPQ
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
[7/11] Compiling LibPQ Connection.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibpq/shim.h:4:10: error: 'libpq-fe.h' file not found
2 | #define __CPOSTGRESQL_SHIM_H__
3 |
4 | #include <libpq-fe.h>
  |          `- error: 'libpq-fe.h' file not found
5 | #include <postgres_ext.h>
6 |
/host/spi-builder-workspace/Sources/LibPQ/Connection.swift:9:8: error: could not build C module 'Clibpq'
 7 |
 8 | import Foundation
 9 | import Clibpq
   |        `- error: could not build C module 'Clibpq'
10 |
11 | public struct PostgresError: Error {
BUILD FAILURE 6.1 android