[Mlir-commits] [mlir] [mlir][acc] Check legality of symbols in acc regions (PR #167957)
LLVM Continuous Integration
llvmlistbot at llvm.org
Fri Nov 14 14:03:51 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 `mlir` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/28001
<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)
...
[8131/8205] Creating library symlink lib/libFIROpenACCSupport.so
[8132/8205] Linking CXX shared library lib/libFIRAnalysis.so.22.0git
[8133/8205] Creating library symlink lib/libFIRAnalysis.so
[8134/8205] Linking CXX shared library lib/libFortranUtils.so.22.0git
[8135/8205] Creating library symlink lib/libFortranUtils.so
[8136/8205] Linking CXX shared library lib/libFIRTestOpenACCInterfaces.so.22.0git
[8137/8205] Linking CXX shared library lib/libFIROpenACCAnalysis.so.22.0git
[8138/8205] Creating library symlink lib/libFIROpenACCAnalysis.so
[8139/8205] Creating library symlink lib/libFIRTestOpenACCInterfaces.so
[8140/8205] Linking CXX shared library lib/libFIROpenACCTransforms.so.22.0git
FAILED: lib/libFIROpenACCTransforms.so.22.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -fpch-preprocess -O3 -DNDEBUG -fno-semantic-interposition -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,libFIROpenACCTransforms.so.22.0git -o lib/libFIROpenACCTransforms.so.22.0git tools/flang/lib/Optimizer/OpenACC/Transforms/CMakeFiles/FIROpenACCTransforms.dir/ACCInitializeFIRAnalyses.cpp.o tools/flang/lib/Optimizer/OpenACC/Transforms/CMakeFiles/FIROpenACCTransforms.dir/ACCRecipeBufferization.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:" lib/libFIROpenACCAnalysis.so.22.0git lib/libFIRAnalysis.so.22.0git lib/libHLFIRDialect.so.22.0git lib/libFIRDialect.so.22.0git lib/libMLIROpenACCDialect.so.22.0git lib/libMLIROpenACCMPCommon.so.22.0git lib/libMLIRLLVMDialect.so.22.0git lib/libMLIRPtrMemorySpaceInterfaces.so.22.0git lib/libMLIRMemRefDialect.so.22.0git lib/libMLIRArithUtils.so.22.0git lib/libMLIRComplexDialect.so.22.0git lib/libMLIRDialectUtils.so.22.0git lib/libMLIRArithDialect.so.22.0git lib/libMLIRInferIntRangeCommon.so.22.0git lib/libMLIRShapedOpInterfaces.so.22.0git lib/libMLIRCastInterfaces.so.22.0git lib/libMLIRDialect.so.22.0git lib/libMLIRUBDialect.so.22.0git lib/libMLIRMemorySlotInterfaces.so.22.0git lib/libMLIRMemOpInterfaces.so.22.0git lib/libMLIRValueBoundsOpInterface.so.22.0git lib/libMLIRDestinationStyleOpInterface.so.22.0git lib/libMLIRPass.so.22.0git lib/libMLIRAnalysis.so.22.0git lib/libMLIRControlFlowInterfaces.so.22.0git lib/libMLIRDataLayoutInterfaces.so.22.0git lib/libMLIRInferStridedMetadataInterface.so.22.0git lib/libMLIRInferIntRangeInterface.so.22.0git lib/libMLIRLoopLikeInterface.so.22.0git lib/libMLIRPresburger.so.22.0git lib/libMLIRViewLikeInterface.so.22.0git lib/libMLIRFunctionInterfaces.so.22.0git lib/libMLIRCallInterfaces.so.22.0git lib/libMLIRInferTypeOpInterface.so.22.0git lib/libMLIRSideEffectInterfaces.so.22.0git lib/libMLIRIR.so.22.0git lib/libMLIRSupport.so.22.0git -lpthread lib/libLLVMCore.so.22.0git lib/libLLVMBinaryFormat.so.22.0git lib/libLLVMSupport.so.22.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/flang/lib/Optimizer/OpenACC/Transforms/CMakeFiles/FIROpenACCTransforms.dir/ACCInitializeFIRAnalyses.cpp.o: In function `mlir::acc::detail::OpenACCSupportTraits::Model<fir::acc::FIROpenACCSupportAnalysis>::isValidSymbolUse(mlir::Operation*, mlir::SymbolRefAttr, mlir::Operation**)':
ACCInitializeFIRAnalyses.cpp:(.text._ZN4mlir3acc6detail20OpenACCSupportTraits5ModelIN3fir3acc25FIROpenACCSupportAnalysisEE16isValidSymbolUseEPNS_9OperationENS_13SymbolRefAttrEPS9_[_ZN4mlir3acc6detail20OpenACCSupportTraits5ModelIN3fir3acc25FIROpenACCSupportAnalysisEE16isValidSymbolUseEPNS_9OperationENS_13SymbolRefAttrEPS9_]+0xa): undefined reference to `mlir::acc::isValidSymbolUse(mlir::Operation*, mlir::SymbolRefAttr, mlir::Operation**)'
collect2: error: ld returned 1 exit status
[8141/8205] Linking CXX shared library lib/libFIRCodeGen.so.22.0git
[8142/8205] Linking CXX shared library lib/libFlangOpenMPTransforms.so.22.0git
[8143/8205] Linking CXX executable bin/fir-lsp-server
[8144/8205] Linking CXX shared library lib/libFortranSemantics.so.22.0git
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 62, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, 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)
...
[8131/8205] Creating library symlink lib/libFIROpenACCSupport.so
[8132/8205] Linking CXX shared library lib/libFIRAnalysis.so.22.0git
[8133/8205] Creating library symlink lib/libFIRAnalysis.so
[8134/8205] Linking CXX shared library lib/libFortranUtils.so.22.0git
[8135/8205] Creating library symlink lib/libFortranUtils.so
[8136/8205] Linking CXX shared library lib/libFIRTestOpenACCInterfaces.so.22.0git
[8137/8205] Linking CXX shared library lib/libFIROpenACCAnalysis.so.22.0git
[8138/8205] Creating library symlink lib/libFIROpenACCAnalysis.so
[8139/8205] Creating library symlink lib/libFIRTestOpenACCInterfaces.so
[8140/8205] Linking CXX shared library lib/libFIROpenACCTransforms.so.22.0git
FAILED: lib/libFIROpenACCTransforms.so.22.0git
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -fpch-preprocess -O3 -DNDEBUG -fno-semantic-interposition -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,libFIROpenACCTransforms.so.22.0git -o lib/libFIROpenACCTransforms.so.22.0git tools/flang/lib/Optimizer/OpenACC/Transforms/CMakeFiles/FIROpenACCTransforms.dir/ACCInitializeFIRAnalyses.cpp.o tools/flang/lib/Optimizer/OpenACC/Transforms/CMakeFiles/FIROpenACCTransforms.dir/ACCRecipeBufferization.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:" lib/libFIROpenACCAnalysis.so.22.0git lib/libFIRAnalysis.so.22.0git lib/libHLFIRDialect.so.22.0git lib/libFIRDialect.so.22.0git lib/libMLIROpenACCDialect.so.22.0git lib/libMLIROpenACCMPCommon.so.22.0git lib/libMLIRLLVMDialect.so.22.0git lib/libMLIRPtrMemorySpaceInterfaces.so.22.0git lib/libMLIRMemRefDialect.so.22.0git lib/libMLIRArithUtils.so.22.0git lib/libMLIRComplexDialect.so.22.0git lib/libMLIRDialectUtils.so.22.0git lib/libMLIRArithDialect.so.22.0git lib/libMLIRInferIntRangeCommon.so.22.0git lib/libMLIRShapedOpInterfaces.so.22.0git lib/libMLIRCastInterfaces.so.22.0git lib/libMLIRDialect.so.22.0git lib/libMLIRUBDialect.so.22.0git lib/libMLIRMemorySlotInterfaces.so.22.0git lib/libMLIRMemOpInterfaces.so.22.0git lib/libMLIRValueBoundsOpInterface.so.22.0git lib/libMLIRDestinationStyleOpInterface.so.22.0git lib/libMLIRPass.so.22.0git lib/libMLIRAnalysis.so.22.0git lib/libMLIRControlFlowInterfaces.so.22.0git lib/libMLIRDataLayoutInterfaces.so.22.0git lib/libMLIRInferStridedMetadataInterface.so.22.0git lib/libMLIRInferIntRangeInterface.so.22.0git lib/libMLIRLoopLikeInterface.so.22.0git lib/libMLIRPresburger.so.22.0git lib/libMLIRViewLikeInterface.so.22.0git lib/libMLIRFunctionInterfaces.so.22.0git lib/libMLIRCallInterfaces.so.22.0git lib/libMLIRInferTypeOpInterface.so.22.0git lib/libMLIRSideEffectInterfaces.so.22.0git lib/libMLIRIR.so.22.0git lib/libMLIRSupport.so.22.0git -lpthread lib/libLLVMCore.so.22.0git lib/libLLVMBinaryFormat.so.22.0git lib/libLLVMSupport.so.22.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/flang/lib/Optimizer/OpenACC/Transforms/CMakeFiles/FIROpenACCTransforms.dir/ACCInitializeFIRAnalyses.cpp.o: In function `mlir::acc::detail::OpenACCSupportTraits::Model<fir::acc::FIROpenACCSupportAnalysis>::isValidSymbolUse(mlir::Operation*, mlir::SymbolRefAttr, mlir::Operation**)':
ACCInitializeFIRAnalyses.cpp:(.text._ZN4mlir3acc6detail20OpenACCSupportTraits5ModelIN3fir3acc25FIROpenACCSupportAnalysisEE16isValidSymbolUseEPNS_9OperationENS_13SymbolRefAttrEPS9_[_ZN4mlir3acc6detail20OpenACCSupportTraits5ModelIN3fir3acc25FIROpenACCSupportAnalysisEE16isValidSymbolUseEPNS_9OperationENS_13SymbolRefAttrEPS9_]+0xa): undefined reference to `mlir::acc::isValidSymbolUse(mlir::Operation*, mlir::SymbolRefAttr, mlir::Operation**)'
collect2: error: ld returned 1 exit status
[8141/8205] Linking CXX shared library lib/libFIRCodeGen.so.22.0git
[8142/8205] Linking CXX shared library lib/libFlangOpenMPTransforms.so.22.0git
[8143/8205] Linking CXX executable bin/fir-lsp-server
[8144/8205] Linking CXX shared library lib/libFortranSemantics.so.22.0git
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 62, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, 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=442.769012
```
</details>
https://github.com/llvm/llvm-project/pull/167957
More information about the Mlir-commits
mailing list