[llvm] [CycleAnalysis] Methods to verify cycles and their nesting. (PR #102300)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 03:01:29 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-dbg-runtimes-build` running on `libc-x86_64-debian` while building `llvm` at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[746/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreSelectionDAGInfo.cpp.o
[747/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreRegisterInfo.cpp.o
[748/787] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetTransformInfo.cpp.o
[749/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreFrameToArgsOffsetElim.cpp.o
[750/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreISelLowering.cpp.o
[751/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreAsmPrinter.cpp.o
[752/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreTargetObjectFile.cpp.o
[753/787] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o
[754/787] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetMachine.cpp.o
[755/787] Linking CXX executable bin/llvm-objcopy
FAILED: bin/llvm-objcopy 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/ObjcopyOptions.cpp.o tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/llvm-objcopy.cpp.o tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/llvm-objcopy-driver.cpp.o -o bin/llvm-objcopy  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMObject.a  lib/libLLVMObjCopy.a  lib/libLLVMOption.a  lib/libLLVMSupport.a  lib/libLLVMTargetParser.a  lib/libLLVMMC.a  lib/libLLVMBinaryFormat.a  lib/libLLVMObject.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMTextAPI.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  lib/libLLVMDemangle.a && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::end() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:586: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getHeader() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_begin(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:561: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_end(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:562: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::end() const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[756/787] Linking CXX executable bin/llvm-size
FAILED: bin/llvm-size 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-size/CMakeFiles/llvm-size.dir/llvm-size.cpp.o tools/llvm-size/CMakeFiles/llvm-size.dir/llvm-size-driver.cpp.o -o bin/llvm-size  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMObject.a  lib/libLLVMOption.a  lib/libLLVMSupport.a  lib/libLLVMTargetParser.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  lib/libLLVMDemangle.a && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::end() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:586: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getHeader() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_begin(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:561: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_end(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:562: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::end() const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[757/787] Linking CXX executable bin/llvm-profdata
FAILED: bin/llvm-profdata 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata-driver.cpp.o -o bin/llvm-profdata  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMCore.a  lib/libLLVMObject.a  lib/libLLVMProfileData.a  lib/libLLVMSupport.a  lib/libLLVMSymbolize.a  lib/libLLVMDebugInfoPDB.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMDebugInfoBTF.a  lib/libLLVMDebugInfoDWARF.a  lib/libLLVMObject.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::end() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:586: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getHeader() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_begin(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:561: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_end(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:562: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::end() const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[758/787] Linking CXX executable bin/llvm-readobj
FAILED: bin/llvm-readobj 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ARMWinEHPrinter.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/COFFDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/COFFImportDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ELFDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/llvm-readobj.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/MachODumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ObjDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/WasmDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/Win64EHDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/WindowsResourceDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/XCOFFDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/llvm-readobj-driver.cpp.o -o bin/llvm-readobj  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMBinaryFormat.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMDebugInfoDWARF.a  lib/libLLVMDemangle.a  lib/libLLVMObject.a  lib/libLLVMOption.a  lib/libLLVMSupport.a  lib/libLLVMTargetParser.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':
Step 6 (build libc) failure: build libc (failure)
...
[746/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreSelectionDAGInfo.cpp.o
[747/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreRegisterInfo.cpp.o
[748/787] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetTransformInfo.cpp.o
[749/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreFrameToArgsOffsetElim.cpp.o
[750/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreISelLowering.cpp.o
[751/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreAsmPrinter.cpp.o
[752/787] Building CXX object lib/Target/XCore/CMakeFiles/LLVMXCoreCodeGen.dir/XCoreTargetObjectFile.cpp.o
[753/787] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o
[754/787] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetMachine.cpp.o
[755/787] Linking CXX executable bin/llvm-objcopy
FAILED: bin/llvm-objcopy 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/ObjcopyOptions.cpp.o tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/llvm-objcopy.cpp.o tools/llvm-objcopy/CMakeFiles/llvm-objcopy.dir/llvm-objcopy-driver.cpp.o -o bin/llvm-objcopy  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMObject.a  lib/libLLVMObjCopy.a  lib/libLLVMOption.a  lib/libLLVMSupport.a  lib/libLLVMTargetParser.a  lib/libLLVMMC.a  lib/libLLVMBinaryFormat.a  lib/libLLVMObject.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMTextAPI.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  lib/libLLVMDemangle.a && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::end() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:586: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getHeader() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_begin(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:561: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_end(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:562: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::end() const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[756/787] Linking CXX executable bin/llvm-size
FAILED: bin/llvm-size 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-size/CMakeFiles/llvm-size.dir/llvm-size.cpp.o tools/llvm-size/CMakeFiles/llvm-size.dir/llvm-size-driver.cpp.o -o bin/llvm-size  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMObject.a  lib/libLLVMOption.a  lib/libLLVMSupport.a  lib/libLLVMTargetParser.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  lib/libLLVMDemangle.a && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::end() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:586: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getHeader() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_begin(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:561: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_end(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:562: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::end() const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[757/787] Linking CXX executable bin/llvm-profdata
FAILED: bin/llvm-profdata 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata-driver.cpp.o -o bin/llvm-profdata  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMCore.a  lib/libLLVMObject.a  lib/libLLVMProfileData.a  lib/libLLVMSupport.a  lib/libLLVMSymbolize.a  lib/libLLVMDebugInfoPDB.a  lib/libLLVMDebugInfoMSF.a  lib/libLLVMDebugInfoBTF.a  lib/libLLVMDebugInfoDWARF.a  lib/libLLVMObject.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:584: undefined reference to `llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::end() const'
/usr/bin/ld: /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/ADT/GenericCycleImpl.h:586: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::getHeader() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_begin(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:561: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::begin() const'
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GraphTraits<llvm::Loop*>::child_end(llvm::Loop*)':
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/llvm-project/llvm/include/llvm/Analysis/LoopInfo.h:562: undefined reference to `llvm::LoopBase<llvm::BasicBlock, llvm::Loop>::end() const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[758/787] Linking CXX executable bin/llvm-readobj
FAILED: bin/llvm-readobj 
: && /usr/bin/clang++ -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 -g -Wl,-rpath-link,/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian/libc-x86_64-debian-dbg-runtimes-build/build/./lib tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ARMWinEHPrinter.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/COFFDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/COFFImportDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ELFDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/llvm-readobj.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/MachODumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ObjDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/WasmDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/Win64EHDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/WindowsResourceDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/XCOFFDumper.cpp.o tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/llvm-readobj-driver.cpp.o -o bin/llvm-readobj  -Wl,-rpath,"\$ORIGIN/../lib:"  lib/libLLVMBinaryFormat.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMDebugInfoDWARF.a  lib/libLLVMDemangle.a  lib/libLLVMObject.a  lib/libLLVMOption.a  lib/libLLVMSupport.a  lib/libLLVMTargetParser.a  lib/libLLVMIRReader.a  lib/libLLVMBitReader.a  lib/libLLVMAsmParser.a  lib/libLLVMCore.a  lib/libLLVMRemarks.a  lib/libLLVMBitstreamReader.a  lib/libLLVMMCParser.a  lib/libLLVMMC.a  lib/libLLVMDebugInfoCodeView.a  lib/libLLVMTextAPI.a  lib/libLLVMBinaryFormat.a  lib/libLLVMTargetParser.a  lib/libLLVMSupport.a  lib/libLLVMDemangle.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so && :
/usr/bin/ld: lib/libLLVMCore.a(CycleInfo.cpp.o): in function `llvm::GenericCycleInfo<llvm::GenericSSAContext<llvm::Function> >::verifyCycleNest(bool, llvm::LoopInfo*) const':

```

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


More information about the llvm-commits mailing list