Skip to content

Cannot compile llvm-zig branch #52

@mr6r4y

Description

@mr6r4y

llvm-zig branch cannot be compiled:

FAILED: tools/lldb/source/Plugins/SymbolFile/DWARF/CMakeFiles/lldbPluginSymbolFileDWARF.dir/DWARFASTParserZig.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/source/Plugins/SymbolFile/DWARF -I/workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF -I/workspace/user/repos/github.com/jacobly0/llvm-project/lldb/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include -I/usr/include/python3.10 -I/workspace/user/repos/github.com/jacobly0/llvm-project/llvm/../clang/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/../clang/include -I/workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source -I/workspace/user/repos/github.com/jacobly0/llvm-project/build2/tools/lldb/source -isystem /usr/include/libxml2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-stringop-truncation -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/lldb/source/Plugins/SymbolFile/DWARF/CMakeFiles/lldbPluginSymbolFileDWARF.dir/DWARFASTParserZig.cpp.o -MF tools/lldb/source/Plugins/SymbolFile/DWARF/CMakeFiles/lldbPluginSymbolFileDWARF.dir/DWARFASTParserZig.cpp.o.d -o tools/lldb/source/Plugins/SymbolFile/DWARF/CMakeFiles/lldbPluginSymbolFileDWARF.dir/DWARFASTParserZig.cpp.o -c /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserZig.cpp
In file included from /usr/include/c++/11/utility:70,
                 from /usr/include/c++/11/optional:36,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:20,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include/llvm/Support/SwapByteOrder.h:17,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include/llvm/ADT/Hashing.h:50,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:12,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include/llvm/Support/Format.h:25,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/llvm/include/llvm/BinaryFormat/Dwarf.h:25,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/include/lldb/Core/dwarf.h:15,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.h:12,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParser.h:12,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserZig.h:12,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserZig.cpp:9:
/usr/include/c++/11/bits/stl_pair.h: In instantiation of ‘struct std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE>’:
/usr/include/c++/11/ext/aligned_buffer.h:91:28:   required from ‘struct __gnu_cxx::__aligned_buffer<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE> >’
/usr/include/c++/11/bits/hashtable_policy.h:234:43:   required from ‘struct std::__detail::_Hash_node_value_base<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE> >’
/usr/include/c++/11/bits/hashtable_policy.h:268:12:   required from ‘struct std::__detail::_Hash_node_value<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE>, false>’
/usr/include/c++/11/bits/hashtable_policy.h:277:12:   required from ‘struct std::__detail::_Hash_node<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE>, false>’
/usr/include/c++/11/bits/hashtable_policy.h:1812:13:   required from ‘struct std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE>, false> > >’
/usr/include/c++/11/bits/hashtable_policy.h:811:13:   required from ‘struct std::__detail::_Insert_base<lldb_private::ZigScope*, std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE>, std::allocator<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE> >, std::__detail::_Select1st, std::equal_to<lldb_private::ZigScope*>, std::hash<lldb_private::ZigScope*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false> >’
/usr/include/c++/11/bits/hashtable_policy.h:1004:12:   required from ‘struct std::__detail::_Insert<lldb_private::ZigScope*, std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE>, std::allocator<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE> >, std::__detail::_Select1st, std::equal_to<lldb_private::ZigScope*>, std::hash<lldb_private::ZigScope*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false>, false>’
/usr/include/c++/11/bits/hashtable.h:180:11:   required from ‘class std::_Hashtable<lldb_private::ZigScope*, std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE>, std::allocator<std::pair<lldb_private::ZigScope* const, lldb_private::plugin::dwarf::DWARFDIE> >, std::__detail::_Select1st, std::equal_to<lldb_private::ZigScope*>, std::hash<lldb_private::ZigScope*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, false> >’
/usr/include/c++/11/bits/unordered_map.h:1248:18:   required from ‘class std::unordered_multimap<lldb_private::ZigScope*, lldb_private::plugin::dwarf::DWARFDIE>’
/workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserZig.h:102:7:   required from here
/usr/include/c++/11/bits/stl_pair.h:218:11: error: ‘std::pair<_T1, _T2>::second’ has incomplete type
  218 |       _T2 second;                ///< The second member
      |           ^~~~~~
In file included from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/include/lldb/Core/Module.h:17,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/include/lldb/Symbol/SymbolFile.h:12,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParser.h:14,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserZig.h:12,
                 from /workspace/user/repos/github.com/jacobly0/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserZig.cpp:9:

System

  • Ubuntu 22.04
  • gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

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