The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Cairo, reference 1.3.2 (af9fa9), with Swift 6.1 for macOS (SPM) on 18 Jul 2026 12:39:17 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pureswift/cairo.git
Reference: 1.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pureswift/cairo
 * tag               1.3.2      -> FETCH_HEAD
HEAD is now at af9fa9d Merge pull request #9 from PureSwift/fix/freetype-pkgconfig
Cloned https://github.com/pureswift/cairo.git
Revision (git rev-parse @):
af9fa9d203b0598d9a4697a05ba868bf87424d32
SUCCESS checkout https://github.com/pureswift/cairo.git at 1.3.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/pureswift/cairo.git
https://github.com/pureswift/cairo.git
{
  "dependencies" : [
    {
      "identity" : "fontconfig",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/PureSwift/FontConfig.git"
    }
  ],
  "manifest_display_name" : "Cairo",
  "name" : "Cairo",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Cairo",
      "targets" : [
        "Cairo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CairoTests",
      "module_type" : "SwiftTarget",
      "name" : "CairoTests",
      "path" : "Tests/CairoTests",
      "sources" : [
        "CairoTests.swift"
      ],
      "target_dependencies" : [
        "Cairo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Cairo",
      "module_type" : "SwiftTarget",
      "name" : "Cairo",
      "path" : "Sources/Cairo",
      "product_dependencies" : [
        "FontConfig"
      ],
      "product_memberships" : [
        "Cairo"
      ],
      "sources" : [
        "Content.swift",
        "Context.swift",
        "Error.swift",
        "Font.swift",
        "ImageFormat.swift",
        "Matrix.swift",
        "Path.swift",
        "Pattern.swift",
        "QuickLook.swift",
        "Status.swift",
        "Surface.swift",
        "SurfaceImage.swift",
        "SurfacePDF.swift",
        "SurfacePNG.swift",
        "SurfaceSVG.swift",
        "SurfaceType.swift"
      ],
      "target_dependencies" : [
        "CCairo",
        "CFreeType"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CFreeType",
      "module_type" : "SystemLibraryTarget",
      "name" : "CFreeType",
      "path" : "Sources/CFreeType",
      "product_memberships" : [
        "Cairo"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "CCairo",
      "module_type" : "SystemLibraryTarget",
      "name" : "CCairo",
      "path" : "Sources/CCairo",
      "product_memberships" : [
        "Cairo"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Compiling FontConfig FontConfig.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[5/9] Emitting module FontConfig
<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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[6/9] Compiling FontConfig Pattern.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[7/9] Compiling FontConfig FontWeight.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[8/9] Compiling FontConfig FontWidth.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[9/9] Compiling FontConfig FontSlant.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
Fetching https://github.com/PureSwift/FontConfig.git
[1/123] Fetching fontconfig
Fetched https://github.com/PureSwift/FontConfig.git from cache (0.62s)
Creating working copy for https://github.com/PureSwift/FontConfig.git
Working copy of https://github.com/PureSwift/FontConfig.git resolved at master (02b7b62)
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install cairo using your system-packager:
    brew install cairo
warning: you may be able to install freetype2 using your system-packager:
    brew install freetype
warning: you may be able to install fontconfig using your system-packager:
    brew install fontconfig
warning: you may be able to install cairo using your system-packager:
    brew install cairo
warning: you may be able to install freetype2 using your system-packager:
    brew install freetype
warning: you may be able to install fontconfig using your system-packager:
    brew install fontconfig
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Emitting module FontConfig
<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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[3/7] Compiling FontConfig FontWeight.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[4/7] Compiling FontConfig FontWidth.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[5/7] Compiling FontConfig FontSlant.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[6/7] Compiling FontConfig FontConfig.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
[7/7] Compiling FontConfig Pattern.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/.build/checkouts/FontConfig/Sources/CFontConfig/shim.h:1:10: error: 'fontconfig/fontconfig.h' file not found
1 | #include <fontconfig/fontconfig.h>
  |          `- error: 'fontconfig/fontconfig.h' file not found
2 | #include <fontconfig/fcfreetype.h>
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/FontConfig/Sources/FontConfig/FontConfig.swift:8:8: error: could not build Objective-C module 'CFontConfig'
 6 | //
 7 |
 8 | import CFontConfig
   |        `- error: could not build Objective-C module 'CFontConfig'
 9 |
10 | public final class FontConfiguration {
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install cairo using your system-packager:
    brew install cairo
warning: you may be able to install freetype2 using your system-packager:
    brew install freetype
warning: you may be able to install fontconfig using your system-packager:
    brew install fontconfig
warning: you may be able to install cairo using your system-packager:
    brew install cairo
warning: you may be able to install freetype2 using your system-packager:
    brew install freetype
warning: you may be able to install fontconfig using your system-packager:
    brew install fontconfig
BUILD FAILURE 6.1 macosSpm