Patch for Incorrect Symbol DW_LANG_PL1 -> DW_LANG_PLI

Sochat, Vanessa sochat1@llnl.gov
Sun Oct 17 20:53:52 GMT 2021


Hi Libabigail (and master Dodji!),

A symbol in elfutils was renamed (see line 7 here) in elfutils:

https://chromium.googlesource.com/external/elfutils/+/515dd0acc77673c953380bcf5ccfb05b83c5a3ab/NEWS

This results in this error when trying to install the 2.0 libabigail release (and I suspect others depending on the version of elfutils used):
error: 'DW_LANG_PL1' was not declared in this scope; did you mean 'DW_LANG_PLI'

And after some poking I figured out that this line https://sourceware.org/git/?p=libabigail.git;a=blob;f=src/abg-dwarf-reader.cc;h=1d6ad24cbfcc2d94c07311bb04112f14f4f0e71c;hb=HEAD#l11056 needs to be DW_LANG_PLI instead of DW_LANG_PL1.

I am attaching the patch I used to make the fix in spack: https://github.com/spack/spack/blob/03f84fb440770101816dad61ca59cf1bebf1997b/var/spack/repos/builtin/packages/libabigail/package.py#L37
If you want to reproduce that bug, you should be able to clone spack, comment out the line for the patch, add spack’s bin to the path, and then spack install libabigail.

I’ve also been having some trouble building libabigail from the git repository – the instructions in the sourceware docs don’t work completely, as I get a “syntax error near unexpected token ‘XML,’ and commenting out that line gets a bit further, but then errors missing library paths for libxml (which I’ve added). Do you have your release scripts you might share to reproduce what is in the release tarball?

Thank you, and thank you for all the recent work on libabigail!

Best,

Vanessa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-plt.patch
Type: application/octet-stream
Size: 838 bytes
Desc: 0001-plt.patch
URL: <https://sourceware.org/pipermail/libabigail/attachments/20211017/299e95d8/attachment.obj>


More information about the Libabigail mailing list