Fix build against modern libc headers #24
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.54) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.54 · 84 lines diff across 13 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.266
Real PR Conversation Timeline
3 items
Approved
Approved these changes.
This repo could really use a workflow to build and possibly create releases.
facchinm
iabdalkader
general.hdefines__unused__, but libc headers use that name as a real attribute token, so our macro expands where an attribute name is expected and the build dies.Renamed to
CTAGS_ATTR_UNUSED/CTAGS_ATTR_PRINTF, same as universal-ctags. Find and replace, 42 lines each way, nothing else changes.Worth having on the macOS side too: the index only ships an x86_64 macOS ctags, and Rosetta only stays general-purpose through macOS 27. A native arm64 build needs this patch first.
Building
arm64:
Universal:
clang ad-hoc signs it, so it just runs. If you lipo two separate builds together
instead, lipo strips the signature and arm64 needs one:
codesign -s - ctags.Testing
Release targets:
| target | toolchain | master | this PR |
|---|---|---|---|
|
x86_64-apple-darwin| macOS 27, Apple clang | fails | ok (arm64 + universal) ||
x86_64-pc-linux-gnu| Debian 12, glibc 2.36, gcc 12.2 | fails | ok ||
aarch64-linux-gnu| Ubuntu 26.04, glibc 2.43, gcc 15.2 | fails | ok ||
i686-pc-linux-gnu| Debian 12,gcc -m32| - | ok ||
arm-linux-gnueabihf| not tested | | ||
i686-mingw32| not tested | | |No behaviour change: on glibc 2.31 and on musl, where master still builds, master and this branch produce byte-identical tag output over 59 files / 2697 tags.
The Arduino
returntypefield and the--line-directivesremapping back to the.inopath were verified intact on every platform that built.