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

📅 2025-09-26
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Existing open-source software (OSS) auto-compilation approaches rely either on handcrafted rules or evaluate only highly starred repositories, failing to address real-world challenges such as missing documentation, implicit dependencies, and required source-code patches. To bridge this gap, we propose BuildBench—the first comprehensive benchmark explicitly designed to reflect practical compilation difficulty—featuring diverse, low-resource, and highly heterogeneous OSS projects. We further introduce OSS-Build-Agent, an intelligent agent framework integrating enhanced build-instruction retrieval, dependency inference, and context-aware code modification, enabling dynamic environment configuration and automated source-code patching. Extensive experiments demonstrate that our approach significantly outperforms state-of-the-art methods on BuildBench, exhibiting strong robustness and generalization across challenging scenarios—including undocumented builds, complex dependency resolution, and patch-dependent compilation.

Technology Category

Application Category

📝 Abstract
Automatically compiling open-source software (OSS) projects is a vital, labor-intensive, and complex task, which makes it a good challenge for LLM Agents. Existing methods rely on manually curated rules and workflows, which cannot adapt to OSS that requires customized configuration or environment setup. Recent attempts using Large Language Models (LLMs) used selective evaluation on a subset of highly rated OSS, a practice that underestimates the realistic challenges of OSS compilation. In practice, compilation instructions are often absent, dependencies are undocumented, and successful builds may even require patching source files or modifying build scripts. We propose a more challenging and realistic benchmark, BUILD-BENCH, comprising OSS that are more diverse in quality, scale, and characteristics. Furthermore, we propose a strong baseline LLM-based agent, OSS-BUILD-AGENT, an effective system with enhanced build instruction retrieval module that achieves state-of-the-art performance on BUILD-BENCH and is adaptable to heterogeneous OSS characteristics. We also provide detailed analysis regarding different compilation method design choices and their influence to the whole task, offering insights to guide future advances. We believe performance on BUILD-BENCH can faithfully reflect an agent's ability to tackle compilation as a complex software engineering tasks, and, as such, our benchmark will spur innovation with a significant impact on downstream applications in the fields of software development and software security.
Problem

Research questions and friction points this paper is trying to address.

Automating compilation of diverse open-source software projects
Addressing undocumented dependencies and missing build instructions
Overcoming limitations of manual rules and selective evaluation methods
Innovation

Methods, ideas, or system contributions that make the work stand out.

Proposes BUILD-BENCH benchmark for diverse OSS compilation
Introduces OSS-BUILD-AGENT with enhanced instruction retrieval module
Provides adaptable baseline agent for heterogeneous OSS characteristics
Zehua Zhang
Zehua Zhang
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
A
Ati Priya Bajaj
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
Divij Handa
Divij Handa
Ph.D. Arizona State University
Natural Language Processing
S
Siyu Liu
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
Arvind S Raj
Arvind S Raj
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
H
Hongkai Chen
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
H
Hulin Wang
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
Y
Yibo Liu
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
Zion Leonahenahe Basque
Zion Leonahenahe Basque
PhD Student, Arizona State University
decompilationbinary analysisprogram analysis
Souradip Nath
Souradip Nath
Arizona State University
Access ControlUsable SecurityDigital Forensics
V
Vishal Juneja
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
N
Nikhil Chapre
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA
Yan Shoshitaishvili
Yan Shoshitaishvili
Arizona State University
binary analysissystem securityawesomeness
Adam Doupé
Adam Doupé
Associate Professor, Arizona State University
Computer SecurityWeb ApplicationsMobile SecurityNetwork SecurityStatic Analysis
Chitta Baral
Chitta Baral
Professor of Computer Science, Arizona State University
Knowledge RepresentationNLPVisionRoboticsIntegrated Systems
R
Ruoyu Wang
School of Computing and Augmented Intelligence, Arizona State University, Tempe, AZ 85281, USA