Skip to content

Build problems Ubuntu 23.10, gcc 13.2.0 #21

@eibach

Description

@eibach

I have some problems building on Ubuntu 23.10.

First of all I get an error when running autogen.sh:

checking dependency style of g++... gcc3
./configure: line 16930: syntax error near unexpected token `ext,'
./configure: line 16930: `AX_CXX_COMPILE_STDCXX_14(ext, optional)'

I patched this, but when building I get a lot of errors like:

In file included from src/libdwarf-handles.cpp:14:
include/dwarfpp/abstract-inl.hpp: In member function 'dwarf::core::basic_die* dwarf::core::factory::make_payload(dwarf::core::abstract_die&&, dwarf::core::root_die&)':
include/dwarfpp/abstract-inl.hpp:32:88: error: cannot convert 'dwarf::core::compile_unit_die*' to 'dwarf::core::basic_die*' in return
   32 |                         if (d.tag_here() == DW_TAG_compile_unit) return make_cu_payload(std::move(d), r);
      |                                                                         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
      |                                                                                        |
      |                                                                                        dwarf::core::compile_unit_die*
include/dwarfpp/abstract.hpp:37:24: note: class type 'dwarf::core::compile_unit_die' is incomplete
   37 |                 struct compile_unit_die;

I could help cleaning this up, but I would like to see the library in working condition first. Which build environment do you recommend?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions