Build Information
Failed to build SwiftTreeSitter, reference main (08ef81
), with Swift 5.9 for macOS (SPM) on 3 Jun 2025 03:10:01 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tree-sitter/swift-tree-sitter.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tree-sitter/swift-tree-sitter
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 08ef81e Bump core library to 0.25.5
Submodule path 'tree-sitter-swift': checked out 'eda05af7ac41adb4eb19c346883c0fa32fe3bdd8'
Submodule 'tree-sitter-swift' (https://github.com/alex-pinkus/tree-sitter-swift) registered for path 'tree-sitter-swift'
Cloning into '/Users/admin/builder/spi-builder-workspace/tree-sitter-swift'...
Cloned https://github.com/tree-sitter/swift-tree-sitter.git
Revision (git rev-parse @):
08ef81eb8620617b55b08868126707ad72bf754f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/tree-sitter/swift-tree-sitter.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD
https://github.com/tree-sitter/swift-tree-sitter.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/15] Compiling stdlib.c
While building module 'Darwin' imported from /Users/admin/builder/spi-builder-workspace/.build/checkouts/tree-sitter/lib/include/tree_sitter/api.h:10:
In file included from <module-includes>:74:
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/net/if_dl.h:99:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char sdl_len; /* Total length of sockaddr */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/net/if_dl.h:100:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char sdl_family; /* AF_LINK */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/net/if_dl.h:101:2: error: unknown type name 'u_short'; did you mean 'short'?
u_short sdl_index; /* if != 0, system given index for interface */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/net/if_dl.h:102:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char sdl_type; /* interface type */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/net/if_dl.h:103:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char sdl_nlen; /* interface name length, no trailing 0 reqd. */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/net/if_dl.h:104:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char sdl_alen; /* link level address length */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/net/if_dl.h:105:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char sdl_slen; /* link layer selector length */
^
While building module 'Darwin' imported from /Users/admin/builder/spi-builder-workspace/.build/checkouts/tree-sitter/lib/include/tree_sitter/api.h:10:
In file included from <module-includes>:85:
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/pthread/spawn.h:65:34: error: unknown type name 'qos_class_t'
qos_class_t __qos_class);
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/pthread/spawn.h:88:34: error: unknown type name 'qos_class_t'
qos_class_t * __restrict __qos_class);
^
While building module 'Darwin' imported from /Users/admin/builder/spi-builder-workspace/.build/checkouts/tree-sitter/lib/include/tree_sitter/api.h:10:
In file included from <module-includes>:93:
In file included from /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/posix_sem.h:49:
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/proc.h:116:2: error: unknown type name 'u_int'
u_int p_estcpu; /* Time averaged value of p_cpticks. */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/proc.h:121:2: error: unknown type name 'u_int'
u_int p_swtime; /* Time swapped in or out. */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/proc.h:122:2: error: unknown type name 'u_int'
u_int p_slptime; /* Time since last blocked. */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/proc.h:136:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char p_priority; /* Process priority. */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/proc.h:137:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char p_usrpri; /* User-priority based on p_cpu and p_nice. */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/proc.h:142:2: error: unknown type name 'u_short'; did you mean 'short'?
u_short p_xstat; /* Exit status for wait; also stop signal. */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/sys/proc.h:143:2: error: unknown type name 'u_short'; did you mean 'short'?
u_short p_acflag; /* Accounting flags. */
^
While building module 'Darwin' imported from /Users/admin/builder/spi-builder-workspace/.build/checkouts/tree-sitter/lib/include/tree_sitter/api.h:10:
In file included from <module-includes>:234:
In file included from /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/netinet/bootp.h:46:
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/netinet/ip.h:90:10: error: duplicate member 'ip_v'
u_int ip_v:4, /* version */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/netinet/ip.h:87:6: note: previous declaration is here
ip_v:4; /* version */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/netinet/ip.h:91:6: error: duplicate member 'ip_hl'
ip_hl:4; /* header length */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/netinet/ip.h:86:10: note: previous declaration is here
u_int ip_hl:4, /* header length */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/netinet/ip.h:197:10: error: duplicate member 'ipt_oflw'
u_int ipt_oflw:4, /* overflow counter */
^
/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/netinet/ip.h:194:6: note: previous declaration is here
ipt_oflw:4; /* overflow counter */
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from /Users/admin/builder/spi-builder-workspace/.build/checkouts/tree-sitter/lib/src/query.c:10:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/tree-sitter/lib/include/tree_sitter/api.h:10:10: fatal error: could not build module 'Darwin'
#include <stdlib.h>
~~~~~~~~^
21 errors generated.
[1/15] Compiling query.c
[1/15] Compiling parser.c
[1/15] Compiling subtree.c
[1/15] Compiling tree.c
[1/15] Compiling node.c
[1/15] Compiling wasm_store.c
[1/15] Compiling stack.c
[1/15] Compiling get_changed_ranges.c
[1/15] Compiling alloc.c
[1/15] Compiling tree_cursor.c
Fetching https://github.com/tree-sitter/tree-sitter
[1/57527] Fetching tree-sitter
Fetched https://github.com/tree-sitter/tree-sitter (2.91s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.25.5 (0.33s)
Creating working copy for https://github.com/tree-sitter/tree-sitter
Working copy of https://github.com/tree-sitter/tree-sitter resolved at 0.25.5
BUILD FAILURE 5.9 macosSpm