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 LibPNG, reference master (c059e4), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 08:13:34 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/LuizZak/swift-libpng.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LuizZak/swift-libpng
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c059e4a Adding test for PNGFile.fromArgb
Cloned https://github.com/LuizZak/swift-libpng.git
Revision (git rev-parse @):
c059e4a34d0a84a2a1cc7eac8acdb8fa3ab8142f
SUCCESS checkout https://github.com/LuizZak/swift-libpng.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": "swift-libpng",
      "name": "LibPNG",
      "url": "https://github.com/LuizZak/swift-libpng.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-libpng",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/LuizZak/swift-libpng.git
[1/76] Fetching swift-libpng
Fetched https://github.com/LuizZak/swift-libpng.git from cache (1.31s)
Creating working copy for https://github.com/LuizZak/swift-libpng.git
Working copy of https://github.com/LuizZak/swift-libpng.git resolved at master (c059e4a)
warning: '.resolve-product-dependencies': dependency 'swift-libpng' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/LuizZak/swift-libpng.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module LibPNG
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libpng.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
1 | #include <png.h>
  |          `- error: 'png.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
 1 | import CLibPNG
   |        `- error: could not build Objective-C module 'CLibPNG'
 2 |
 3 | public extension PNGFile {
[4/5] Compiling LibPNG LibPNG+FromData.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libpng.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
1 | #include <png.h>
  |          `- error: 'png.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
 1 | import CLibPNG
   |        `- error: could not build Objective-C module 'CLibPNG'
 2 |
 3 | public extension PNGFile {
[5/5] Compiling LibPNG LibPNG.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "libpng.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/Sources/CLibPNG/libpng.h:1:10: error: 'png.h' file not found
1 | #include <png.h>
  |          `- error: 'png.h' file not found
2 |
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG+FromData.swift:1:8: error: could not build Objective-C module 'CLibPNG'
 1 | import CLibPNG
   |        `- error: could not build Objective-C module 'CLibPNG'
 2 |
 3 | public extension PNGFile {
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install libpng using your system-packager:
    brew install libpng
BUILD FAILURE 6.0 macosSpm