Closed Bug 1690421 Opened 1 year ago Closed 1 year ago

Libabigail update breaks image build in CI

Categories

(NSS :: Test, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kjacobs, Assigned: kjacobs)

Details

Attachments

(2 files)

Libabigail recently released libabigail-1.8.1 (main is now 2.0). These versions depend on libdw for the definition of DW_FORM_line_strp. Ubuntu 18.04 (which is used by the docker image) uses an older version that doesn't have this define, leading to a build failure.

  CXX      abg-dwarf-reader.lo
In file included from /libabigail/include/abg-ir.h:24,
                 from abg-ir-priv.h:18,
                 from abg-dwarf-reader.cc:36:
abg-dwarf-reader.cc: In function 'bool abigail::dwarf_reader::compare_dies_string_attribute_value(const Dwarf_Die*, const Dwarf_Die*, unsigned int, bool&)':
abg-dwarf-reader.cc:9418:25: error: 'DW_FORM_line_strp' was not declared in this scope; did you mean 'DW_FORM_strp'?
 9418 |       || l_attr.form == DW_FORM_line_strp);
      |                         ^~~~~~~~~~~~~~~~~
/libabigail/include/abg-fwd.h:1421:57: note: in definition of macro 'ABG_ASSERT'
 1421 | #define ABG_ASSERT(cond) do {({bool __abg_cond__ = bool(cond); assert(__abg_cond__); !!__abg_cond__;});} while (false)
      |                                                         ^~~~
abg-dwarf-reader.cc:9424:25: error: 'DW_FORM_line_strp' was not declared in this scope; did you mean 'DW_FORM_strp'?
 9424 |       || l_attr.form == DW_FORM_line_strp);
      |                         ^~~~~~~~~~~~~~~~~
/libabigail/include/abg-fwd.h:1421:57: note: in definition of macro 'ABG_ASSERT'
 1421 | #define ABG_ASSERT(cond) do {({bool __abg_cond__ = bool(cond); assert(__abg_cond__); !!__abg_cond__;});} while (false)
      |                                                         ^~~~
abg-dwarf-reader.cc:9432:26: error: 'DW_FORM_line_strp' was not declared in this scope; did you mean 'DW_FORM_strp'?
 9432 |       || (l_attr.form == DW_FORM_line_strp
      |                          ^~~~~~~~~~~~~~~~~
      |                          DW_FORM_strp
Makefile:568: recipe for target 'abg-dwarf-reader.lo' failed
make[2]: *** [abg-dwarf-reader.lo] Error 1

We should update the docker image or checkout libabigail-1.8 before building.

Attachment #9200797 - Attachment description: Bug 1690421 - Install packaged libabigail → Bug 1690421 - Install packaged libabigail in docker-builds image
Assignee: nobody → kjacobs.bugzilla
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 3.62
You need to log in before you can comment on or make changes to this bug.