Skip to content

abicheck

abicheck detects breaking changes in C/C++ shared libraries before they reach production. Point it at two builds of a library (plus their headers), and it tells you whether existing binaries will keep working or break at runtime.

It supports ELF (Linux), PE/COFF (Windows), and Mach-O (macOS) binaries, and it's a drop-in replacement for abi-compliance-checker.

Gate ABI in CI in 5 lines. Drop the first-class GitHub Action into any workflow — it installs everything, runs the comparison, sets the exit code, and can upload SARIF to the Security tab:

- uses: abicheck/abicheck@v0.5.0
  with:
    old-library: abi-baseline.json
    new-library: build/libfoo.so
    new-header: include/foo.h

Why abicheck

  • Five-source evidence model — abicheck overlays up to five independent, additive sources (the binary, its debug info, its public headers, its build-system data, and optionally its sources — L0L4), cross-checks them against each other (DWARF/PDB debug info against the symbol table, header AST against build flags), and lets the strongest evidence win. Each source catches breaks the others miss. See Evidence & Detectability.
  • 396 detection rules — symbol removal, signature changes, struct/class layout drift, vtable reordering, enum value shifts, qualifier changes, calling conventions, and many more. See the Change Kind Reference.
  • Multiple output formats — Markdown, JSON, SARIF (GitHub Code Scanning), HTML.
  • Policy profilesstrict_abi, sdk_vendor, plugin_abi, or custom YAML overrides.
  • ABICC drop-in — full flag parity for migrating from abi-compliance-checker.
  • CI-ready — clear exit codes, SARIF upload, snapshot-based baselines, first-class GitHub Action.
  • Agent-friendly — structured JSON/SARIF output and a typed Python API for AI-driven workflows; agents use the CLI or the API directly, no separate protocol server.

How the documentation is organized

The docs are two complementary tracks, each ordered from introductory to expert:

  1. Learn the problemABI/API Handling & Recommendations is educational material that needs no abicheck knowledge: what ABI/API compatibility is, why libraries break their consumers, and how to design against it. Start with the learning series (part 0 assumes nothing; part 7 is expert-level design guidance) and keep the example encyclopedia as a catalog of real breaks.
  2. Use the tool — the User Guide takes you from install and first check through CI integration to specialised workflows; Concepts explains how abicheck works — what a verdict means, what each evidence source (binary, debug info, headers, build data, sources) can and cannot see, and how the pipeline is built; and Reference holds the exhaustive lookup tables (change kinds, exit codes, platforms, tool comparison).

Where to go next

New to abicheck?

  1. Getting Started — install, first check, CI setup.
  2. Choose Your Workflow — a decision guide that maps your artifacts and CI policy to the exact command.
  3. Verdicts — what each verdict means and how to react.
  4. CLI Usage — every command, every flag.

New to the ABI/API problem itself?

Evaluating or comparing tools?

Integrating into a release pipeline?

Maintaining a public compatibility contract?

Checking multiple compilers and platforms?

Checking real applications and plugins?

Automating through Python or an agent?

  • Python API — typed requests, and a CLI/Python parity table.

Migrating from another tool?

Contributing or extending abicheck?

Status

CI PyPI version conda-forge