Build Information
Failed to build LibPNG, reference main (b60628), with Swift 6.3 for Linux on 8 May 2026 16:01:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EvgenijLutz/LibPNG.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b606282 Add third-party notices
Cloned https://github.com/EvgenijLutz/LibPNG.git
Revision (git rev-parse @):
b6062829b4aee02028af5b4d279685530f423f70
SUCCESS checkout https://github.com/EvgenijLutz/LibPNG.git at main
========================================
Build
========================================
Selected platform: linux
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-3":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/5] Write sources
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>:232:1: note: expanded from here
232 | 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>:241:1: note: expanded from here
241 | 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.
[1/5] Compiling LibPNGC LibPNGC.cpp
[1/5] Compiling LibPNGC Common.cpp
In file included from /host/spi-builder-workspace/Sources/LibPNGC/PNGImage.cpp:8:
/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/PNGImage.cpp:8:
/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>:232:1: note: expanded from here
232 | PNGImageRetain
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/PNGImage.cpp:8:
/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/PNGImage.cpp:8:
/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/PNGImage.cpp:8:
/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/PNGImage.cpp:8:
/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>:241:1: note: expanded from here
241 | PNGImageRetain
| ^
In file included from /host/spi-builder-workspace/Sources/LibPNGC/PNGImage.cpp:8:
/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);
| ^
/host/spi-builder-workspace/Sources/LibPNGC/PNGImage.cpp:9:10: fatal error: 'png.h' file not found
9 | #include <png.h>
| ^~~~~~~
[1/5] Compiling LibPNGC PNGImage.cpp
[1/5] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.3 linux