← Back to Pull requests

Fix build against modern libc headers #24

Open
iabdalkader opened this pull request with 84 lines diff across 13 files
View on GitHub
iabdalkader iabdalkader commented on Sep 21, 2026 11:10 UTC
Author

general.h defines __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:

./configure && make

Universal:

./configure CFLAGS="-O2 -arch arm64 -arch x86_64" \
            LDFLAGS="-arch arm64 -arch x86_64"
make

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 returntype field and the --line-directives remapping back to the .ino path were verified intact on every platform that built.

Diff: 84 lines (+42 / -42) across 13 files Reviewer: facchinm Review duration: 51076m
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
0.54
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
0.54
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
68%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
facchinm facchinm approved these changes on Sep 21, 2026 12:07 UTC
Approved Reviewer

Approved these changes.

iabdalkader iabdalkader commented on Sep 21, 2026 13:06 UTC
Author

This repo could really use a workflow to build and possibly create releases.

Reviewers
Assignees
iabdalkader iabdalkader
Labels
risk: low confidence: 68.1% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 54.2% (MEDIUM) · Higher = larger blast radius
54.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 68.1% · Lower = rushed or shallow review
68.1%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17.3% · Safe to merge
17.3%
Repository