top level DIE is not DW_TAG_compile_unit or DW_TAG_type_unit

Luboš Luňák l.lunak at collabora.com
Tue Aug 9 08:24:05 UTC 2022


On Thursday 04 August 2022, Julien Nabet wrote:
> Hello,
>
> On pc Debian x86-64 with master sources updated today, I got this kind
> of log since some days:
>
> /usr/bin/ld.gold : avertissement :
> /home/julien/lo/libreoffice/workdir/CxxObject/reportdesign/source/ui/report
>/EndMarker.o : le DIE du plus haut niveau n'est pas DW_TAG_compile_unit ou
> DW_TAG_type_unit
>
> (translation: top level DIE is not DW_TAG_compile_unit or
> DW_TAG_type_unit).
>
> I only noticed that I used Clang version 13 and now it changed to
> version 14.
>
> Is it a warning we can ignore or we should deal with it or is it simply
> something I did wrong on my machine?

 Clang14 has switched to a newer DWARF format version by default, and ld.gold 
apparently doesn't understand that version (given that it's practically no 
longer developed). The simplest solution for you would be to use the LLVM lld 
linker instead.

-- 
 Luboš Luňák
 l.lunak at collabora.com


More information about the LibreOffice mailing list