Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile llvm-zig branch #52

Open
mr6r4y opened this issue Feb 1, 2025 · 0 comments
Open

Cannot compile llvm-zig branch #52

mr6r4y opened this issue Feb 1, 2025 · 0 comments

Comments

@mr6r4y
Copy link

mr6r4y commented Feb 1, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant