build_native_lib.sh: require GCC 12 on x86_64 and check the compiler meson uses #784
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 138 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.295
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #784"
general
weight: 0.35
r-devulap
Problem
On x86_64,
build_native_lib.shbuilds the native library for Sapphire Rapids. Highway'sHWY_AVX3_SPRtarget needsGCC 12 or newer (
third_party/highway/hwy/detect_targets.h), but the script required GCC 11. With GCC 11 theversion check passes, and the build then fails inside Highway.
The script also checks
g++, while meson compiles with$CXXwhen it is set. So a machine with an old defaultg++and a newer compiler inCXX(for exampleCXX=g++-13, orgcc-toolseton RHEL) was rejected, even thoughthe build would have worked.
Change
MIN_GCC_VERSIONis 12 on x86_64, and unchanged (11) elsewhere.${CXX:-g++}, the one meson uses. Its version comes from-dumpfullversion -dumpversion(
-dumpversionalone prints only the major version since GCC 7).Tested
On Ubuntu 22.04 x86_64, default
g++11.4.0:CXX: the script stops before building:CXX=g++-13: it buildslibjvector-x86_64.so.