[clang] [clang-tools-extra] [clang][lex] Store non-owning options ref in `HeaderSearch` (PR #132780)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 25 12:33:34 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang-tools-extra,clang` at step 4 "build".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/14914
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (build) failure: build (failure)
...
885.694 [777/10/5781] Building CXX object tools/lldb/source/ValueObject/CMakeFiles/lldbValueObject.dir/ValueObjectConstResult.cpp.o
885.701 [777/9/5782] Linking CXX static library lib/liblldbInterpreterInterfaces.a
885.701 [777/8/5783] Linking CXX static library lib/liblldbPluginPlatformQemuUser.a
885.702 [777/7/5784] Building CXX object tools/lldb/source/ValueObject/CMakeFiles/lldbValueObject.dir/ValueObjectChild.cpp.o
885.702 [777/6/5785] Building CXX object tools/lldb/source/ValueObject/CMakeFiles/lldbValueObject.dir/ValueObjectConstResultCast.cpp.o
885.702 [777/5/5786] Linking CXX static library lib/liblldbHost.a
885.724 [777/4/5787] Building CXX object tools/lldb/source/ValueObject/CMakeFiles/lldbValueObject.dir/ValueObjectConstResultChild.cpp.o
885.725 [777/3/5788] Building CXX object tools/lldb/source/ValueObject/CMakeFiles/lldbValueObject.dir/ValueObjectConstResultImpl.cpp.o
885.725 [777/2/5789] Building CXX object tools/lldb/source/ValueObject/CMakeFiles/lldbValueObject.dir/ValueObjectDynamicValue.cpp.o
897.005 [777/1/5790] Building CXX object tools/lldb/source/Plugins/TypeSystem/Clang/CMakeFiles/lldbPluginTypeSystemClang.dir/TypeSystemClang.cpp.o
FAILED: tools/lldb/source/Plugins/TypeSystem/Clang/CMakeFiles/lldbPluginTypeSystemClang.dir/TypeSystemClang.cpp.o
/usr/local/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/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/source/Plugins/TypeSystem/Clang -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/source/Plugins/TypeSystem/Clang -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/llvm/include -I/usr/include/python3.10 -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/llvm/../clang/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/../clang/include -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/source -I/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb/source -isystem /usr/include/libxml2 -fPIC -fno-semantic-interposition -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 -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/lldb/source/Plugins/TypeSystem/Clang/CMakeFiles/lldbPluginTypeSystemClang.dir/TypeSystemClang.cpp.o -MF tools/lldb/source/Plugins/TypeSystem/Clang/CMakeFiles/lldbPluginTypeSystemClang.dir/TypeSystemClang.cpp.o.d -o tools/lldb/source/Plugins/TypeSystem/Clang/CMakeFiles/lldbPluginTypeSystemClang.dir/TypeSystemClang.cpp.o -c /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
In file included from ../llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:9:
In file included from ../llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h:16:
In file included from /usr/lib/gcc/aarch64-linux-gnu/11/../../../../include/c++/11/memory:76:
/usr/lib/gcc/aarch64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:962:34: error: no matching constructor for initialization of 'clang::HeaderSearch'
962 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
../llvm-project/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:1221:31: note: in instantiation of function template specialization 'std::make_unique<clang::HeaderSearch, std::shared_ptr<clang::HeaderSearchOptions> &, clang::SourceManager &, clang::DiagnosticsEngine &, clang::LangOptions &, clang::TargetInfo *>' requested here
1221 | m_header_search_up = std::make_unique<clang::HeaderSearch>(
| ^
../llvm-project/clang/include/clang/Lex/HeaderSearch.h:362:3: note: candidate constructor not viable: no known conversion from 'std::shared_ptr<clang::HeaderSearchOptions>' to 'const HeaderSearchOptions' for 1st argument
362 | HeaderSearch(const HeaderSearchOptions &HSOpts, SourceManager &SourceMgr,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../llvm-project/clang/include/clang/Lex/HeaderSearch.h:365:3: note: candidate constructor not viable: requires 1 argument, but 5 were provided
365 | HeaderSearch(const HeaderSearch &) = delete;
| ^ ~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
```
</details>
https://github.com/llvm/llvm-project/pull/132780
More information about the cfe-commits
mailing list