[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:20:22 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-sharedlibs` running on `linaro-flang-aarch64-sharedlibs` while building `llvm` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
9.879 [6824/10/466] Linking CXX static library lib/libMLIRTableGen.a
9.887 [6824/9/467] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/uint128.test.dir/uint128.cpp.o
9.888 [6824/8/468] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/FortranEvaluateTesting.dir/testing.cpp.o
9.894 [6824/7/469] Building AArch64GenFastISel.inc...
10.081 [6824/6/470] Building RISCVTargetParserDef.inc...
10.196 [6816/13/471] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/RegisterPressure.cpp.o
11.191 [6816/12/472] Building AArch64GenGlobalISel.inc...
11.642 [6816/11/473] Building AArch64GenDAGISel.inc...
11.692 [6803/23/474] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/BuiltinGCs.cpp.o
12.811 [6803/22/475] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o 
/usr/local/bin/c++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -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/flang-aarch64-sharedlibs/build/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -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 /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/llvm/lib/IR/Assumptions.cpp
In file included from ../llvm-project/llvm/lib/IR/Assumptions.cpp:18:
In file included from ../llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from ../llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
../llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
  471 |     if (auto Sz = getVariable()->getSizeInBits())
      |                                ^
../llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      |                                          ^
1 error generated.
14.319 [6803/21/476] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o 
/usr/local/bin/c++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -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/flang-aarch64-sharedlibs/build/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -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 /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/llvm/lib/IR/AbstractCallSite.cpp
In file included from ../llvm-project/llvm/lib/IR/AbstractCallSite.cpp:17:
In file included from ../llvm-project/llvm/include/llvm/IR/AbstractCallSite.h:17:
In file included from ../llvm-project/llvm/include/llvm/IR/Constants.h:29:
In file included from ../llvm-project/llvm/include/llvm/IR/ConstantRange.h:35:
In file included from ../llvm-project/llvm/include/llvm/IR/InstrTypes.h:28:
In file included from ../llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from ../llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
../llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
  471 |     if (auto Sz = getVariable()->getSizeInBits())
      |                                ^
../llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      |                                          ^
1 error generated.
14.999 [6803/20/477] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/CycleInfo.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/CycleInfo.cpp.o 
/usr/local/bin/c++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -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/flang-aarch64-sharedlibs/build/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/CycleInfo.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/CycleInfo.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/CycleInfo.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/llvm/lib/IR/CycleInfo.cpp
In file included from ../llvm-project/llvm/lib/IR/CycleInfo.cpp:9:
In file included from ../llvm-project/llvm/include/llvm/IR/CycleInfo.h:19:
In file included from ../llvm-project/llvm/include/llvm/IR/SSAContext.h:19:
In file included from ../llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
../llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
  471 |     if (auto Sz = getVariable()->getSizeInBits())
      |                                ^

```

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


More information about the llvm-commits mailing list