[llvm] [Debugify] Add finer control over origin stacktrace collection (PR #206128)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 09:56:22 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.o</summary>

```
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.o
sccache /opt/llvm/bin/clang++ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/IR -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/DebugLoc.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/DebugLoc.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/DebugLoc.cpp:11:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/DebugInfo.h:28:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/IntrinsicInst.h:27:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/DebugInfoMetadata.h:28:
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:497:68: error: no viable conversion from 'const function<void (bool)>' to 'function<void (const typename llvm::cl::parser<std::string>::parser_data_type &)>'
497 |   template <typename Opt> void apply(Opt &O) const { O.setCallback(CB); }
|                                                                    ^~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1310:66: note: in instantiation of function template specialization 'llvm::cl::cb<void, bool>::apply<llvm::cl::list<std::basic_string<char>>>' requested here
1310 |   template <class Opt> static void opt(const Mod &M, Opt &O) { M.apply(O); }
|                                                                  ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1364:20: note: in instantiation of function template specialization 'llvm::cl::applicator<llvm::cl::cb<void, bool>>::opt<llvm::cl::list<std::basic_string<char>>>' requested here
1364 |   applicator<Mod>::opt(M, *O);
|                    ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1360:3: note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::cb<void, bool>>' requested here
1360 |   apply(O, Ms...);
|   ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1360:3: note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1360:3: note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1360:3: note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1360:3: note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, llvm::cl::desc, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1801:5: note: in instantiation of function template specialization 'llvm::cl::apply<llvm::cl::list<std::basic_string<char>>, char[26], llvm::cl::desc, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
1801 |     apply(this, Ms...);
|     ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/DebugLoc.cpp:49:23: note: in instantiation of function template specialization 'llvm::cl::list<std::basic_string<char>>::list<char[26], llvm::cl::desc, llvm::cl::MiscFlags, llvm::cl::ValueExpected, llvm::cl::OptionHidden, llvm::cl::cb<void, bool>>' requested here
49 | cl::list<std::string> EnableOriginStacktraces(
|                       ^
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:375:7: note: candidate constructor not viable: no known conversion from 'const std::function<void (bool)>' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
375 |       function(nullptr_t) noexcept
|       ^        ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:386:7: note: candidate constructor not viable: no known conversion from 'const std::function<void (bool)>' to 'const function<void (const std::basic_string<char> &)> &' for 1st argument
386 |       function(const function& __x)
|       ^        ~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:404:7: note: candidate constructor not viable: no known conversion from 'const std::function<void (bool)>' to 'function<void (const std::basic_string<char> &)> &&' for 1st argument
404 |       function(function&& __x) noexcept
|       ^        ~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:435:2: note: candidate template ignored: requirement 'std::function<void (const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &)>::_Callable<const std::function<void (bool)> &, std::function<void (bool)>, std::__invoke_result<std::function<void (bool)> &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>> &>>::value' was not satisfied [with _Functor = const std::function<void (bool)> &]
435 |         function(_Functor&& __f)
|         ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/CommandLine.h:1806:75: note: passing argument to parameter 'CB' here
1806 |       std::function<void(const typename ParserClass::parser_data_type &)> CB) {
|                                                                           ^
1 error generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list