[llvm] [mlir] CMake: Remove unnecessary dependencies on LLVM/MLIR (PR #110362)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 15:02:45 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 `llvm,mlir` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/80/builds/4349
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
123.246 [3426/9/3991] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRExport.dir/ModuleTranslation.cpp.o
123.259 [3422/12/3992] Creating library symlink lib/libMLIRPolynomialDialect.so
123.318 [3422/11/3993] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRImport.dir/DataLayoutImporter.cpp.o
123.327 [3422/10/3994] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRImport.dir/LoopAnnotationImporter.cpp.o
123.339 [3417/14/3995] Linking CXX shared library lib/libMLIRMathDialect.so.20.0git
123.341 [3417/13/3996] Building CXX object tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRTargetLLVMIRImport.dir/DebugImporter.cpp.o
123.360 [3417/12/3997] Linking CXX shared library lib/libMLIRRewritePDL.so.20.0git
123.379 [3417/11/3998] Linking CXX shared library lib/libMLIRFuncInlinerExtension.so.20.0git
123.381 [3417/10/3999] Linking CXX shared library lib/libMLIRTargetCpp.so.20.0git
123.397 [3417/9/4000] Linking CXX shared library lib/libMLIRSPIRVSerialization.so.20.0git
FAILED: lib/libMLIRSPIRVSerialization.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,libMLIRSPIRVSerialization.so.20.0git -o lib/libMLIRSPIRVSerialization.so.20.0git tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serialization.cpp.o tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/SerializeOps.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib:" lib/libMLIRSPIRVBinaryUtils.so.20.0git lib/libMLIRTranslateLib.so.20.0git lib/libMLIRParser.so.20.0git lib/libMLIRBytecodeReader.so.20.0git lib/libMLIRAsmParser.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/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serialization.cpp.o: in function `mlir::spirv::serialize(mlir::spirv::ModuleOp, llvm::SmallVectorImpl<unsigned int>&, mlir::spirv::SerializationOptions const&)':
Serialization.cpp:(.text._ZN4mlir5spirv9serializeENS0_8ModuleOpERN4llvm15SmallVectorImplIjEERKNS0_20SerializationOptionsE+0x24): undefined reference to `mlir::spirv::ModuleOp::getVceTriple()'
/usr/bin/ld: tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o: in function `mlir::spirv::Serializer::serialize()':
Serializer.cpp:(.text._ZN4mlir5spirv10Serializer9serializeEv+0x5c): undefined reference to `mlir::spirv::ModuleOp::verifyInvariants()'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer9serializeEv+0x188): undefined reference to `mlir::spirv::ModuleOp::verifyInvariants()'
/usr/bin/ld: tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o: in function `mlir::spirv::Serializer::processCapability()':
Serializer.cpp:(.text._ZN4mlir5spirv10Serializer17processCapabilityEv+0x1c): undefined reference to `mlir::spirv::ModuleOp::getVceTriple()'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer17processCapabilityEv+0x38): undefined reference to `mlir::spirv::VerCapExtAttr::getCapabilities()'
/usr/bin/ld: tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o: in function `mlir::spirv::Serializer::processExtension()':
Serializer.cpp:(.text._ZN4mlir5spirv10Serializer16processExtensionEv+0x38): undefined reference to `mlir::spirv::ModuleOp::getVceTriple()'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer16processExtensionEv+0x50): undefined reference to `mlir::spirv::VerCapExtAttr::getExtensions()'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer16processExtensionEv+0x74): undefined reference to `mlir::spirv::stringifyExtension(mlir::spirv::Extension)'
/usr/bin/ld: tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o: in function `mlir::spirv::Serializer::processMemoryModel()':
Serializer.cpp:(.text._ZN4mlir5spirv10Serializer18processMemoryModelEv+0x6c): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::MemoryModelAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer18processMemoryModelEv+0x74): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::MemoryModelAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer18processMemoryModelEv+0xa0): undefined reference to `mlir::spirv::MemoryModelAttr::getValue() const'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer18processMemoryModelEv+0x104): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::AddressingModelAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer18processMemoryModelEv+0x10c): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::AddressingModelAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer18processMemoryModelEv+0x138): undefined reference to `mlir::spirv::AddressingModelAttr::getValue() const'
/usr/bin/ld: tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o: in function `mlir::spirv::Serializer::collect(llvm::SmallVectorImpl<unsigned int>&)':
Serializer.cpp:(.text._ZN4mlir5spirv10Serializer7collectERN4llvm15SmallVectorImplIjEE+0x84): undefined reference to `mlir::spirv::ModuleOp::getVceTriple()'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer7collectERN4llvm15SmallVectorImplIjEE+0x98): undefined reference to `mlir::spirv::VerCapExtAttr::getVersion()'
/usr/bin/ld: tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o: in function `mlir::spirv::Serializer::processDecorationAttr(mlir::Location, unsigned int, mlir::spirv::Decoration, mlir::Attribute)':
Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x9c): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::FPRoundingModeAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0xa4): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::FPRoundingModeAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x178): undefined reference to `mlir::spirv::stringifyDecoration(mlir::spirv::Decoration)'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x1d4): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::DecorationAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x1d8): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::DecorationAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x20c): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::LinkageAttributesAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x218): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::LinkageAttributesAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x230): undefined reference to `mlir::spirv::LinkageAttributesAttr::getLinkageName() const'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x23c): undefined reference to `mlir::spirv::LinkageAttributesAttr::getLinkageType() const'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x248): undefined reference to `mlir::spirv::LinkageTypeAttr::getValue() const'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x37c): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::FPFastMathModeAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x384): undefined reference to `mlir::detail::TypeIDResolver<mlir::spirv::FPFastMathModeAttr, void>::id'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x3ec): undefined reference to `mlir::spirv::stringifyDecoration(mlir::spirv::Decoration)'
/usr/bin/ld: Serializer.cpp:(.text._ZN4mlir5spirv10Serializer21processDecorationAttrENS_8LocationEjNS0_10DecorationENS_9AttributeE+0x48c): undefined reference to `mlir::spirv::FPFastMathModeAttr::getValue() const'
```
</details>
https://github.com/llvm/llvm-project/pull/110362
More information about the llvm-commits
mailing list