Re: ERROR: ctfconvert: rc = 1 Unsupported version [_dwarf_info_load(229)]

From: Mark Johnston <markj_at_freebsd.org>
Date: Mon, 12 Jun 2023 13:00:57 UTC
On Sat, Jun 10, 2023 at 10:10:15PM +0000, Bjoern A. Zeeb wrote:
> Hi,
> 
> compiling with gcc I see a lot of:
> 
> ERROR: ctfconvert: rc = 1 Unsupported version [_dwarf_info_load(229)]
> 
> I wonder "Unsupported version" of what?  and can we improve it?

It's referring to the DWARF version.  Assuming you're compiling with
gcc12, the kernel build is emitting DWARF 5 by default, which our
libdwarf does not handle.  Earlier this year I worked on extending
libdwarf to support the new standard, at least well enough for
ctfconvert's purposes.  I'll try to get back to it shortly.