[Mlir-commits] [mlir] [mlir] NFC: fix dependence of (Tensor|Linalg|MemRef|Complex) dialects on LLVM Dialect and LLVM Core in CMake build (PR #104832)

LLVM Continuous Integration llvmlistbot at llvm.org
Mon Aug 19 17:53:05 PDT 2024


llvm-ci wrote:

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

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
56.977 [2933/24/4390] Creating library symlink lib/libMLIROpenACCTransforms.so
56.983 [2933/23/4391] Creating library symlink lib/libMLIRCAPITransforms.so
57.029 [2933/22/4392] Linking CXX shared library lib/libMLIRCAPITensor.so.20.0git
57.030 [2933/21/4393] Linking CXX shared library lib/libMLIRMathToLLVM.so.20.0git
57.057 [2927/26/4394] Linking CXX shared library lib/libMLIRArithToLLVM.so.20.0git
57.058 [2927/25/4395] Linking CXX shared library lib/libMLIRIndexToLLVM.so.20.0git
57.058 [2927/24/4396] Linking CXX shared library lib/libMLIRTensorUtils.so.20.0git
57.058 [2927/23/4397] Creating library symlink lib/libMLIRMathToLLVM.so
57.058 [2927/22/4398] Creating library symlink lib/libMLIRCAPILLVM.so
57.059 [2927/21/4399] Linking CXX shared library lib/libMLIRComplexToLLVM.so.20.0git
FAILED: lib/libMLIRComplexToLLVM.so.20.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 -Wundef -Werror=mismatched-tags -Werror=global-constructors -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,libMLIRComplexToLLVM.so.20.0git -o lib/libMLIRComplexToLLVM.so.20.0git tools/mlir/lib/Conversion/ComplexToLLVM/CMakeFiles/obj.MLIRComplexToLLVM.dir/ComplexToLLVM.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib:"  lib/libMLIRComplexDialect.so.20.0git  lib/libMLIRLLVMCommonConversion.so.20.0git  lib/libMLIRLLVMDialect.so.20.0git  lib/libMLIRTransforms.so.20.0git  lib/libMLIRArithDialect.so.20.0git  lib/libMLIRCastInterfaces.so.20.0git  lib/libMLIRInferIntRangeCommon.so.20.0git  lib/libMLIRUBDialect.so.20.0git  lib/libMLIRDialect.so.20.0git  lib/libLLVMBitWriter.so.20.0git  lib/libLLVMAsmParser.so.20.0git  lib/libLLVMBitReader.so.20.0git  lib/libMLIRMemorySlotInterfaces.so.20.0git  lib/libMLIRCopyOpInterface.so.20.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.20.0git  lib/libMLIRTransformUtils.so.20.0git  lib/libMLIRSubsetOpInterface.so.20.0git  lib/libMLIRValueBoundsOpInterface.so.20.0git  lib/libMLIRDestinationStyleOpInterface.so.20.0git  lib/libMLIRRewrite.so.20.0git  lib/libMLIRRewritePDL.so.20.0git  lib/libMLIRPDLToPDLInterp.so.20.0git  lib/libMLIRPass.so.20.0git  lib/libMLIRAnalysis.so.20.0git  lib/libMLIRCallInterfaces.so.20.0git  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRDataLayoutInterfaces.so.20.0git  lib/libMLIRLoopLikeInterface.so.20.0git  lib/libMLIRInferIntRangeInterface.so.20.0git  lib/libMLIRPresburger.so.20.0git  lib/libMLIRViewLikeInterface.so.20.0git  lib/libMLIRPDLInterpDialect.so.20.0git  lib/libMLIRFunctionInterfaces.so.20.0git  lib/libMLIRPDLDialect.so.20.0git  lib/libMLIRInferTypeOpInterface.so.20.0git  lib/libMLIRSideEffectInterfaces.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libLLVMBinaryFormat.so.20.0git  lib/libMLIRIR.so.20.0git  lib/libMLIRSupport.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib && :
/usr/bin/ld: tools/mlir/lib/Conversion/ComplexToLLVM/CMakeFiles/obj.MLIRComplexToLLVM.dir/ComplexToLLVM.cpp.o: in function `(anonymous namespace)::AbsOpConversion::matchAndRewrite(mlir::complex::AbsOp, mlir::complex::AbsOpAdaptor, mlir::ConversionPatternRewriter&) const':
ComplexToLLVM.cpp:(.text._ZNK12_GLOBAL__N_115AbsOpConversion15matchAndRewriteEN4mlir7complex5AbsOpENS2_12AbsOpAdaptorERNS1_25ConversionPatternRewriterE+0x98): undefined reference to `mlir::arith::convertArithFastMathFlagsToLLVM(mlir::arith::FastMathFlags)'
/usr/bin/ld: tools/mlir/lib/Conversion/ComplexToLLVM/CMakeFiles/obj.MLIRComplexToLLVM.dir/ComplexToLLVM.cpp.o: in function `(anonymous namespace)::AddOpConversion::matchAndRewrite(mlir::complex::AddOp, mlir::complex::AddOpAdaptor, mlir::ConversionPatternRewriter&) const':
ComplexToLLVM.cpp:(.text._ZNK12_GLOBAL__N_115AddOpConversion15matchAndRewriteEN4mlir7complex5AddOpENS2_12AddOpAdaptorERNS1_25ConversionPatternRewriterE+0x168): undefined reference to `mlir::arith::convertArithFastMathFlagsToLLVM(mlir::arith::FastMathFlags)'
/usr/bin/ld: tools/mlir/lib/Conversion/ComplexToLLVM/CMakeFiles/obj.MLIRComplexToLLVM.dir/ComplexToLLVM.cpp.o: in function `(anonymous namespace)::DivOpConversion::matchAndRewrite(mlir::complex::DivOp, mlir::complex::DivOpAdaptor, mlir::ConversionPatternRewriter&) const':
ComplexToLLVM.cpp:(.text._ZNK12_GLOBAL__N_115DivOpConversion15matchAndRewriteEN4mlir7complex5DivOpENS2_12DivOpAdaptorERNS1_25ConversionPatternRewriterE+0x168): undefined reference to `mlir::arith::convertArithFastMathFlagsToLLVM(mlir::arith::FastMathFlags)'
/usr/bin/ld: tools/mlir/lib/Conversion/ComplexToLLVM/CMakeFiles/obj.MLIRComplexToLLVM.dir/ComplexToLLVM.cpp.o: in function `(anonymous namespace)::MulOpConversion::matchAndRewrite(mlir::complex::MulOp, mlir::complex::MulOpAdaptor, mlir::ConversionPatternRewriter&) const':
ComplexToLLVM.cpp:(.text._ZNK12_GLOBAL__N_115MulOpConversion15matchAndRewriteEN4mlir7complex5MulOpENS2_12MulOpAdaptorERNS1_25ConversionPatternRewriterE+0x168): undefined reference to `mlir::arith::convertArithFastMathFlagsToLLVM(mlir::arith::FastMathFlags)'
/usr/bin/ld: tools/mlir/lib/Conversion/ComplexToLLVM/CMakeFiles/obj.MLIRComplexToLLVM.dir/ComplexToLLVM.cpp.o: in function `(anonymous namespace)::SubOpConversion::matchAndRewrite(mlir::complex::SubOp, mlir::complex::SubOpAdaptor, mlir::ConversionPatternRewriter&) const':
ComplexToLLVM.cpp:(.text._ZNK12_GLOBAL__N_115SubOpConversion15matchAndRewriteEN4mlir7complex5SubOpENS2_12SubOpAdaptorERNS1_25ConversionPatternRewriterE+0x168): undefined reference to `mlir::arith::convertArithFastMathFlagsToLLVM(mlir::arith::FastMathFlags)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
57.067 [2927/20/4400] Linking CXX shared library lib/libMLIRShardingInterface.so.20.0git
57.072 [2927/19/4401] Linking CXX shared library lib/libMLIRTensorInferTypeOpInterfaceImpl.so.20.0git
57.076 [2927/18/4402] Linking CXX shared library lib/libMLIRControlFlowToLLVM.so.20.0git
57.077 [2927/17/4403] Linking CXX shared library lib/libMLIRConvertToLLVMPass.so.20.0git
57.100 [2927/16/4404] Linking CXX shared library lib/libMLIRBufferizationDialect.so.20.0git
57.109 [2927/15/4405] Linking CXX shared library lib/libMLIRUBToLLVM.so.20.0git
57.112 [2927/14/4406] Linking CXX shared library lib/libMLIRMemRefToLLVM.so.20.0git
57.115 [2927/13/4407] Linking CXX shared library lib/libMLIRAMXTransforms.so.20.0git
57.128 [2927/12/4408] Linking CXX shared library lib/libMLIRSCFDialect.so.20.0git
57.153 [2927/11/4409] Linking CXX shared library lib/libMLIRAMDGPUUtils.so.20.0git
57.201 [2927/10/4410] Linking CXX shared library lib/libMLIRShapeDialect.so.20.0git
57.201 [2927/9/4411] Linking CXX shared library lib/libMLIRCAPIAMDGPU.so.20.0git
57.244 [2927/8/4412] Linking CXX shared library lib/libMLIRVectorDialect.so.20.0git
57.245 [2927/7/4413] Linking CXX shared library lib/libMLIRCAPIMLProgram.so.20.0git
57.253 [2927/6/4414] Linking CXX shared library lib/libMLIRCAPINVGPU.so.20.0git
57.312 [2927/5/4415] Linking CXX shared library lib/libMLIRNVVMToLLVM.so.20.0git
57.316 [2927/4/4416] Linking CXX shared library lib/libMLIRTosaDialect.so.20.0git
57.321 [2927/3/4417] Linking CXX shared library lib/libMLIRTargetLLVMIRExport.so.20.0git
57.343 [2927/2/4418] Linking CXX shared library lib/libMLIRTransformDialect.so.20.0git
57.950 [2927/1/4419] Linking CXX shared library lib/libMLIRSPIRVDialect.so.20.0git
ninja: build stopped: subcommand failed.

```

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


More information about the Mlir-commits mailing list