Skip to content

Instantly share code, notes, and snippets.

@cgwalters
Last active December 14, 2021 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgwalters/cf743fac23ccd232efa9676d90d911f4 to your computer and use it in GitHub Desktop.
Save cgwalters/cf743fac23ccd232efa9676d90d911f4 to your computer and use it in GitHub Desktop.
$ rpm -q gcc cargo
gcc-8.5.0-7.el8.x86_64
cargo-1.56.1-2.module+el8.6.0+13527+64f2eba2.x86_64
$ rhpkg local
...
error: build-id found in /var/home/walters/rpmbuild/BUILDROOT/rpm-ostree-2021.14-2.el8.x86_64/usr/bin/rpm-ostree too small
error: Generating build-id links failed


RPM build errors:
    build-id found in /var/home/walters/rpmbuild/BUILDROOT/rpm-ostree-2021.14-2.el8.x86_64/usr/bin/rpm-ostree too small
    Generating build-id links failed
$ eu-readelf -a ~/rpmbuild/BUILDROOT/rpm-ostree-2021.14-2.el8.x86_64/usr/bin/rpm-ostree  |grep -i 'build-id.*bytes at offset'
Note section [ 3] '.note.gnu.build-id' of 24 bytes at offset 0x31c:
$ eu-readelf -a /usr/bin/bash  |grep -i 'build-id.*bytes at offset'
Note section [ 4] '.note.gnu.build-id' of 36 bytes at offset 0x308:
$

So indeed, the bash build-id is larger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment