[Mlir-commits] [flang] [mlir] [MLIR][LLVMIR] Use TargetFolder when creating globals (PR #126745)
LLVM Continuous Integration
llvmlistbot at llvm.org
Wed Feb 12 01:16:21 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `flang,mlir` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/560
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[6608/7632] Linking CXX shared library lib/libFortranSemantics.so.21.0git
[6609/7632] Creating library symlink lib/libFortranSemantics.so
[6610/7632] Linking CXX executable tools/flang/unittests/Evaluate/logical.test
[6611/7632] Linking CXX executable tools/flang/unittests/Evaluate/real.test
[6612/7632] Linking CXX executable tools/flang/unittests/Evaluate/integer.test
[6613/7632] Linking CXX executable tools/flang/unittests/Evaluate/intrinsics.test
[6614/7632] Linking CXX executable tools/flang/unittests/Evaluate/expression.test
[6615/7632] Linking CXX executable tools/flang/unittests/Evaluate/folding.test
[6616/7632] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o
[6617/7632] Linking CXX shared library lib/libMLIRTargetLLVMIRExport.so.21.0git
FAILED: lib/libMLIRTargetLLVMIRExport.so.21.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib -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:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/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 -lpthread 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,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o: In function `llvm::IRBuilder<llvm::TargetFolder, llvm::IRBuilderDefaultInserter>::~IRBuilder()':
ModuleTranslation.cpp:(.text._ZN4llvm9IRBuilderINS_12TargetFolderENS_24IRBuilderDefaultInserterEED2Ev[_ZN4llvm9IRBuilderINS_12TargetFolderENS_24IRBuilderDefaultInserterEED5Ev]+0x13): undefined reference to `vtable for llvm::TargetFolder'
tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o: In function `mlir::LLVM::ModuleTranslation::convertGlobalsAndAliases() [clone .localalias.15]':
ModuleTranslation.cpp:(.text._ZN4mlir4LLVM17ModuleTranslation24convertGlobalsAndAliasesEv+0xf4b): undefined reference to `vtable for llvm::TargetFolder'
ModuleTranslation.cpp:(.text._ZN4mlir4LLVM17ModuleTranslation24convertGlobalsAndAliasesEv+0x14a8): undefined reference to `vtable for llvm::TargetFolder'
ModuleTranslation.cpp:(.text._ZN4mlir4LLVM17ModuleTranslation24convertGlobalsAndAliasesEv+0x1f0f): undefined reference to `vtable for llvm::TargetFolder'
collect2: error: ld returned 1 exit status
[6618/7632] Building InstCombineTables.inc...
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 45, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 36, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 58, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6608/7632] Linking CXX shared library lib/libFortranSemantics.so.21.0git
[6609/7632] Creating library symlink lib/libFortranSemantics.so
[6610/7632] Linking CXX executable tools/flang/unittests/Evaluate/logical.test
[6611/7632] Linking CXX executable tools/flang/unittests/Evaluate/real.test
[6612/7632] Linking CXX executable tools/flang/unittests/Evaluate/integer.test
[6613/7632] Linking CXX executable tools/flang/unittests/Evaluate/intrinsics.test
[6614/7632] Linking CXX executable tools/flang/unittests/Evaluate/expression.test
[6615/7632] Linking CXX executable tools/flang/unittests/Evaluate/folding.test
[6616/7632] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o
[6617/7632] Linking CXX shared library lib/libMLIRTargetLLVMIRExport.so.21.0git
FAILED: lib/libMLIRTargetLLVMIRExport.so.21.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib -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:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/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 -lpthread 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,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o: In function `llvm::IRBuilder<llvm::TargetFolder, llvm::IRBuilderDefaultInserter>::~IRBuilder()':
ModuleTranslation.cpp:(.text._ZN4llvm9IRBuilderINS_12TargetFolderENS_24IRBuilderDefaultInserterEED2Ev[_ZN4llvm9IRBuilderINS_12TargetFolderENS_24IRBuilderDefaultInserterEED5Ev]+0x13): undefined reference to `vtable for llvm::TargetFolder'
tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o: In function `mlir::LLVM::ModuleTranslation::convertGlobalsAndAliases() [clone .localalias.15]':
ModuleTranslation.cpp:(.text._ZN4mlir4LLVM17ModuleTranslation24convertGlobalsAndAliasesEv+0xf4b): undefined reference to `vtable for llvm::TargetFolder'
ModuleTranslation.cpp:(.text._ZN4mlir4LLVM17ModuleTranslation24convertGlobalsAndAliasesEv+0x14a8): undefined reference to `vtable for llvm::TargetFolder'
ModuleTranslation.cpp:(.text._ZN4mlir4LLVM17ModuleTranslation24convertGlobalsAndAliasesEv+0x1f0f): undefined reference to `vtable for llvm::TargetFolder'
collect2: error: ld returned 1 exit status
[6618/7632] Building InstCombineTables.inc...
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 45, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 36, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 58, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=57.148726
```
</details>
https://github.com/llvm/llvm-project/pull/126745
More information about the Mlir-commits
mailing list