Build Information
Failed to build LibPNG, reference master (f5b1a8
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 23:05:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/KrakenCL/LibPNG.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KrakenCL/LibPNG
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at f5b1a8c Delete .swiftpm/xcode/package.xcworkspace directory
Cloned https://github.com/KrakenCL/LibPNG.git
Revision (git rev-parse @):
f5b1a8ca56ffa6a8229eada39c4d543fb60f42d4
SUCCESS checkout https://github.com/KrakenCL/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": "libpng",
"name": "LibPNG",
"url": "https://github.com/KrakenCL/LibPNG.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LibPNG",
"dependencies": [
]
}
]
}
Fetching https://github.com/KrakenCL/LibPNG.git
[1/57] Fetching libpng
Fetched https://github.com/KrakenCL/LibPNG.git from cache (0.58s)
Creating working copy for https://github.com/KrakenCL/LibPNG.git
Working copy of https://github.com/KrakenCL/LibPNG.git resolved at master (f5b1a8c)
warning: '.resolve-product-dependencies': dependency 'libpng' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/KrakenCL/LibPNG.git
https://github.com/KrakenCL/LibPNG.git
{
"dependencies" : [
],
"manifest_display_name" : "LibPNG",
"name" : "LibPNG",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LibPNG",
"targets" : [
"LibPNG"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LibPNGTests",
"module_type" : "SwiftTarget",
"name" : "LibPNGTests",
"path" : "Tests/LibPNGTests",
"sources" : [
"LibPNGTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"LibPNG"
],
"type" : "test"
},
{
"c99name" : "LibPNG",
"module_type" : "SwiftTarget",
"name" : "LibPNG",
"path" : "Sources/LibPNG",
"product_memberships" : [
"LibPNG"
],
"sources" : [
"LibPNG.swift"
],
"target_dependencies" : [
"CPNG"
],
"type" : "library"
},
{
"c99name" : "CPNG",
"module_type" : "SystemLibraryTarget",
"name" : "CPNG",
"path" : "Library/CPNG",
"product_memberships" : [
"LibPNG"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "4.2"
}
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 -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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module LibPNG
/Users/admin/builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
1 | module CPNG [system] {
2 | header "/usr/local/include/png.h"
| `- error: header '/usr/local/include/png.h' not found
3 | link "png"
4 | export *
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
17 |
18 | import Foundation
19 | import CPNG
| `- error: could not build Objective-C module 'CPNG'
20 |
21 | public typealias Pixel = UInt8
[4/4] Compiling LibPNG LibPNG.swift
/Users/admin/builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
1 | module CPNG [system] {
2 | header "/usr/local/include/png.h"
| `- error: header '/usr/local/include/png.h' not found
3 | link "png"
4 | export *
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
17 |
18 | import Foundation
19 | import CPNG
| `- error: could not build Objective-C module 'CPNG'
20 |
21 | public typealias Pixel = UInt8
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
warning: you may be able to install libpng using your system-packager:
brew install libpng
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/3] Emitting module LibPNG
/Users/admin/builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
1 | module CPNG [system] {
2 | header "/usr/local/include/png.h"
| `- error: header '/usr/local/include/png.h' not found
3 | link "png"
4 | export *
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
17 |
18 | import Foundation
19 | import CPNG
| `- error: could not build Objective-C module 'CPNG'
20 |
21 | public typealias Pixel = UInt8
[3/3] Compiling LibPNG LibPNG.swift
/Users/admin/builder/spi-builder-workspace/Library/CPNG/module.modulemap:2:10: error: header '/usr/local/include/png.h' not found
1 | module CPNG [system] {
2 | header "/usr/local/include/png.h"
| `- error: header '/usr/local/include/png.h' not found
3 | link "png"
4 | export *
/Users/admin/builder/spi-builder-workspace/Sources/LibPNG/LibPNG.swift:19:8: error: could not build Objective-C module 'CPNG'
17 |
18 | import Foundation
19 | import CPNG
| `- error: could not build Objective-C module 'CPNG'
20 |
21 | public typealias Pixel = UInt8
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
warning: you may be able to install libpng using your system-packager:
brew install libpng
BUILD FAILURE 6.1 macosSpm