[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:17:42 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm,mlir` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/35196
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
256.771 [141/34/656] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CSKYAttributeParserTest.cpp.o
256.944 [140/34/657] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/TypesTest.cpp.o
257.009 [139/34/658] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/ELFObjectFileTest.cpp.o
257.074 [138/34/659] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/OperatorTest.cpp.o
257.426 [137/34/660] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Casting.cpp.o
257.451 [136/34/661] Linking CXX executable unittests/Object/ObjectTests
257.453 [135/34/662] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/Caching.cpp.o
257.728 [134/34/663] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BalancedPartitioningTest.cpp.o
257.982 [133/34/664] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DebugCounterTest.cpp.o
258.057 [132/34/665] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/DebugLogTest.cpp.o
FAILED: unittests/Support/CMakeFiles/SupportTests.dir/DebugLogTest.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/g++ -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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/unittests/Support -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/DebugLogTest.cpp
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/DebugLogTest.cpp:9:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/unittests/Support/DebugLogTest.cpp: In lambda function:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include/llvm/Support/DebugLog.h:97:3: note: in expansion of macro ‘LDBG_FUNC_CHOOSER’
97 | LDBG_FUNC_CHOOSER argsWithParentheses
| ^~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/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