[llvm] [NFC] Add fragment-getting functions to DbgRecord (PR #97705)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 01:17:16 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-fuzzer` running on `sanitizer-buildbot11` while building `llvm` at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- success
-- Configuring done (8.1s)
-- Generating done (4.8s)
-- Build files have been written to: /b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0
+ ninja
[1/1920] Generating VCSRevision.h
[2/1920] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o -c /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Comdat.cpp
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Comdat.cpp:19:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Module.h:25:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
    if (auto Sz = getVariable()->getSizeInBits())
                               ^
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
                                         ^
1 error generated.
[3/1920] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o -c /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/AbstractCallSite.cpp
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/AbstractCallSite.cpp:17:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/AbstractCallSite.h:17:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Constants.h:29:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/ConstantRange.h:35:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/InstrTypes.h:28:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
    if (auto Sz = getVariable()->getSizeInBits())
                               ^
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
                                         ^
1 error generated.
[4/1920] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o -c /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Assumptions.cpp
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Assumptions.cpp:18:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
    if (auto Sz = getVariable()->getSizeInBits())
                               ^
Step 7 (stage1 build all) failure: stage1 build all (failure)
...
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- success
-- Configuring done (8.1s)
-- Generating done (4.8s)
-- Build files have been written to: /b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0
+ ninja
[1/1920] Generating VCSRevision.h
[2/1920] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o -c /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Comdat.cpp
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Comdat.cpp:19:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Module.h:25:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
    if (auto Sz = getVariable()->getSizeInBits())
                               ^
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
                                         ^
1 error generated.
[3/1920] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o -c /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/AbstractCallSite.cpp
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/AbstractCallSite.cpp:17:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/AbstractCallSite.h:17:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Constants.h:29:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/ConstantRange.h:35:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/InstrTypes.h:28:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
    if (auto Sz = getVariable()->getSizeInBits())
                               ^
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
                                         ^
1 error generated.
[4/1920] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -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 -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o -c /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Assumptions.cpp
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/lib/IR/Assumptions.cpp:18:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from /b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
    if (auto Sz = getVariable()->getSizeInBits())
                               ^

```

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


More information about the llvm-commits mailing list