Build Information
Failed to build LibPNG, reference 1.6.58 (6b62d0), with Swift 6.3 for Android on 8 May 2026 16:00:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EvgenijLutz/LibPNG.git
Reference: 1.6.58
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/EvgenijLutz/LibPNG
* tag 1.6.58 -> FETCH_HEAD
HEAD is now at 6b62d0b Update to PNG 1.6.58
Cloned https://github.com/EvgenijLutz/LibPNG.git
Revision (git rev-parse @):
6b62d0b10b52a243d92a1bcd847b762e04fe5191
SUCCESS checkout https://github.com/EvgenijLutz/LibPNG.git at 1.6.58
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/EvgenijLutz/LibPNG.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/6] Copying png.a
[1/6] Write sources
[2/6] Write swift-version--4F562202D5529B1.txt
[3/6] Compiling LibPNGC Common.cpp
In file included from /host/spi-builder-workspace/Sources/LibPNGC/LibPNGC.cpp:8:
In file included from /host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/LibPNGC.hpp:13:
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:23:27: error: expected ';' at end of declaration list
23 | const char* fn_nonnull _contents;
| ^
| ;
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:32:28: error: expected ';' at end of declaration list
32 | const char* fn_nullable _iccData;
| ^
| ;
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:35:5: error: friends can only be classes or functions
35 | FN_FRIEND_SWIFT_INTERFACE(PNGImage)
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:157:14: note: expanded from macro 'FN_FRIEND_SWIFT_INTERFACE'
157 | friend name* fn_nullable name##Retain(name* fn_nullable obj) SWIFT_RETURNS_UNRETAINED; \
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:41:21: note: expanded from macro 'fn_nullable'
41 | #define fn_nullable __nullable
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/LibPNGC.cpp:8:
In file included from /host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/LibPNGC.hpp:13:
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:35:5: error: expected ';' at end of declaration list
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:157:26: note: expanded from macro 'FN_FRIEND_SWIFT_INTERFACE'
157 | friend name* fn_nullable name##Retain(name* fn_nullable obj) SWIFT_RETURNS_UNRETAINED; \
| ^
<scratch space>:77:1: note: expanded from here
77 | PNGImageRetain
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/LibPNGC.cpp:8:
In file included from /host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/LibPNGC.hpp:13:
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:35:5: error: expected ')'
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:158:45: note: expanded from macro 'FN_FRIEND_SWIFT_INTERFACE'
158 | friend void name##Release(name* fn_nullable obj);
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:35:5: note: to match this '('
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:158:26: note: expanded from macro 'FN_FRIEND_SWIFT_INTERFACE'
158 | friend void name##Release(name* fn_nullable obj);
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/LibPNGC.cpp:8:
In file included from /host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/LibPNGC.hpp:13:
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:37:37: error: expected ')'
37 | PNGImage(const char* fn_nonnull contents,
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:37:13: note: to match this '('
37 | PNGImage(const char* fn_nonnull contents,
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:47:51: error: expected ')'
47 | static bool checkIfPNG(const char* fn_nonnull path fn_noescape);
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:47:27: note: to match this '('
47 | static bool checkIfPNG(const char* fn_nonnull path fn_noescape);
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:52:7: warning: 'nodiscard' attribute only applies to Objective-C methods, enums, structs, unions, classes, functions, function pointers, and typedefs [-Wignored-attributes]
52 | [[nodiscard("Don't forget to release the object using the PNGImageRelease function")]]
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:53:22: error: redefinition of '__nullable' as different kind of symbol
53 | static PNGImage* fn_nullable open(const char* fn_nonnull path fn_noescape) SWIFT_RETURNS_RETAINED SWIFT_NAME(__openUnsafe(path:));
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:41:21: note: expanded from macro 'fn_nullable'
41 | #define fn_nullable __nullable
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:32:17: note: previous definition is here
32 | const char* fn_nullable _iccData;
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:41:21: note: expanded from macro 'fn_nullable'
41 | #define fn_nullable __nullable
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/LibPNGC.cpp:8:
In file included from /host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/LibPNGC.hpp:13:
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:53:33: error: expected ';' at end of declaration list
53 | static PNGImage* fn_nullable open(const char* fn_nonnull path fn_noescape) SWIFT_RETURNS_RETAINED SWIFT_NAME(__openUnsafe(path:));
| ^
| ;
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:56:17: error: duplicate member '__nonnull'
56 | const char* fn_nonnull getContents() fn_lifetimebound SWIFT_COMPUTED_PROPERTY { return _contents; }
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:45:20: note: expanded from macro 'fn_nonnull'
45 | #define fn_nonnull __nonnull
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:23:17: note: previous declaration is here
23 | const char* fn_nonnull _contents;
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:45:20: note: expanded from macro 'fn_nonnull'
45 | #define fn_nonnull __nonnull
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/LibPNGC.cpp:8:
In file included from /host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/LibPNGC.hpp:13:
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:56:27: error: expected ';' at end of declaration list
56 | const char* fn_nonnull getContents() fn_lifetimebound SWIFT_COMPUTED_PROPERTY { return _contents; }
| ^
| ;
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:76:1: error: expected ';' after top level declarator
76 | FN_DEFINE_SWIFT_INTERFACE(PNGImage)
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:166:19: note: expanded from macro 'FN_DEFINE_SWIFT_INTERFACE'
166 | name* fn_nullable name##Retain(name* fn_nullable obj) SWIFT_RETURNS_UNRETAINED; \
| ^
<scratch space>:81:1: note: expanded from here
81 | PNGImageRetain
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/LibPNGC.cpp:8:
In file included from /host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/LibPNGC.hpp:13:
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:76:1: error: expected ')'
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:167:38: note: expanded from macro 'FN_DEFINE_SWIFT_INTERFACE'
167 | void name##Release(name* fn_nullable obj);
| ^
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/PNGImage.hpp:76:1: note: to match this '('
/host/spi-builder-workspace/Sources/LibPNGC/include/LibPNGC/Common.hpp:167:19: note: expanded from macro 'FN_DEFINE_SWIFT_INTERFACE'
167 | void name##Release(name* fn_nullable obj);
| ^
1 warning and 13 errors generated.
[4/6] Compiling LibPNGC LibPNGC.cpp
[5/6] Compiling LibPNGC PNGImage.cpp
BUILD FAILURE 6.3 android