[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:52:56 PDT 2024


llvm-ci wrote:

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

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
31.301 [2688/28/4419] Creating library symlink lib/libMLIROpenACCTransforms.so
31.301 [2688/27/4420] Creating library symlink lib/libMLIRSCFDialect.so
31.325 [2681/33/4421] Linking CXX shared library lib/libLLVMipo.so.20.0git
31.326 [2681/32/4422] Linking CXX shared library lib/libMLIRCAPIROCDL.so.20.0git
31.326 [2681/31/4423] Creating library symlink lib/libMLIRTensorInferTypeOpInterfaceImpl.so
31.326 [2681/30/4424] Creating library symlink lib/libMLIRTransformDialectInterfaces.so
31.327 [2681/29/4425] Linking CXX shared library lib/libMLIRCAPIOpenMP.so.20.0git
31.347 [2681/28/4426] Linking CXX shared library lib/libMLIRUBToLLVM.so.20.0git
31.356 [2681/27/4427] Linking CXX shared library lib/libMLIRAMDGPUUtils.so.20.0git
31.359 [2681/26/4428] Linking CXX shared library lib/libMLIRComplexToLLVM.so.20.0git
FAILED: lib/libMLIRComplexToLLVM.so.20.0git 
: && /usr/local/bin/c++ -fPIC -stdlib=libc++ -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  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/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-libcxx/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-libcxx/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)
31.363 [2681/25/4429] Linking CXX shared library lib/libMLIRCAPINVGPU.so.20.0git
31.365 [2681/24/4430] Linking CXX shared library lib/libMLIRIndexToLLVM.so.20.0git
31.369 [2681/23/4431] Linking CXX shared library lib/libMLIRMathToLLVM.so.20.0git
31.370 [2681/22/4432] Linking CXX shared library lib/libMLIRArithToLLVM.so.20.0git
31.383 [2681/21/4433] Linking CXX shared library lib/libMLIRControlFlowToLLVM.so.20.0git
31.386 [2681/20/4434] Linking CXX shared library lib/libMLIRTosaDialect.so.20.0git
31.398 [2681/19/4435] Linking CXX shared library lib/libMLIRConvertToLLVMPass.so.20.0git
31.410 [2681/18/4436] Linking CXX shared library lib/libMLIRAMXTransforms.so.20.0git
31.411 [2681/17/4437] Linking CXX shared library lib/libMLIRShapeDialect.so.20.0git
31.412 [2681/16/4438] Linking CXX shared library lib/libMLIRNVVMToLLVM.so.20.0git
31.414 [2681/15/4439] Linking CXX shared library lib/libMLIRMemRefToLLVM.so.20.0git
31.420 [2681/14/4440] Linking CXX shared library lib/libMLIRCAPIAMDGPU.so.20.0git
31.424 [2681/13/4441] Linking CXX shared library lib/libMLIRArithToEmitC.so.20.0git
31.427 [2681/12/4442] Linking CXX shared library lib/libMLIRFromLLVMIRTranslationRegistration.so.20.0git
31.437 [2681/11/4443] Linking CXX shared library lib/libMLIRCAPISCF.so.20.0git
31.442 [2681/10/4444] Linking CXX shared library lib/libMLIRVectorDialect.so.20.0git
31.447 [2681/9/4445] Linking CXX shared library lib/libMLIRControlFlowToSCF.so.20.0git
31.450 [2681/8/4446] Linking CXX shared library lib/libMLIRAffineAnalysis.so.20.0git
31.452 [2681/7/4447] Linking CXX shared library lib/libMLIRSCFToEmitC.so.20.0git
31.473 [2681/6/4448] Linking CXX shared library lib/libMLIRSCFToOpenMP.so.20.0git
31.476 [2681/5/4449] Linking CXX shared library lib/libMLIROpenACCToSCF.so.20.0git
31.500 [2681/4/4450] Linking CXX shared library lib/libMLIRBufferizationTransforms.so.20.0git
31.528 [2681/3/4451] Linking CXX shared library lib/libLLVMCodeGen.so.20.0git
32.251 [2681/2/4452] Linking CXX shared library lib/libMLIRSPIRVDialect.so.20.0git
33.907 [2681/1/4453] Building CXX object tools/mlir/lib/Conversion/SCFToControlFlow/CMakeFiles/obj.MLIRSCFToControlFlow.dir/SCFToControlFlow.cpp.o
ninja: build stopped: subcommand failed.

```

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


More information about the Mlir-commits mailing list