Build Information
Failed to build Cstb, reference main (a47f4e), with Swift 6.0 for macOS (SPM) on 14 Feb 2026 10:53:40 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/troughton/Cstb.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/troughton/Cstb
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a47f4ec Update stb_image to 2.28
Cloned https://github.com/troughton/Cstb.git
Revision (git rev-parse @):
a47f4ecf3a139ac2f53ed27a984853c9f98097f1
SUCCESS checkout https://github.com/troughton/Cstb.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/troughton/Cstb.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/19] Compiling stb_divide stb_divide.c
In file included from /Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/stb_herringbone_wang_tile.c:2:
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:369:41: warning: declaration of 'struct stbhw__process' will not be visible outside of this function [-Wvisibility]
369 | typedef void stbhw__process_rect(struct stbhw__process *p, int xpos, int ypos,
| ^
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:401:43: warning: incompatible pointer types passing 'stbhw__process *' (aka 'struct stbhw__process *') to parameter of type 'struct stbhw__process *' [-Wincompatible-pointer-types]
401 | p->process_h_rect(p, xpos, ypos, a,b,c,d,e,f);
| ^
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:425:43: warning: incompatible pointer types passing 'stbhw__process *' (aka 'struct stbhw__process *') to parameter of type 'struct stbhw__process *' [-Wincompatible-pointer-types]
425 | p->process_v_rect(p, xpos, ypos, a,b,c,d,e,f);
| ^
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:929:21: error: incompatible function pointer types assigning to 'stbhw__process_rect *' (aka 'void (*)(struct stbhw__process *, int, int, int, int, int, int, int, int)') from 'void (stbhw__process *, int, int, int, int, int, int, int, int)' (aka 'void (struct stbhw__process *, int, int, int, int, int, int, int, int)') [-Wincompatible-function-pointer-types]
929 | p.process_h_rect = stbhw__parse_h_rect;
| ^ ~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:930:21: error: incompatible function pointer types assigning to 'stbhw__process_rect *' (aka 'void (*)(struct stbhw__process *, int, int, int, int, int, int, int, int)') from 'void (stbhw__process *, int, int, int, int, int, int, int, int)' (aka 'void (struct stbhw__process *, int, int, int, int, int, int, int, int)') [-Wincompatible-function-pointer-types]
930 | p.process_v_rect = stbhw__parse_v_rect;
| ^ ~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:1186:24: error: incompatible function pointer types assigning to 'stbhw__process_rect *' (aka 'void (*)(struct stbhw__process *, int, int, int, int, int, int, int, int)') from 'void (stbhw__process *, int, int, int, int, int, int, int, int)' (aka 'void (struct stbhw__process *, int, int, int, int, int, int, int, int)') [-Wincompatible-function-pointer-types]
1186 | p.process_h_rect = stbhw__corner_process_h_rect;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:1187:24: error: incompatible function pointer types assigning to 'stbhw__process_rect *' (aka 'void (*)(struct stbhw__process *, int, int, int, int, int, int, int, int)') from 'void (stbhw__process *, int, int, int, int, int, int, int, int)' (aka 'void (struct stbhw__process *, int, int, int, int, int, int, int, int)') [-Wincompatible-function-pointer-types]
1187 | p.process_v_rect = stbhw__corner_process_v_rect;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:1189:24: error: incompatible function pointer types assigning to 'stbhw__process_rect *' (aka 'void (*)(struct stbhw__process *, int, int, int, int, int, int, int, int)') from 'void (stbhw__process *, int, int, int, int, int, int, int, int)' (aka 'void (struct stbhw__process *, int, int, int, int, int, int, int, int)') [-Wincompatible-function-pointer-types]
1189 | p.process_h_rect = stbhw__edge_process_h_rect;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/stb_herringbone_wang_tile/include/stb_herringbone_wang_tile.h:1190:24: error: incompatible function pointer types assigning to 'stbhw__process_rect *' (aka 'void (*)(struct stbhw__process *, int, int, int, int, int, int, int, int)') from 'void (stbhw__process *, int, int, int, int, int, int, int, int)' (aka 'void (struct stbhw__process *, int, int, int, int, int, int, int, int)') [-Wincompatible-function-pointer-types]
1190 | p.process_v_rect = stbhw__edge_process_v_rect;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 6 errors generated.
[1/19] Compiling stb_herringbone_wang_tile stb_herringbone_wang_tile.c
[1/19] Compiling stb_image stb_image.c
[1/19] Compiling tinyexr tinyexr.cc
[1/19] Compiling stb_hexwave stb_hexwave.c
[1/19] Compiling stb_ds stb_ds.c
[1/19] Compiling stb_c_lexer stb_c_lexer.c
[1/19] Compiling stb_connected_components stb_connected_components.c
[1/19] Compiling stb_easy_font stb_easy_font.c
[1/19] Compiling miniz miniz.c
In file included from /Users/admin/builder/spi-builder-workspace/Sources/stb_dxt/stb_dxt.c:2:
/Users/admin/builder/spi-builder-workspace/Sources/stb_dxt/include/stb_dxt.h:608:7: error: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
608 | memcpy(data, src, 4*16);
| ^
/Users/admin/builder/spi-builder-workspace/Sources/stb_dxt/include/stb_dxt.h:608:7: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
[1/19] Compiling stb_dxt stb_dxt.c
BUILD FAILURE 6.0 macosSpm