[Mlir-commits] [flang] [mlir] [MLIR][LLVMIR] Use TargetFolder when creating globals (PR #126745)
LLVM Continuous Integration
llvmlistbot at llvm.org
Wed Feb 12 01:22:11 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `mlir-nvidia` running on `mlir-nvidia` while building `flang,mlir` at step 6 "build-check-mlir-build-only".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/10201
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (build-check-mlir-build-only) failure: build (failure)
...
31.112 [146/2/4953] Linking CXX shared library lib/libLLVMAsmPrinter.so.21.0git
31.118 [145/2/4954] Creating library symlink lib/libLLVMAsmPrinter.so
31.241 [143/3/4955] Linking CXX shared library lib/libLLVMNVPTXCodeGen.so.21.0git
31.248 [142/3/4956] Creating library symlink lib/libLLVMNVPTXCodeGen.so
31.299 [142/2/4957] Linking CXX shared library lib/libLLVMX86CodeGen.so.21.0git
31.305 [141/2/4958] Creating library symlink lib/libLLVMX86CodeGen.so
31.401 [139/3/4959] Linking CXX executable bin/lli
31.403 [139/2/4960] Linking CXX executable bin/llc
40.091 [139/1/4961] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o
40.186 [138/1/4962] Linking CXX shared library lib/libMLIRTargetLLVMIRExport.so.21.0git
FAILED: lib/libMLIRTargetLLVMIRExport.so.21.0git
: && /usr/bin/clang++ -fPIC -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 -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -Wl,--gc-sections -shared -Wl,-soname,libMLIRTargetLLVMIRExport.so.21.0git -o lib/libMLIRTargetLLVMIRExport.so.21.0git tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/DebugTranslation.cpp.o tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/LoopAnnotationTranslation.cpp.o tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/TypeToLLVM.cpp.o tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/Dialect/OpenMPCommon.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/lib:" lib/libMLIRDLTIDialect.so.21.0git lib/libMLIRLLVMIRTransforms.so.21.0git lib/libMLIRTranslateLib.so.21.0git lib/libLLVMFrontendOpenMP.so.21.0git lib/libMLIRFuncDialect.so.21.0git lib/libMLIRTransforms.so.21.0git lib/libMLIRTransformUtils.so.21.0git lib/libMLIRSubsetOpInterface.so.21.0git lib/libMLIRValueBoundsOpInterface.so.21.0git lib/libMLIRDestinationStyleOpInterface.so.21.0git lib/libMLIRRewrite.so.21.0git lib/libMLIRRewritePDL.so.21.0git lib/libMLIRPDLToPDLInterp.so.21.0git lib/libMLIRPDLInterpDialect.so.21.0git lib/libMLIRPDLDialect.so.21.0git lib/libMLIRPass.so.21.0git lib/libMLIRAnalysis.so.21.0git lib/libMLIRPresburger.so.21.0git lib/libMLIRViewLikeInterface.so.21.0git lib/libMLIRLoopLikeInterface.so.21.0git lib/libMLIRRuntimeVerifiableOpInterface.so.21.0git lib/libMLIRUBDialect.so.21.0git lib/libMLIRNVVMDialect.so.21.0git lib/libMLIRLLVMDialect.so.21.0git lib/libMLIRDataLayoutInterfaces.so.21.0git lib/libMLIRControlFlowInterfaces.so.21.0git lib/libMLIRFunctionInterfaces.so.21.0git lib/libMLIRCallInterfaces.so.21.0git lib/libMLIRInferTypeOpInterface.so.21.0git lib/libMLIRMemorySlotInterfaces.so.21.0git lib/libLLVMBitWriter.so.21.0git lib/libMLIRSideEffectInterfaces.so.21.0git lib/libMLIRInferIntRangeInterface.so.21.0git lib/libMLIRParser.so.21.0git lib/libMLIRBytecodeReader.so.21.0git lib/libMLIRAsmParser.so.21.0git lib/libMLIRIR.so.21.0git lib/libMLIRSupport.so.21.0git lib/libLLVMTransformUtils.so.21.0git lib/libLLVMAsmParser.so.21.0git lib/libLLVMBitReader.so.21.0git lib/libLLVMCore.so.21.0git lib/libLLVMBinaryFormat.so.21.0git lib/libLLVMTargetParser.so.21.0git lib/libLLVMSupport.so.21.0git -Wl,-rpath-link,/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/lib && :
ld.lld: error: undefined symbol: vtable for llvm::TargetFolder
>>> referenced by ModuleTranslation.cpp
>>> tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o:(mlir::LLVM::ModuleTranslation::convertGlobalsAndAliases())
>>> referenced by ModuleTranslation.cpp
>>> tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o:(mlir::LLVM::ModuleTranslation::convertGlobalsAndAliases())
>>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
```
</details>
https://github.com/llvm/llvm-project/pull/126745
More information about the Mlir-commits
mailing list