A Benchmark for Language Models in Real-World System Building

Weilin Jin, Chenyu Zhao, Zeshun Huang, Chaoyun Zhang, Qingwei Lin, Chetan Bansal, Saravan Rajmohan, Shenglin Zhang, Yongqian Sun, Dan Pei, Yifan Wu, Tong Jia, Ying Li, Zhonghai Wu, Minghua MaarXiv 2026

TL;DR

Migrating software across different hardware architectures (like x86 to ARM) frequently breaks software builds due to hidden architectural dependencies and toolchain mismatches. This paper introduces Build-bench, the first benchmark designed to evaluate how well Large Language Models (LLMs) can autonomously diagnose and repair cross-Instruction Set Architecture (ISA) build failures. The findings reveal a stark reality: while top-tier models show promise, cross-ISA software package repair remains a highly challenging frontier for AI.

What Problem Does This Paper Address?

When organizations migrate software infrastructure—such as Apple moving to Apple Silicon or AWS adopting Graviton processors—they must transition codebases between different hardware architectures (e.g., from x86_64 to aarch64). This process frequently triggers complex build failures. Fixing these failures requires more than just fixing a typo in the source code; it demands resolving deep architectural dependencies, rewriting build scripts (like Makefiles or CMakeLists), adjusting compiler flags, and fixing language incompatibilities.

While LLMs have excelled at standard automated program repair benchmarks (like SWE-bench or Defects4J), these existing benchmarks focus almost exclusively on single, homogeneous hardware environments. They fail to test an LLM's ability to reason about hardware-software co-design and cross-platform portability. This paper bridges that gap by introducing a framework to evaluate LLMs on real-world system-building failures.

Methods

The authors developed an automated, end-to-end evaluation pipeline built on the Model Context Protocol (MCP), which decouples the LLM from external tools and allows it to autonomously orchestrate the repair process.

The automatic cross-ISA build repair pipeline.

The workflow consists of three primary phases:

  1. Input & Diagnosis Context: The LLM is provided with the raw, failed build package (source archive, metadata, build scripts) and the complete failure log.
  2. LLM-driven Repair Process: The LLM dynamically invokes specialized MCP tools to extract the package structure, read specific files, and apply line-level patches or regenerate entire files. A tool result cache is used to optimize token consumption.
  3. Verification & Evaluation Loop: The modified package is automatically uploaded to the Open Build Service (OBS), a real-world distributed build platform, to test if it compiles successfully. If the build fails, the pipeline feeds the new failure log back to the LLM for another attempt, allowing up to three iterative repair cycles ($N_{max} = 3$).

Datasets

The authors introduced Build-bench, a dataset containing 268 real-world cross-ISA build failures curated from OBS repositories. To ensure reproducibility, every failure was repeatedly tested to confirm it consistently failed.

The dataset is split into two migration directions:

  • x86_64 $\rightarrow$ aarch64: 163 packages that compile successfully on x86 but fail on ARM.
  • aarch64 $\rightarrow$ x86_64: 105 packages that compile successfully on ARM but fail on x86.

Using an LLM to categorize the logs, the authors classified the failures into five distinct error types, spanning the entire software construction pipeline.

Figure 2: Error category distribution across cross-ISA build failures. The figure illustrates the proportion of five error types across both migration directions (x86_64→aarch64 and aarch64→x86_64).

Key Insights and Ideas

  • Asymmetric Architectural Knowledge: LLMs are significantly better at migrating code from x86 to ARM than the reverse. The authors hypothesize this is due to recent industry trends; because more open-source documentation and commits exist for x86-to-ARM migrations, LLMs have accumulated more implicit knowledge about this specific direction during pretraining.
  • The Iteration Dividend: Advanced frontier models possess a strong ability to learn from build logs across successive turns. Instead of getting stuck, models like GPT-5 showed compounding success rates in later iterations, proving that multi-round feedback loops are essential for complex system engineering tasks.
  • The Validation Trap: Not all LLMs use tools efficiently. For example, Qwen3-max suffered from massive runtime overhead (averaging 60 minutes per package) because it repeatedly called verification tools without actually altering its repair strategy, highlighting a need for better tool-use planning.

Key Results

The benchmark exposed a massive performance gap between state-of-the-art models:

  • Top Performer: GPT-5 achieved the highest repair success rate, fixing 63.19% of packages in the x86_64 $\rightarrow$ aarch64 direction. However, its performance plummeted to 29.52% in the reverse direction.
  • The Rest of the Field: Other models struggled significantly. GPT-5-mini achieved a 28.83% success rate on x86 $\rightarrow$ aarch64, while models like Claude Sonnet 4.5 and DeepSeek V3 failed to clear the 10% mark in the same direction, often limited to fixing only the simplest configuration or dependency errors.
  • Impact of Feedback: Iterative feedback was highly effective for capable models. Over three rounds, GPT-5 improved its success rate by 26.38% (from 36.81% in turn 1 to 63.19% in turn 3), whereas weaker models plateaued immediately after the first or second turn.

Limitations and Future Work

While the benchmark successfully highlights the difficulties of cross-ISA migration, the authors note that current LLMs still struggle heavily with complex, architecture-specific source code adaptations and long-context reasoning over massive build logs.

Future work points toward the development of architecture-aware LLMs and more reasoning-efficient agent architectures that can handle low-level system constraints without exhausting context windows or incurring extreme token costs.

Summary updated

BibTeX
@misc{jin2026benchmark,
  author = {Weilin Jin and Chenyu Zhao and Zeshun Huang and Chaoyun Zhang and Qingwei Lin and Chetan Bansal and Saravan Rajmohan and Shenglin Zhang and Yongqian Sun and Dan Pei and Yifan Wu and Tong Jia and Ying Li and Zhonghai Wu and Minghua Ma},
  title = {{A Benchmark for Language Models in Real-World System Building}},
  year = {2026},
  eprint = {2601.12927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.12927},
}
Figure