[SOLVED] Ozone fails to load symbols from ELF files produced by Clang 14

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Ozone fails to load symbols from ELF files produced by Clang 14

    Hello,

    My distribution (Archlinux) recently bumped its Clang version to 14, which updates the DWARF version from 4 to 5 (see the release notes).

    Ozone now fails to load the ELF with the following errors (duplicates removed):

    Source Code

    1. Warning (101): Attribute DW_AT_producer of symbol ? has unsupported format 0x25.
    2. Warning (119): The DWARF parser reports that a debugging information entry (DIE) at section offset 0x0, section debug.info, could not be parsed/generated.
    3. Warning (121): The DWARF parser encountered an error parsing the debug info for compilation unit 0x0.
    4. Warning (110): The address mapping table decoder encountered an invalid directory index.
    5. Warning (107): ELF data section '.debug_line' has an unexpected byte size.
    This can be fixed temporarily by passing the -fdebug-default-version=4 flag to clang.

    The post was edited 1 time, last by Nout: Found the real cause of the problem. ().

  • Hello Nout,
    Ozone does not yet support DWARF-5. Adding support for DWARF-5 is already on our wish list.
    Best regards
    -- AlexD
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.