dwarves icon indicating copy to clipboard operation
dwarves copied to clipboard

Build fails on distros with elfutils < 0.170

Open jallen-amd opened this issue 4 years ago • 0 comments

On distros with elfutils version < 0.170 (SLES 15 SP3 for example), dwarves fails to build with the following error:

dwarf_loader.c:2529:13: error: ‘DW_TAG_skeleton_unit’ undeclared (first use in this function); did you mean ‘DW_TAG_type_unit’?
  if (tag == DW_TAG_skeleton_unit) {
             ^~~~~~~~~~~~~~~~~~~~
             DW_TAG_type_unit

433dc780ca48944b6905bdbb82c0ca01d24080d5 Adds the definition for DW_TAG_skeleton_unit only if the elfutils version is >= 0.170, but 0135ccd632796ab3aff65b7c99b374c4682c2bcf uses the tag regardless of the elfutils version.

jallen-amd avatar Dec 15 '21 21:12 jallen-amd