[flang-commits] [flang] [flang] Add support to fir::cg in alias analysis (PR #127827)
LLVM Continuous Integration via flang-commits
flang-commits at lists.llvm.org
Thu Feb 20 11:07:07 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-9-cmake-build-only` running on `rocm-docker-rhel-9` while building `flang` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/1242
<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)
...
[7517/7649] Linking CXX shared library lib/libFIRSupport.so.21.0git
[7518/7649] Creating library symlink lib/libFIRSupport.so
[7519/7649] Linking CXX shared library lib/libHLFIRDialect.so.21.0git
[7520/7649] Creating library symlink lib/libHLFIRDialect.so
[7521/7649] Linking CXX shared library lib/libFIRBuilder.so.21.0git
[7522/7649] Creating library symlink lib/libFIRBuilder.so
[7523/7649] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7524/7649] Creating library symlink lib/libclang-cpp.so
[7525/7649] Building CXX object tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o
[7526/7649] Linking CXX shared library lib/libFIRAnalysis.so.21.0git
FAILED: lib/libFIRAnalysis.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-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-strict-aliasing -fno-semantic-interposition -O3 -DNDEBUG -fno-semantic-interposition -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libFIRAnalysis.so.21.0git -o lib/libFIRAnalysis.so.21.0git tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/TBAAForest.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:" lib/libFIRBuilder.so.21.0git lib/libFIRSupport.so.21.0git lib/libHLFIRDialect.so.21.0git lib/libFIRDialect.so.21.0git lib/libMLIRMathTransforms.so.21.0git lib/libMLIROpenMPDialect.so.21.0git lib/libMLIROpenACCMPCommon.so.21.0git lib/libMLIRMathDialect.so.21.0git lib/libMLIRX86VectorDialect.so.21.0git lib/libMLIRSCFDialect.so.21.0git lib/libMLIRVectorDialect.so.21.0git lib/libMLIRMaskableOpInterface.so.21.0git lib/libMLIRMaskingOpInterface.so.21.0git lib/libMLIRTransforms.so.21.0git lib/libMLIRRuntimeVerifiableOpInterface.so.21.0git lib/libMLIRLLVMDialect.so.21.0git lib/libLLVMBitWriter.so.21.0git lib/libLLVMAsmParser.so.21.0git lib/libLLVMBitReader.so.21.0git lib/libLLVMCore.so.21.0git lib/libLLVMBinaryFormat.so.21.0git lib/libMLIRTransformUtils.so.21.0git lib/libMLIRSubsetOpInterface.so.21.0git lib/libMLIRRewrite.so.21.0git lib/libMLIRRewritePDL.so.21.0git lib/libMLIRPDLToPDLInterp.so.21.0git lib/libMLIRPass.so.21.0git lib/libMLIRPDLInterpDialect.so.21.0git lib/libMLIRPDLDialect.so.21.0git lib/libMLIRVectorInterfaces.so.21.0git lib/libMLIRControlFlowDialect.so.21.0git lib/libMLIRFuncDialect.so.21.0git lib/libMLIRTensorDialect.so.21.0git lib/libMLIRAffineDialect.so.21.0git lib/libMLIRMemRefDialect.so.21.0git lib/libMLIRMemorySlotInterfaces.so.21.0git lib/libMLIRValueBoundsOpInterface.so.21.0git lib/libMLIRAnalysis.so.21.0git lib/libMLIRControlFlowInterfaces.so.21.0git lib/libMLIRSideEffectInterfaces.so.21.0git lib/libMLIRDataLayoutInterfaces.so.21.0git lib/libMLIRLoopLikeInterface.so.21.0git lib/libMLIRFunctionInterfaces.so.21.0git lib/libMLIRCallInterfaces.so.21.0git lib/libMLIRPresburger.so.21.0git lib/libMLIRArithUtils.so.21.0git lib/libMLIRComplexDialect.so.21.0git lib/libMLIRParallelCombiningOpInterface.so.21.0git lib/libMLIRArithDialect.so.21.0git lib/libMLIRInferTypeOpInterface.so.21.0git lib/libMLIRCastInterfaces.so.21.0git lib/libMLIRDialect.so.21.0git lib/libMLIRInferIntRangeCommon.so.21.0git lib/libMLIRShapedOpInterfaces.so.21.0git lib/libMLIRInferIntRangeInterface.so.21.0git lib/libMLIRUBDialect.so.21.0git lib/libMLIRDialectUtils.so.21.0git lib/libMLIRDestinationStyleOpInterface.so.21.0git lib/libMLIRViewLikeInterface.so.21.0git lib/libMLIRIR.so.21.0git lib/libMLIRSupport.so.21.0git lib/libLLVMSupport.so.21.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `fir::cg::XDeclareOp::getODSOperands(unsigned int) [clone .constprop.0]':
AliasAnalysis.cpp:(.text._ZN3fir2cg10XDeclareOp14getODSOperandsEj.constprop.0+0x7): undefined reference to `fir::cg::XDeclareOp::getODSOperandIndexAndLength(unsigned int)'
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `getOriginalDef(mlir::Value, Fortran::common::EnumSet<fir::AliasAnalysis::Attribute, 3ul>&, bool&, bool&)':
AliasAnalysis.cpp:(.text._ZL14getOriginalDefN4mlir5ValueERN7Fortran6common7EnumSetIN3fir13AliasAnalysis9AttributeELm3EEERbS9_+0x272): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XDeclareOp, void>::id'
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `auto fir::AliasAnalysis::getSource(mlir::Value, bool)::{lambda(auto:1)#9}::operator()<fir::cg::XDeclareOp>(fir::cg::XDeclareOp) const':
AliasAnalysis.cpp:(.text._ZZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEbENKUlT_E7_clINS_2cg10XDeclareOpEEEDaS3_+0x352): undefined reference to `fir::cg::XDeclareOp::getODSOperandIndexAndLength(unsigned int)'
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `fir::AliasAnalysis::getSource(mlir::Value, bool) [clone .localalias]':
AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0x781): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XEmboxOp, void>::id'
/usr/bin/ld: AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0x78e): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XReboxOp, void>::id'
/usr/bin/ld: AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0xaf5): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XDeclareOp, void>::id'
/usr/bin/ld: AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0xeeb): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XDeclareOp, void>::id'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 45, in step
yield
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 36, in main
run_command(["ninja"])
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../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-9-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.9/subprocess.py", line 373, 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)
...
[7517/7649] Linking CXX shared library lib/libFIRSupport.so.21.0git
[7518/7649] Creating library symlink lib/libFIRSupport.so
[7519/7649] Linking CXX shared library lib/libHLFIRDialect.so.21.0git
[7520/7649] Creating library symlink lib/libHLFIRDialect.so
[7521/7649] Linking CXX shared library lib/libFIRBuilder.so.21.0git
[7522/7649] Creating library symlink lib/libFIRBuilder.so
[7523/7649] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7524/7649] Creating library symlink lib/libclang-cpp.so
[7525/7649] Building CXX object tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o
[7526/7649] Linking CXX shared library lib/libFIRAnalysis.so.21.0git
FAILED: lib/libFIRAnalysis.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-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-strict-aliasing -fno-semantic-interposition -O3 -DNDEBUG -fno-semantic-interposition -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libFIRAnalysis.so.21.0git -o lib/libFIRAnalysis.so.21.0git tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/TBAAForest.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:" lib/libFIRBuilder.so.21.0git lib/libFIRSupport.so.21.0git lib/libHLFIRDialect.so.21.0git lib/libFIRDialect.so.21.0git lib/libMLIRMathTransforms.so.21.0git lib/libMLIROpenMPDialect.so.21.0git lib/libMLIROpenACCMPCommon.so.21.0git lib/libMLIRMathDialect.so.21.0git lib/libMLIRX86VectorDialect.so.21.0git lib/libMLIRSCFDialect.so.21.0git lib/libMLIRVectorDialect.so.21.0git lib/libMLIRMaskableOpInterface.so.21.0git lib/libMLIRMaskingOpInterface.so.21.0git lib/libMLIRTransforms.so.21.0git lib/libMLIRRuntimeVerifiableOpInterface.so.21.0git lib/libMLIRLLVMDialect.so.21.0git lib/libLLVMBitWriter.so.21.0git lib/libLLVMAsmParser.so.21.0git lib/libLLVMBitReader.so.21.0git lib/libLLVMCore.so.21.0git lib/libLLVMBinaryFormat.so.21.0git lib/libMLIRTransformUtils.so.21.0git lib/libMLIRSubsetOpInterface.so.21.0git lib/libMLIRRewrite.so.21.0git lib/libMLIRRewritePDL.so.21.0git lib/libMLIRPDLToPDLInterp.so.21.0git lib/libMLIRPass.so.21.0git lib/libMLIRPDLInterpDialect.so.21.0git lib/libMLIRPDLDialect.so.21.0git lib/libMLIRVectorInterfaces.so.21.0git lib/libMLIRControlFlowDialect.so.21.0git lib/libMLIRFuncDialect.so.21.0git lib/libMLIRTensorDialect.so.21.0git lib/libMLIRAffineDialect.so.21.0git lib/libMLIRMemRefDialect.so.21.0git lib/libMLIRMemorySlotInterfaces.so.21.0git lib/libMLIRValueBoundsOpInterface.so.21.0git lib/libMLIRAnalysis.so.21.0git lib/libMLIRControlFlowInterfaces.so.21.0git lib/libMLIRSideEffectInterfaces.so.21.0git lib/libMLIRDataLayoutInterfaces.so.21.0git lib/libMLIRLoopLikeInterface.so.21.0git lib/libMLIRFunctionInterfaces.so.21.0git lib/libMLIRCallInterfaces.so.21.0git lib/libMLIRPresburger.so.21.0git lib/libMLIRArithUtils.so.21.0git lib/libMLIRComplexDialect.so.21.0git lib/libMLIRParallelCombiningOpInterface.so.21.0git lib/libMLIRArithDialect.so.21.0git lib/libMLIRInferTypeOpInterface.so.21.0git lib/libMLIRCastInterfaces.so.21.0git lib/libMLIRDialect.so.21.0git lib/libMLIRInferIntRangeCommon.so.21.0git lib/libMLIRShapedOpInterfaces.so.21.0git lib/libMLIRInferIntRangeInterface.so.21.0git lib/libMLIRUBDialect.so.21.0git lib/libMLIRDialectUtils.so.21.0git lib/libMLIRDestinationStyleOpInterface.so.21.0git lib/libMLIRViewLikeInterface.so.21.0git lib/libMLIRIR.so.21.0git lib/libMLIRSupport.so.21.0git lib/libLLVMSupport.so.21.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `fir::cg::XDeclareOp::getODSOperands(unsigned int) [clone .constprop.0]':
AliasAnalysis.cpp:(.text._ZN3fir2cg10XDeclareOp14getODSOperandsEj.constprop.0+0x7): undefined reference to `fir::cg::XDeclareOp::getODSOperandIndexAndLength(unsigned int)'
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `getOriginalDef(mlir::Value, Fortran::common::EnumSet<fir::AliasAnalysis::Attribute, 3ul>&, bool&, bool&)':
AliasAnalysis.cpp:(.text._ZL14getOriginalDefN4mlir5ValueERN7Fortran6common7EnumSetIN3fir13AliasAnalysis9AttributeELm3EEERbS9_+0x272): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XDeclareOp, void>::id'
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `auto fir::AliasAnalysis::getSource(mlir::Value, bool)::{lambda(auto:1)#9}::operator()<fir::cg::XDeclareOp>(fir::cg::XDeclareOp) const':
AliasAnalysis.cpp:(.text._ZZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEbENKUlT_E7_clINS_2cg10XDeclareOpEEEDaS3_+0x352): undefined reference to `fir::cg::XDeclareOp::getODSOperandIndexAndLength(unsigned int)'
/usr/bin/ld: tools/flang/lib/Optimizer/Analysis/CMakeFiles/FIRAnalysis.dir/AliasAnalysis.cpp.o: in function `fir::AliasAnalysis::getSource(mlir::Value, bool) [clone .localalias]':
AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0x781): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XEmboxOp, void>::id'
/usr/bin/ld: AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0x78e): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XReboxOp, void>::id'
/usr/bin/ld: AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0xaf5): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XDeclareOp, void>::id'
/usr/bin/ld: AliasAnalysis.cpp:(.text._ZN3fir13AliasAnalysis9getSourceEN4mlir5ValueEb+0xeeb): undefined reference to `mlir::detail::TypeIDResolver<fir::cg::XDeclareOp, void>::id'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 45, in step
yield
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 36, in main
run_command(["ninja"])
File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../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-9-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.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=70.625440
```
</details>
https://github.com/llvm/llvm-project/pull/127827
More information about the flang-commits
mailing list