[llvm] [mlir] Introduce LDBG_OS() macro as a variant of LDBG() (PR #157194)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 11 05:12:32 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `llvm,mlir` at step 8 "Add check check-llvm".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/13288
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 8 (Add check check-llvm) failure: test (failure)
...
[462/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/MathExtrasTest.cpp.o
[463/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/MemoryBufferRefTest.cpp.o
[464/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DebugTest.cpp.o
[465/731] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DebugInfoTest.cpp.o
[466/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DebugCounterTest.cpp.o
[467/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ModRefTest.cpp.o
[468/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CSKYAttributeParserTest.cpp.o
[469/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/NativeFormatTests.cpp.o
[470/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/OptimizedStructLayoutTest.cpp.o
[471/731] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DebugLogTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/DebugLogTest.cpp.o
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/unittests/Support -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/Support -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googletest/include -I/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -O3 -DNDEBUG -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/Support/CMakeFiles/SupportTests.dir/DebugLogTest.cpp.o -MF unittests/Support/CMakeFiles/SupportTests.dir/DebugLogTest.cpp.o.d -o unittests/Support/CMakeFiles/SupportTests.dir/DebugLogTest.cpp.o -c /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/Support/DebugLogTest.cpp
In file included from /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/Support/DebugLogTest.cpp:9:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/unittests/Support/DebugLogTest.cpp: In lambda function:
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:210:23: error: static assertion failed: DEBUG_TYPE is not defined
210 | static_assert(false, "DEBUG_TYPE is not defined"); \
| ^~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:109:43: note: in definition of macro ‘LDBG_STREAM_LEVEL_TYPE_FILE_AND_LINE’
109 | TYPE_OR_LEVEL, LEVEL_OR_TYPE); \
| ^~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:124:3: note: in expansion of macro ‘LDBG_STREAM_LEVEL_TYPE_AND_FILE’
124 | LDBG_STREAM_LEVEL_TYPE_AND_FILE(STREAM, LEVEL_OR_TYPE, TYPE_OR_LEVEL, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:139:3: note: in expansion of macro ‘LDGB_STREAM_LEVEL_AND_TYPE’
139 | LDGB_STREAM_LEVEL_AND_TYPE(LDBG_STREAM, (LEVEL_OR_TYPE), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:140:30: note: in expansion of macro ‘LDBG_GET_DEFAULT_TYPE_OR_LEVEL’
140 | LDBG_GET_DEFAULT_TYPE_OR_LEVEL(LEVEL_OR_TYPE))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:141:23: note: in expansion of macro ‘LDBG_LEVEL_OR_TYPE’
141 | #define LDBG_NO_ARG() LDBG_LEVEL_OR_TYPE(1)
| ^~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:95:47: note: in expansion of macro ‘LDBG_NO_ARG’
95 | #define LDBG_FUNC_CHOOSER(_f1, _f2, _f3, ...) _f3
| ^~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:97:3: note: in expansion of macro ‘LDBG_FUNC_CHOOSER’
97 | LDBG_FUNC_CHOOSER argsWithParentheses
| ^~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:99:3: note: in expansion of macro ‘LDBG_FUNC_RECOMPOSER’
99 | LDBG_FUNC_RECOMPOSER((__VA_ARGS__, LDBG_TYPE_AND_LEVEL, LDBG_LEVEL_OR_TYPE, ))
| ^~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:102:3: note: in expansion of macro ‘LDBG_CHOOSE_FROM_ARG_COUNT’
102 | LDBG_CHOOSE_FROM_ARG_COUNT(LDBG_NO_ARG_EXPANDER __VA_ARGS__())
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:102:30: note: in expansion of macro ‘LDBG_NO_ARG_EXPANDER’
102 | LDBG_CHOOSE_FROM_ARG_COUNT(LDBG_NO_ARG_EXPANDER __VA_ARGS__())
| ^~~~~~~~~~~~~~~~~~~~
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/include/llvm/Support/DebugLog.h:50:19: note: in expansion of macro ‘_GET_LDBG_MACRO’
50 | #define LDBG(...) _GET_LDBG_MACRO(__VA_ARGS__)(__VA_ARGS__)
```
</details>
https://github.com/llvm/llvm-project/pull/157194
More information about the llvm-commits
mailing list