cs.SEMar 28, 2026

ComBench: A Repo-level Real-world Benchmark for Compilation Error Repair

Authors: Jia Li, Zeyang Zhuang, Zhuangbin Chen, Yuxin Su, Wei Meng, Michael R. Lyu

Organizations: The Chinese University of Hong Kong, Hong Kong, China · School of Software Engineering, Sun Yat-sen University, Zhuhai, China · Sun Yat-sen University, Guangzhou, China

Abstract

Compilation errors pose pervasive and critical challenges in software development, significantly hindering productivity. Therefore, Automated Compilation Error Repair (ACER) techniques are proposed to mitigate these issues. Despite recent advancements in ACER, its real-world performance remains poorly evaluated. This can be largely attributed to the limitations of existing benchmarks, \ie decontextualized single-file data, lack of authentic source diversity, and biased local task modeling that ignores crucial repository-level complexities. To bridge this critical gap, we propose ComBench, the first repository-level, reproducible real-world benchmark for C/C++ compilation error repair. ComBench is constructed through a novel, automated framework that systematically mines real-world failures from the GitHub CI histories of large-scale open-source projects. Our framework contributes techniques for the high-precision identification of ground-truth repair patches from complex version histories and a high-fidelity mechanism for reproducing the original, ephemeral build environments. To ensure data quality, all samples in ComBench are execution-verified -- guaranteeing reproducible failures and build success with ground-truth patches. Using ComBench, we conduct a comprehensive evaluation of 12 modern LLMs under both direct and agent-based repair settings. Our experiments reveal a significant gap between a model's ability to achieve syntactic correctness (a 73% success rate for GPT-5) and its ability to ensure semantic correctness (only 41% of its patches are valid). We also find that different models exhibit distinct specializations for different error types. ComBench provides a robust and realistic platform to guide the future development of ACER techniques capable of addressing the complexities of modern software development.

Figures & tables

Explore similar work

CardsList
  1. Metrics Failure in LLM-Based Code Vulnerability Repair: An Empirical Study and a Change-Aware Screen

    Sep 22, 2026Om Nepal, Sushant Aryal, Oluseyi Olukola +1Automated Program RepairLLMs for Cybersecurity

  2. BuildBench: Benchmarking LLM Agents on Compiling Real-World Open-Source Software

    Sep 27, 2025Zehua Zhang, Ati Priya Bajaj, Divij Handa +14Software Engineering AgentsSoftware Engineering Benchmarks

  3. QiMeng-PRepair: Precise Code Repair via Edit-Aware Reward Optimization

    Apr 7, 2026Changxin Ke, Rui Zhang, Jiaming Guo +10Automated Program RepairLLM Code Generation