[flang-commits] [flang] [mlir] [mlir][acc] Move acc routine functions into GPU module (PR #187161)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Wed Mar 18 09:17:28 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-latest-gcc` running on `linaro-flang-aarch64-latest-gcc` while building `flang,mlir` at step 5 "build-unified-tree".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
-- Builtin supported architectures: aarch64
-- AArch64 SME ABI routines enabled
-- Performing additional configure checks with target flags: -nostdinc++ -Wno-c2y-extensions -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -march=armv8-a
-- Performing Test COMPILER_RT_HAS_aarch64_BFLOAT16
-- Performing Test COMPILER_RT_HAS_aarch64_BFLOAT16 - Success
-- For aarch64 builtins preferring aarch64/fp_mode.c to fp_mode.c
-- Configuring done (10.4s)
-- Generating done (0.0s)
-- Build files have been written to: /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/runtimes/builtins-bins
1111.590 [56/7/8038] Linking CXX shared library lib/libFIROpenACCAnalysis.so.23.0git
FAILED: lib/libFIROpenACCAnalysis.so.23.0git 
: && /usr/local/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-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -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-semantic-interposition -O3 -DNDEBUG -fno-semantic-interposition  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libFIROpenACCAnalysis.so.23.0git -o lib/libFIROpenACCAnalysis.so.23.0git tools/flang/lib/Optimizer/OpenACC/Analysis/CMakeFiles/FIROpenACCAnalysis.dir/FIROpenACCSupportAnalysis.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libFIROpenACCSupport.so.23.0git  lib/libFIRAnalysis.so.23.0git  lib/libHLFIRDialect.so.23.0git  lib/libFIRDialect.so.23.0git  lib/libMLIROpenACCUtils.so.23.0git  lib/libMLIROpenACCDialect.so.23.0git  lib/libMLIRSCFUtils.so.23.0git  lib/libMLIRAffineAnalysis.so.23.0git  lib/libMLIRSCFDialect.so.23.0git  lib/libMLIRTensorDialect.so.23.0git  lib/libMLIRParallelCombiningOpInterface.so.23.0git  lib/libMLIRControlFlowDialect.so.23.0git  lib/libMLIRAffineDialect.so.23.0git  lib/libMLIRTransforms.so.23.0git  lib/libMLIRTransformUtils.so.23.0git  lib/libMLIRSubsetOpInterface.so.23.0git  lib/libMLIRRewrite.so.23.0git  lib/libMLIRRewritePDL.so.23.0git  lib/libMLIRPDLToPDLInterp.so.23.0git  lib/libMLIRPDLInterpDialect.so.23.0git  lib/libMLIRPDLDialect.so.23.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.23.0git  lib/libMLIRPass.so.23.0git  lib/libMLIROpenACCMPCommon.so.23.0git  lib/libMLIRFuncDialect.so.23.0git  lib/libMLIRGPUDialect.so.23.0git  lib/libMLIRMemRefDialect.so.23.0git  lib/libMLIRArithUtils.so.23.0git  lib/libMLIRComplexDialect.so.23.0git  lib/libMLIRDialectUtils.so.23.0git  lib/libMLIRMemOpInterfaces.so.23.0git  lib/libMLIRValueBoundsOpInterface.so.23.0git  lib/libMLIRAnalysis.so.23.0git  lib/libMLIRInferStridedMetadataInterface.so.23.0git  lib/libMLIRLoopLikeInterface.so.23.0git  lib/libMLIRPresburger.so.23.0git  lib/libMLIRDestinationStyleOpInterface.so.23.0git  lib/libMLIRViewLikeInterface.so.23.0git  lib/libMLIRDLTIDialect.so.23.0git  lib/libMLIRMathDialect.so.23.0git  lib/libMLIRArithDialect.so.23.0git  lib/libMLIRInferIntRangeCommon.so.23.0git  lib/libMLIRShapedOpInterfaces.so.23.0git  lib/libMLIRCastInterfaces.so.23.0git  lib/libMLIRDialect.so.23.0git  lib/libMLIRUBDialect.so.23.0git  lib/libMLIRLLVMDialect.so.23.0git  lib/libMLIRDataLayoutInterfaces.so.23.0git  lib/libMLIRControlFlowInterfaces.so.23.0git  lib/libMLIRFunctionInterfaces.so.23.0git  lib/libMLIRCallInterfaces.so.23.0git  lib/libMLIRInferTypeOpInterface.so.23.0git  lib/libMLIRMemorySlotInterfaces.so.23.0git  lib/libMLIRPtrMemorySpaceInterfaces.so.23.0git  lib/libMLIRInferIntRangeInterface.so.23.0git  lib/libMLIRSideEffectInterfaces.so.23.0git  lib/libMLIRAsmParser.so.23.0git  lib/libMLIRIR.so.23.0git  lib/libMLIRSupport.so.23.0git  lib/libLLVMCore.so.23.0git  lib/libLLVMBinaryFormat.so.23.0git  lib/libLLVMSupport.so.23.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: tools/flang/lib/Optimizer/OpenACC/Analysis/CMakeFiles/FIROpenACCAnalysis.dir/FIROpenACCSupportAnalysis.cpp.o: in function `fir::acc::FIROpenACCSupportAnalysis::isValidSymbolUse(mlir::Operation*, mlir::SymbolRefAttr, mlir::Operation**)':
FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnalysis16isValidSymbolUseEPN4mlir9OperationENS2_13SymbolRefAttrEPS4_+0xc8): undefined reference to `mlir::detail::TypeIDResolver<cuf::ProcAttributeAttr, void>::id'
/usr/bin/ld: FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnalysis16isValidSymbolUseEPN4mlir9OperationENS2_13SymbolRefAttrEPS4_+0xcc): undefined reference to `mlir::detail::TypeIDResolver<cuf::ProcAttributeAttr, void>::id'
/usr/bin/ld: FIROpenACCSupportAnalysis.cpp:(.text._ZN3fir3acc25FIROpenACCSupportAnalysis16isValidSymbolUseEPN4mlir9OperationENS2_13SymbolRefAttrEPS4_+0x170): undefined reference to `cuf::ProcAttributeAttr::getValue() const'
collect2: error: ld returned 1 exit status
1113.938 [56/2/8043] Linking CXX executable bin/fir-lsp-server
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the flang-commits mailing list