Re: ANNOUNCE: pahole v1.23 (BTF tags and alignment inference)

Nathan Chancellor
2021-12-14T21:56:27Z

Hi Arnaldo,

On Wed, Dec 08, 2021 at 10:54:56AM -0300, Arnaldo Carvalho de Melo wrote:
> - Initial support for DW_TAG_skeleton_unit, so far just suggest looking up a
> matching .dwo file to be used instead. Automagically doing this is in the
> plans for a future release.

This change [1] appears to break building on older distributions for me,
which I use in containers for access to older versions of GCC. I see the
error with Debian Stretch and Ubuntu Xenial, which have an older
libelf-dev. Is this expected? I don't mind sticking with 1.22 for
those, I just want to be sure!

/tmp/dwarves-1.23/dwarf_loader.c: In function 'die__process':
/tmp/dwarves-1.23/dwarf_loader.c:2529:13: error: 'DW_TAG_skeleton_unit' undeclared (first use in this function)
if (tag == DW_TAG_skeleton_unit) {
^

[1]: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=0135ccd632796ab3aff65b7c99b374c4682c2bcf

Cheers,
Nathan