abidiff "ELF architecture changed" on ubuntu-latest (Ubuntu 26.04)
A job that compares a library against a stored .abi reference file with abidiff passed on ubuntu-24.04 and now fails on ubuntu-latest (Ubuntu 26.04) with ELF architecture changed. The library did not change. The libabigail that reads the file did: Ubuntu's abigail-tools package is 2.4 on 24.04 and 2.9 on 26.04, and a reference file written by the older abidw names the architecture differently from what 2.9 writes. Regenerate the reference files on 26.04 with abidw --out-file, or pin runs-on: ubuntu-24.04 until you have.
The error
This is the output in actions/runner-images #15071, from the zlib-ng ABI check on runner image version 20261018.168.1:
ELF architecture changed Functions changes summary: 0 Removed, 0 Changed (64 filtered out), 0 Added (2 filtered out) functions Variables changes summary: 0 Removed, 0 Changed (1 filtered out), 0 Added variable architecture changed from 'elf-unknown-arch-value-243' to 'elf-riscv'
No function or variable changed. The only difference abidiff reports is the architecture string in the two files.
When an ABI check goes red after ubuntu-latest moved: Pipeline Inbox for GitHub Actions Workflows, a plugin for JetBrains IDEs, shows the runs of your repositories with their jobs, steps and job logs in the IDE, and notifies you when one of your runs fails, with a link to the failed job's log.
Why it happens
A runner image maintainer answered on the issue. What the answer says:
abigail-toolsis not preinstalled on the image. It is installed from the Ubuntu archive, which ships libabigail 2.4 on 24.04 and 2.9 on 26.04. The Ubuntu package pages agree: abigail-tools 2.4-3build1 in noble (24.04) and 2.9-3 in resolute (26.04).- The two riscv64 reference files in zlib-ng were generated with an older libabigail that did not know the RISC-V machine type, so it wrote
architecture='elf-unknown-arch-value-243'. 243 isEM_RISCV. Libabigail 2.9 calls itelf-riscv, soabidiffreports an ELF architecture change. - The corpus format version is still 2.2 in both files. That is why the upgrade check in zlib-ng's
abicheck.sh(abilintandabidiffon the stored file) does not notice that the file is stale. - The LoongArch reference files are not affected: 2.9 still writes
elf-unknown-arch-value-258for them.
So the trigger in that report is an architecture libabigail 2.4 had no name for. The issue only shows the riscv64 case.
Fix 1: regenerate the reference files with the libabigail that compares them
This is the fix the maintainer gave: regenerate the stored files with libabigail 2.9, for zlib-ng with abicheck.sh --refresh on ubuntu-26.04. For your own files, abidw writes the XML representation of a library, and --out-file sends it to a file instead of standard output (abidw manual):
abidw --out-file REFERENCE.abi LIBRARY.so
Run it in a job on ubuntu-latest, from the same build the old file came from, then commit the new file. Print abidw --version in the job so the version that wrote the file is in the log; zlib-ng's script does the same.
The reporter's objection in the thread: a project that tests on both 24.04 and 26.04 (24.04 lacks architectures that 26.04 supports) says that recreating the files removes the point of caching them in the repository. The thread does not give a way to make one file work for both versions.
Fix 2: stay on 24.04 for this job
The maintainer's suggestion in the meantime:
jobs:
abi:
runs-on: ubuntu-24.04
That keeps libabigail 2.4 and the old behavior. It is a stopgap: the 24.04 image will be retired later, and the files then have to be regenerated anyway.
A switch that hides the message
abidiff --no-architectureexists in the abidiff manual ("Do not take architecture in account when comparing ABIs"). It silences this message, and it also stops the check from noticing a real architecture change. The thread does not recommend it.
Reading the exit code
The abidiff manual says the exit code is 0 if the ABIs are equal and non-zero if they differ or the tool hit an error. The non-zero code is an 8-bit field:
- 1,
ABIDIFF_ERROR: there was an error. - 2,
ABIDIFF_USAGE_ERROR: the tool was invoked wrongly (unknown switch, wrong number of arguments). The error bit is set as well. - 4,
ABIDIFF_ABI_CHANGE: the ABIs differ. - 8,
ABIDIFF_ABI_INCOMPATIBLE_CHANGE: the ABIs differ in an incompatible way. The ABI change bit is set as well, so the manual's example shows 12.
A step that treats any non-zero exit as failure, as a shell step does, fails the same way whether the cause is a note like ELF architecture changed or a removed function. Read the summary lines before assuming the library broke.
Telling it apart
- Look at "Set up job": the Runner Image group says
ubuntu-26.04orubuntu-24.04. Whileubuntu-latestwas moving, a re-run could land on 24.04 and pass. - A step with
abidw --versionbefore the check shows 2.4 on 24.04 and 2.9 on 26.04. - If the summary lines show removed or changed functions and no architecture line, it is a real ABI change, not this problem.
- If a binary fails to start with "cannot open shared object file", it is a library version: "cannot open shared object file" on Ubuntu 26.04.
The maintainer pointed to #14748 for the ubuntu-latest rollout. #15071 itself was closed on October 26, 2026 as outside the image's scope.
See failed jobs from IntelliJ IDEA
Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, is free for run history across your repositories, jobs, steps and job logs in the IDE, and for a notification when a run of yours or of your current branch fails, with a link to the failed job's log. Pro (US$1.50 a month, with a 30-day trial) adds re-running failed jobs (or all, with debug logging), cancelling runs, running workflows with inputs and approving deployments.
Install it free from JetBrains Marketplace
GitHub and GitHub Actions are trademarks of GitHub, Inc.; Ubuntu is a trademark of Canonical Ltd.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Canonical, the libabigail project or JetBrains.
More: "The ubuntu-latest label will migrate to Ubuntu 26" · GCC 15 on ubuntu-latest (Ubuntu 26.04) · glibc "version not found" on Ubuntu 26.04 · "cannot open shared object file" on Ubuntu 26.04 · executable stack on Ubuntu 26.04 · rpmbuild on Ubuntu 26.04 · 日本語