[flang-commits] [flang] [llvm] [MLIR][OpenMP] Add a new AutomapToTargetData conversion pass in FIR (PR #151989)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Mon Aug 11 08:25:56 PDT 2025


llvm-ci wrote:

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

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
509.052 [174/40/7586] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/constant.cpp.o
509.770 [174/39/7587] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/logical.cpp.o
510.810 [174/38/7588] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/target.cpp.o
511.011 [174/37/7589] Building CXX object tools/flang/tools/fir-opt/CMakeFiles/fir-opt.dir/fir-opt.cpp.o
511.622 [174/36/7590] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/static-data.cpp.o
511.676 [174/35/7591] Building CXX object tools/flang/tools/tco/CMakeFiles/tco.dir/tco.cpp.o
512.549 [174/34/7592] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/host.cpp.o
517.311 [174/33/7593] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/real.cpp.o
517.605 [174/32/7594] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
517.902 [173/32/7595] Linking CXX shared library lib/libFortranSupport.so.22.0git
FAILED: lib/libFortranSupport.so.22.0git 
: && /usr/local/bin/c++ -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 -Wno-deprecated-copy -Wno-string-conversion -Wno-ctad-maybe-unsupported -Wno-unused-command-line-argument -Wstring-conversion           -Wcovered-switch-default -Wno-nested-anon-types -Xclang -fno-pch-timestamp -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libFortranSupport.so.22.0git -o lib/libFortranSupport.so.22.0git tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/default-kinds.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Flags.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Fortran.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Fortran-features.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/idioms.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/LangOptions.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Timing.cpp.o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/Version.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib:"  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib && :
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::CharBoxValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir12CharBoxValue4dumpEv[_ZNK3fir12CharBoxValue4dumpEv]+0x20): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::CharBoxValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::PolymorphicValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir16PolymorphicValue4dumpEv[_ZNK3fir16PolymorphicValue4dumpEv]+0x20): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::PolymorphicValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::ArrayBoxValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir13ArrayBoxValue4dumpEv[_ZNK3fir13ArrayBoxValue4dumpEv]+0x20): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::ArrayBoxValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::CharArrayBoxValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir17CharArrayBoxValue4dumpEv[_ZNK3fir17CharArrayBoxValue4dumpEv]+0x20): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::CharArrayBoxValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::ProcBoxValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir12ProcBoxValue4dumpEv[_ZNK3fir12ProcBoxValue4dumpEv]+0x20): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::ProcBoxValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::BoxValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir8BoxValue4dumpEv[_ZNK3fir8BoxValue4dumpEv]+0x20): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::BoxValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::MutableBoxValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir15MutableBoxValue4dumpEv[_ZNK3fir15MutableBoxValue4dumpEv]+0x20): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::MutableBoxValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::ExtendedValue::dump() const':
OpenMP-utils.cpp:(.text._ZNK3fir13ExtendedValue4dumpEv[_ZNK3fir13ExtendedValue4dumpEv]+0x18): undefined reference to `fir::operator<<(llvm::raw_ostream&, fir::ExtendedValue const&)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `Fortran::common::openmp::needsBoundsOps(mlir::Value)':
OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0x2c): undefined reference to `fir::dyn_cast_ptrEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0x3c): undefined reference to `fir::dyn_cast_ptrOrBoxEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp14needsBoundsOpsEN4mlir5ValueE+0x50): undefined reference to `fir::hasDynamicSize(mlir::Type)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `Fortran::common::openmp::genBoundsOps(fir::FirOpBuilder&, mlir::Value, llvm::SmallVectorImpl<mlir::Value>&)':
OpenMP-utils.cpp:(.text._ZN7Fortran6common6openmp12genBoundsOpsERN3fir12FirOpBuilderEN4mlir5ValueERN4llvm15SmallVectorImplIS6_EE+0x74): undefined reference to `hlfir::translateToExtendedValue(mlir::Location, fir::FirOpBuilder&, hlfir::Entity, bool, bool)'
/usr/bin/ld: tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o: in function `fir::factory::getDataOperandBaseAddr(fir::FirOpBuilder&, mlir::Value, bool, mlir::Location, bool)':
OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0xac): undefined reference to `fir::IsPresentOp::create(mlir::OpBuilder&, mlir::Location, mlir::Type, mlir::Value)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0xd4): undefined reference to `fir::dyn_cast_ptrEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0xec): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0xf4): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x104): undefined reference to `mlir::detail::TypeIDResolver<fir::ClassType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x108): undefined reference to `mlir::detail::TypeIDResolver<fir::ClassType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x120): undefined reference to `fir::dyn_cast_ptrEleTy(mlir::Type)'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x138): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxCharType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x144): undefined reference to `mlir::detail::TypeIDResolver<fir::BoxCharType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x168): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x170): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x198): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x1a0): undefined reference to `mlir::detail::TypeIDResolver<fir::ReferenceType, void>::id'
/usr/bin/ld: OpenMP-utils.cpp:(.text._ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb[_ZN3fir7factory22getDataOperandBaseAddrERNS_12FirOpBuilderEN4mlir5ValueEbNS3_8LocationEb]+0x1b8): undefined reference to `fir::LoadOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'

```

</details>

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


More information about the flang-commits mailing list