[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:03:20 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `mlir-nvidia` running on `mlir-nvidia` while building `llvm,mlir` at step 5 "build-check-mlir-build-only".

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

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

```
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
19.154 [1323/16/3655] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/Protocol.cpp.o
19.159 [1322/16/3656] Building CXX object tools/mlir/lib/Tools/mlir-opt/CMakeFiles/obj.MLIROptLib.dir/MlirOptMain.cpp.o
19.160 [1321/16/3657] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/MlirPdllLspServerMain.cpp.o
19.163 [1320/16/3658] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/PDLLServer.cpp.o
19.180 [1319/16/3659] Linking CXX shared library lib/libMLIRPDLToPDLInterp.so.20.0git
19.184 [1318/16/3660] Building CXX object tools/mlir/lib/Tools/mlir-pdll-lsp-server/CMakeFiles/MLIRPdllLspServerLib.dir/LSPServer.cpp.o
19.189 [1317/16/3661] Creating library symlink lib/libMLIRPDLToPDLInterp.so
19.193 [1316/16/3662] Building CXX object tools/mlir/lib/Tools/mlir-reduce/CMakeFiles/obj.MLIRReduceLib.dir/MlirReduceMain.cpp.o
19.195 [1315/16/3663] Building CXX object tools/mlir/lib/Tools/mlir-query/CMakeFiles/obj.MLIRQueryLib.dir/MlirQueryMain.cpp.o
19.207 [1314/16/3664] Linking CXX shared library lib/libMLIRSPIRVSerialization.so.20.0git
FAILED: lib/libMLIRSPIRVSerialization.so.20.0git 
: && /usr/bin/clang++ -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 -fuse-ld=lld -Wl,--color-diagnostics   -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:/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/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,/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/lib && :
ld.lld: error: undefined symbol: mlir::spirv::ModuleOp::getVceTriple()
>>> referenced by Serialization.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serialization.cpp.o:(mlir::spirv::serialize(mlir::spirv::ModuleOp, llvm::SmallVectorImpl<unsigned int>&, mlir::spirv::SerializationOptions const&))
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::processCapability())
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::processExtension())
>>> referenced 1 more times

ld.lld: error: undefined symbol: mlir::spirv::ModuleOp::verifyInvariants()
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::serialize())
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::serialize())

ld.lld: error: undefined symbol: mlir::spirv::VerCapExtAttr::getCapabilities()
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::processCapability())

ld.lld: error: undefined symbol: mlir::spirv::VerCapExtAttr::getExtensions()
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::processExtension())

ld.lld: error: undefined symbol: mlir::spirv::stringifyExtension(mlir::spirv::Extension)
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::processExtension())

ld.lld: error: undefined symbol: mlir::detail::TypeIDResolver<mlir::spirv::MemoryModelAttr, void>::id
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::processMemoryModel())

ld.lld: error: undefined symbol: mlir::spirv::MemoryModelAttr::getValue() const
>>> referenced by Serializer.cpp
>>>               tools/mlir/lib/Target/SPIRV/Serialization/CMakeFiles/obj.MLIRSPIRVSerialization.dir/Serializer.cpp.o:(mlir::spirv::Serializer::processMemoryModel())

ld.lld: error: undefined symbol: mlir::detail::TypeIDResolver<mlir::spirv::AddressingModelAttr, void>::id
>>> referenced by Serializer.cpp

```

</details>

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


More information about the llvm-commits mailing list