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

LLVM Continuous Integration llvmlistbot at llvm.org
Wed Aug 28 21:37:18 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/5134

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
37.310 [2140/26/4996] Creating library symlink lib/libMLIRSPIRVTranslateRegistration.so
37.310 [2140/25/4997] Creating library symlink lib/libMLIRSPIRVTarget.so
37.311 [2140/24/4998] Copying clang's ppc_wrappers/x86gprintrin.h...
37.312 [2140/23/4999] Copying clang's openmp_wrappers/math.h...
37.312 [2140/22/5000] Copying clang's openmp_wrappers/cmath...
37.313 [2140/21/5001] Copying clang's openmp_wrappers/complex...
37.314 [2140/20/5002] Copying clang's openmp_wrappers/complex.h...
37.314 [2140/19/5003] Copying clang's openmp_wrappers/__clang_openmp_device_functions.h...
37.340 [2140/18/5004] Linking CXX shared library lib/libMLIRGPUToVulkanTransforms.so.20.0git
37.376 [2140/17/5005] Linking CXX shared library lib/libMLIRSCFToControlFlow.so.20.0git
FAILED: lib/libMLIRSCFToControlFlow.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,libMLIRSCFToControlFlow.so.20.0git -o lib/libMLIRSCFToControlFlow.so.20.0git tools/mlir/lib/Conversion/SCFToControlFlow/CMakeFiles/obj.MLIRSCFToControlFlow.dir/SCFToControlFlow.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib:"  lib/libMLIRSCFTransforms.so.20.0git  lib/libMLIRTensorTransforms.so.20.0git  lib/libMLIRBufferizationTransforms.so.20.0git  lib/libMLIRAffineTransforms.so.20.0git  lib/libMLIRSCFUtils.so.20.0git  lib/libMLIRTransforms.so.20.0git  lib/libMLIRCopyOpInterface.so.20.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.20.0git  lib/libMLIRAffineUtils.so.20.0git  lib/libMLIRLinalgDialect.so.20.0git  lib/libMLIRBufferizationDialect.so.20.0git  lib/libMLIRSparseTensorDialect.so.20.0git  lib/libMLIRParser.so.20.0git  lib/libMLIRBytecodeReader.so.20.0git  lib/libMLIRAsmParser.so.20.0git  lib/libMLIRShardingInterface.so.20.0git  lib/libMLIRMeshDialect.so.20.0git  lib/libMLIRMathDialect.so.20.0git  lib/libMLIRTensorUtils.so.20.0git  lib/libMLIRVectorUtils.so.20.0git  lib/libMLIRAffineAnalysis.so.20.0git  lib/libMLIRSCFDialect.so.20.0git  lib/libMLIRControlFlowDialect.so.20.0git  lib/libMLIRFuncDialect.so.20.0git  lib/libMLIRVectorDialect.so.20.0git  lib/libMLIRTensorDialect.so.20.0git  lib/libMLIRParallelCombiningOpInterface.so.20.0git  lib/libMLIRAffineDialect.so.20.0git  lib/libMLIRMemRefDialect.so.20.0git  lib/libMLIRMemorySlotInterfaces.so.20.0git  lib/libMLIRArithUtils.so.20.0git  lib/libMLIRDialectUtils.so.20.0git  lib/libMLIRComplexDialect.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/libMLIRShapedOpInterfaces.so.20.0git  lib/libMLIRMaskableOpInterface.so.20.0git  lib/libMLIRMaskingOpInterface.so.20.0git  lib/libMLIRVectorInterfaces.so.20.0git  lib/libMLIRTilingInterface.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/libMLIRInferIntRangeInterface.so.20.0git  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRLoopLikeInterface.so.20.0git  lib/libMLIRViewLikeInterface.so.20.0git  lib/libMLIRCallInterfaces.so.20.0git  lib/libMLIRPresburger.so.20.0git  lib/libMLIRDataLayoutInterfaces.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/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/SCFToControlFlow/CMakeFiles/obj.MLIRSCFToControlFlow.dir/SCFToControlFlow.cpp.o: in function `(anonymous namespace)::ForLowering::matchAndRewrite(mlir::scf::ForOp, mlir::PatternRewriter&) const':
SCFToControlFlow.cpp:(.text._ZNK12_GLOBAL__N_111ForLowering15matchAndRewriteEN4mlir3scf5ForOpERNS1_15PatternRewriterE+0x3e8): undefined reference to `mlir::detail::TypeIDResolver<mlir::LLVM::LLVMDialect, void>::id'
/usr/bin/ld: SCFToControlFlow.cpp:(.text._ZNK12_GLOBAL__N_111ForLowering15matchAndRewriteEN4mlir3scf5ForOpERNS1_15PatternRewriterE+0x3f0): undefined reference to `mlir::detail::TypeIDResolver<mlir::LLVM::LLVMDialect, void>::id'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
37.400 [2140/16/5006] Linking CXX shared library lib/libMLIRSCFTestPasses.so.20.0git
37.428 [2140/15/5007] Linking CXX shared library lib/libMLIRComplexToSPIRV.so.20.0git
37.452 [2140/14/5008] Linking CXX shared library lib/libMLIRControlFlowToSPIRV.so.20.0git
37.452 [2140/13/5009] Linking CXX shared library lib/libMLIRFuncToSPIRV.so.20.0git
37.454 [2140/12/5010] Linking CXX shared library lib/libMLIRTestConvertToSPIRV.so.20.0git
37.466 [2140/11/5011] Linking CXX shared library lib/libMLIRSPIRVTransforms.so.20.0git
37.466 [2140/10/5012] Linking CXX shared library lib/libMLIRVectorToSPIRV.so.20.0git
37.466 [2140/9/5013] Linking CXX shared library lib/libMLIRUBToSPIRV.so.20.0git
37.466 [2140/8/5014] Linking CXX shared library lib/libMLIRSPIRVTestPasses.so.20.0git
37.468 [2140/7/5015] Linking CXX shared library lib/libMLIRArmSMETransforms.so.20.0git
37.473 [2140/6/5016] Linking CXX shared library lib/libMLIRMathToSPIRV.so.20.0git
37.478 [2140/5/5017] Linking CXX shared library lib/libMLIRIndexToSPIRV.so.20.0git
37.480 [2140/4/5018] Linking CXX shared library lib/libMLIRMemRefToSPIRV.so.20.0git
37.587 [2140/3/5019] Linking CXX shared library lib/libMLIRToLLVMIRTranslationRegistration.so.20.0git
37.587 [2140/2/5020] Linking CXX shared library lib/libMLIRVectorTransformOps.so.20.0git
37.671 [2140/1/5021] Linking CXX shared library lib/libMLIRLinalgTransforms.so.20.0git
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the Mlir-commits mailing list