[Lldb-commits] [lldb] [lldb] Use the function block as a source for function ranges (PR #117996)

LLVM Continuous Integration via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 3 02:29:43 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `lldb` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/14176

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
57.552 [335/96/6617] Building CXX object tools/lldb/source/Symbol/CMakeFiles/lldbSymbol.dir/CompilerDecl.cpp.o
57.563 [334/96/6618] Building CXX object tools/lldb/source/Symbol/CMakeFiles/lldbSymbol.dir/CompilerDeclContext.cpp.o
57.578 [333/96/6619] Building CXX object tools/lldb/source/Symbol/CMakeFiles/lldbSymbol.dir/CompilerType.cpp.o
57.594 [332/96/6620] Building CXX object tools/lldb/source/Symbol/CMakeFiles/lldbSymbol.dir/SaveCoreOptions.cpp.o
57.609 [331/96/6621] Building CXX object tools/lldb/source/Symbol/CMakeFiles/lldbSymbol.dir/DWARFCallFrameInfo.cpp.o
57.758 [330/96/6622] Linking CXX executable bin/clangd-indexer
57.787 [329/96/6623] Building CXX object tools/lldb/source/Symbol/CMakeFiles/lldbSymbol.dir/DeclVendor.cpp.o
58.531 [328/96/6624] Linking CXX executable bin/clangd-fuzzer
58.659 [327/96/6625] Linking CXX executable bin/clangd
60.318 [326/96/6626] Building CXX object tools/lldb/source/Core/CMakeFiles/lldbCore.dir/FileLineResolver.cpp.o
FAILED: tools/lldb/source/Core/CMakeFiles/lldbCore.dir/FileLineResolver.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -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/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/source/Core -I/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source/Core -I/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include -I/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/include -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/../clang/include -I/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/../clang/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source -I/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/source -isystem /usr/include/libxml2 -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-vla-extension -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/lldb/source/Core/CMakeFiles/lldbCore.dir/FileLineResolver.cpp.o -MF tools/lldb/source/Core/CMakeFiles/lldbCore.dir/FileLineResolver.cpp.o.d -o tools/lldb/source/Core/CMakeFiles/lldbCore.dir/FileLineResolver.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source/Core/FileLineResolver.cpp
In file included from /b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source/Core/FileLineResolver.cpp:11:
In file included from /b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Symbol/CompileUnit.h:15:
/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Symbol/Function.h:450:58: error: use of undeclared identifier 'm_ranges'; did you mean 'm_range'?
  const AddressRanges &GetAddressRanges() const { return m_ranges; }
                                                         ^~~~~~~~
                                                         m_range
/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Symbol/Function.h:659:16: note: 'm_range' declared here
  AddressRange m_range;
               ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Symbol/Function.h:450:58: error: no viable conversion from returned value of type 'const lldb_private::AddressRange' to function return type 'const lldb_private::AddressRanges'
  const AddressRanges &GetAddressRanges() const { return m_ranges; }
                                                         ^~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_vector.h:625:7: note: candidate inherited constructor not viable: no known conversion from 'const lldb_private::AddressRange' to 'initializer_list<std::vector<lldb_private::AddressRange, std::allocator<lldb_private::AddressRange>>::value_type>' (aka 'initializer_list<lldb_private::AddressRange>') for 1st argument
      vector(initializer_list<value_type> __l,
      ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Core/AddressRange.h:256:50: note: constructor from base class 'vector<lldb_private::AddressRange, std::allocator<lldb_private::AddressRange>>' inherited here
  using std::vector<lldb_private::AddressRange>::vector;
                                                 ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Core/AddressRange.h:254:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const lldb_private::AddressRange' to 'const lldb_private::AddressRanges &' for 1st argument
class AddressRanges : public std::vector<lldb_private::AddressRange> {
      ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Core/AddressRange.h:254:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const lldb_private::AddressRange' to 'lldb_private::AddressRanges &&' for 1st argument
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_vector.h:497:7: note: explicit constructor is not a candidate
      vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_vector.h:510:7: note: explicit constructor is not a candidate
      vector(size_type __n, const allocator_type& __a = allocator_type())
      ^
2 errors generated.
60.520 [326/95/6627] Building CXX object tools/lldb/source/Core/CMakeFiles/lldbCore.dir/AddressResolverFileLine.cpp.o
FAILED: tools/lldb/source/Core/CMakeFiles/lldbCore.dir/AddressResolverFileLine.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -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/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/source/Core -I/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source/Core -I/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include -I/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/include -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/../clang/include -I/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/../clang/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source -I/b/1/llvm-x86_64-debian-dylib/build/tools/lldb/source -isystem /usr/include/libxml2 -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-vla-extension -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/lldb/source/Core/CMakeFiles/lldbCore.dir/AddressResolverFileLine.cpp.o -MF tools/lldb/source/Core/CMakeFiles/lldbCore.dir/AddressResolverFileLine.cpp.o.d -o tools/lldb/source/Core/CMakeFiles/lldbCore.dir/AddressResolverFileLine.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp
In file included from /b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/source/Core/AddressResolverFileLine.cpp:13:
In file included from /b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Symbol/CompileUnit.h:15:
/b/1/llvm-x86_64-debian-dylib/llvm-project/lldb/include/lldb/Symbol/Function.h:450:58: error: use of undeclared identifier 'm_ranges'; did you mean 'm_range'?
  const AddressRanges &GetAddressRanges() const { return m_ranges; }
                                                         ^~~~~~~~

```

</details>

https://github.com/llvm/llvm-project/pull/117996


More information about the lldb-commits mailing list