build issue from "Expose metadata of torch-mlir types" #1817
Closed
Description
Here is the TOM CMAKE ERROR from this patch:
torch 2.0.0.dev20230119+cpu
torchvision 0.15.0.dev20230119+cpu
torch_mlir git log
commit 2587b3f (HEAD -> main, upstream/main)
Author: Chi_Liu chi@nod.ai
Date: Thu Jan 19 21:19:00 2023 -0800
[TOSA] Add aten.Index.Tensor support (#1771)
git submodule update --init
llvm-project git log:
commit de3f0f7 (HEAD)
Author: LLVM GN Syncbot llvmgnsyncbot@gmail.com
Date: Mon Jan 9 09:00:23 2023 +0000
[gn build] Port 59b0292
Ubuntu22.04.1
clang --version
Ubuntu clang version 14.0.0-1ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
(mlir_venv) nod% cmake -GNinja -Bbuild \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DPython3_FIND_VIRTUALENV=ONLY \
-DLLVM_ENABLE_PROJECTS=mlir \
-DLLVM_EXTERNAL_PROJECTS="torch-mlir;torch-mlir-dialects" \
-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR=`pwd` \
-DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR=`pwd`/externals/llvm-external-projects/torch-mlir-dialects \
-DMLIR_ENABLE_BINDINGS_PYTHON=ON \
-DLLVM_TARGETS_TO_BUILD=host \
externals/llvm-project/llvm
cmake --build build --target tools/torch-mlir/all
-- bolt project is disabled
-- clang project is disabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- cross-project-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is enabled
-- openmp project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- torch-mlir project is enabled
-- torch-mlir-dialects project is enabled
-- Found Python3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.11.1.git.kitware.jobserver-1
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Targeting X86
-- Found Python3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
-- Found Python3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter Development.Module NumPy
-- Found python include dirs: /usr/include/python3.10
-- Found python libraries: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Found numpy v1.24.1: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/numpy/core/include
-- Checking for pybind11 in python path...
-- found (/home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/share/cmake/pybind11)
-- Found pybind11: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/include (found version "2.10.3")
-- Found pybind11 v2.10.3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/include
-- Python prefix = '', suffix = '', extension = '.cpython-310-x86_64-linux-gnu.so
-- LTC Backend build is disabled
-- Adding LLVM external project torch-mlir-dialects (TORCH_MLIR_DIALECTS) -> /home/chi/src/ubuntu20/shark/torch-mlir/externals/llvm-external-projects/torch-mlir-dialects
-- Torch-MLIR in-tree build.
-- Building MHLO as an external LLVM project
-- Building with -fPIC
-- Building StableHLO as part of another project
-- Building torch-mlir project at /home/chi/src/ubuntu20/shark/torch-mlir (into /home/chi/src/ubuntu20/shark/torch-mlir/build/tools/torch-mlir)
-- Found Python3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
-- Found Python3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter Development.Module NumPy
-- Found python include dirs: /usr/include/python3.10
-- Found python libraries: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Found numpy v1.24.1: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/numpy/core/include
-- Checking for pybind11 in python path...
-- found (/home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/share/cmake/pybind11)
-- Found pybind11: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/include (found version "2.10.3")
-- Found pybind11 v2.10.3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/include
-- Python prefix = '', suffix = '', extension = '.cpython-310-x86_64-linux-gnu.so
-- Using cached Torch root = /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/torch/share/cmake
-- Checking PyTorch ABI settings...
-- PyTorch C++ Dual ABI setting: "0"
-- PyTorch C++ ABI version: "11"
CMake Warning at /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
/home/chi/src/ubuntu20/shark/torch-mlir/python/torch_mlir/csrc/reference_lazy_backend/CMakeLists.txt:15 (find_package)
-- Found Python3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
-- Found Python3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter Development.Module NumPy
-- Found python include dirs: /usr/include/python3.10
-- Found python libraries: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Found numpy v1.24.1: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/numpy/core/include
-- Using explicit pybind11 cmake directory: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/share/cmake/pybind11 (-Dpybind11_DIR to change)
-- Found pybind11 v2.10.3: /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/pybind11/include
-- Python prefix = '', suffix = '', extension = '.cpython-310-x86_64-linux-gnu.so
-- Using cached Torch root = /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/torch/share/cmake
-- Checking PyTorch ABI settings...
-- PyTorch C++ Dual ABI setting: "0"
-- PyTorch C++ ABI version: "11"
CMake Warning at /home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/chi/src/ubuntu20/shark/torch-mlir/mlir_venv/lib/python3.10/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
/home/chi/src/ubuntu20/shark/torch-mlir/python/torch_mlir/dialects/torch/importer/jit_ir/CMakeLists.txt:15 (find_package)
-- libtorch_python CXXFLAGS is ...-D_GLIBCXX_USE_CXX11_ABI=0 -U__GXX_ABI_VERSION -D__GXX_ABI_VERSION=1011 '-DPYBIND11_COMPILER_TYPE="_gcc"'
-- TORCH_CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 -U__GXX_ABI_VERSION -D__GXX_ABI_VERSION=1011 '-DPYBIND11_COMPILER_TYPE="_gcc"'
-- TORCH_CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 -U__GXX_ABI_VERSION -D__GXX_ABI_VERSION=1011 '-DPYBIND11_COMPILER_TYPE="_gcc"'
-- Building torch-mlir-dialects project at /home/chi/src/ubuntu20/shark/torch-mlir/externals/llvm-external-projects/torch-mlir-dialects (into /home/chi/src/ubuntu20/shark/torch-mlir/build/tools/torch-mlir-dialects)
-- torch-mlir-dialect is being built in-tree
-- Registering Bye as a pass plugin (static build: OFF)
-- Failed to find LLVM FileCheck
-- git version: v0.0.0 normalized to 0.0.0
-- Version: 1.6.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chi/src/ubuntu20/shark/torch-mlir/build
[140/158] Linking CXX executable bin/torch-mlir-capi-torch-test
FAILED: bin/torch-mlir-capi-torch-test
: && /usr/lib/ccache/clang++ -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 -g -Wl,-rpath-link,/home/chi/src/ubuntu20/shark/torch-mlir/build/./lib tools/torch-mlir/test/CAPI/CMakeFiles/torch-mlir-capi-torch-test.dir/torch.c.o -o bin/torch-mlir-capi-torch-test -Wl,-rpath,"\$ORIGIN/../lib" lib/libMLIRCAPIIR.a lib/libMLIRCAPIRegisterEverything.a lib/libTorchMLIRCAPI.a lib/libMLIRCAPIIR.a lib/libMLIRBytecodeWriter.a lib/libMLIRAffineTransformOps.a lib/libMLIRAffineTransforms.a lib/libMLIRAsyncTransforms.a lib/libMLIRBufferizationTransformOps.a lib/libMLIRGPUTransformOps.a lib/libMLIRLinalgTransformOps.a lib/libMLIRMemRefTransformOps.a lib/libMLIRMemRefUtils.a lib/libMLIRMLProgramDialect.a lib/libMLIRNVGPUTransforms.a lib/libMLIRSCFTransformOps.a lib/libMLIRShapeOpsTransforms.a lib/libMLIRSparseTensorPipelines.a lib/libMLIRSparseTensorTransforms.a lib/libMLIRSparseTensorUtils.a lib/libMLIRSPIRVModuleCombiner.a lib/libMLIRSPIRVTransforms.a lib/libMLIRTensorInferTypeOpInterfaceImpl.a lib/libMLIRTransformDialectTransforms.a lib/libMLIRVectorTransformOps.a lib/libMLIRTransformDialect.a lib/libMLIRTransformDialectUtils.a lib/libMLIRTargetCpp.a lib/libMLIREmitCDialect.a lib/libMLIRSPIRVTranslateRegistration.a lib/libMLIRSPIRVDeserialization.a lib/libMLIRToLLVMIRTranslationRegistration.a lib/libMLIRArmNeonToLLVMIRTranslation.a lib/libMLIRArmSVEToLLVMIRTranslation.a lib/libMLIRAMXToLLVMIRTranslation.a lib/libMLIRNVVMToLLVMIRTranslation.a lib/libMLIROpenACCToLLVMIRTranslation.a lib/libMLIROpenMPToLLVMIRTranslation.a lib/libMLIRROCDLToLLVMIRTranslation.a lib/libMLIRX86VectorToLLVMIRTranslation.a lib/libMLIRFromLLVMIRTranslationRegistration.a lib/libMLIRLLVMIRToLLVMTranslation.a lib/libMLIRTargetLLVMIRImport.a lib/libMLIRArmNeon2dToIntr.a lib/libMLIRBufferizationToMemRef.a lib/libMLIRComplexToLLVM.a lib/libMLIRComplexToLibm.a lib/libMLIRComplexToStandard.a lib/libMLIRControlFlowToSPIRV.a lib/libMLIRGPUToNVVMTransforms.a lib/libMLIRGPUToROCDLTransforms.a lib/libMLIRAMDGPUToROCDL.a lib/libMLIRAMDGPUDialect.a lib/libMLIRROCDLDialect.a lib/libMLIRGPUToGPURuntimeTransforms.a lib/libMLIRAsyncToLLVM.a lib/libMLIRGPUToSPIRV.a lib/libMLIRGPUToVulkanTransforms.a lib/libMLIRSPIRVSerialization.a lib/libMLIRSPIRVBinaryUtils.a lib/libMLIRIndexToLLVM.a lib/libMLIRIndexDialect.a lib/libMLIRLinalgToLLVM.a lib/libMLIRLinalgToStandard.a lib/libMLIRMathToFuncs.a lib/libMLIRMathToLibm.a lib/libMLIRMathToLLVM.a lib/libMLIRMathToSPIRV.a lib/libMLIRNVGPUToNVVM.a lib/libMLIROpenACCToLLVM.a lib/libMLIROpenACCToSCF.a lib/libMLIROpenACCDialect.a lib/libMLIROpenMPToLLVM.a lib/libMLIRReconcileUnrealizedCasts.a lib/libMLIRSCFToControlFlow.a lib/libMLIRSCFToGPU.a lib/libMLIRGPUTransforms.a lib/libMLIRAsyncDialect.a lib/libMLIRLLVMToLLVMIRTranslation.a lib/libMLIRExecutionEngineUtils.a lib/libLLVMPasses.a lib/libLLVMCoroutines.a lib/libLLVMipo.a lib/libLLVMVectorize.a lib/libLLVMLinker.a lib/libLLVMInstrumentation.a lib/libLLVMCodeGen.a lib/libLLVMIRPrinter.a lib/libLLVMObjCARCOpts.a lib/libLLVMTarget.a lib/libMLIRAffineToStandard.a lib/libMLIRSCFToOpenMP.a lib/libMLIROpenMPDialect.a lib/libMLIRSCFToSPIRV.a lib/libMLIRMemRefToSPIRV.a lib/libMLIRShapeToStandard.a lib/libMLIRSPIRVToLLVM.a lib/libMLIRSPIRVUtils.a lib/libMLIRMemRefToLLVM.a lib/libMLIRTensorToLinalg.a lib/libMLIRTensorToSPIRV.a lib/libMLIRArithToSPIRV.a lib/libMLIRFuncToSPIRV.a lib/libMLIRTosaToArith.a lib/libMLIRTosaToLinalg.a lib/libMLIRTosaToSCF.a lib/libMLIRTosaToTensor.a lib/libMLIRTosaTransforms.a lib/libMLIRVectorToLLVM.a lib/libMLIRArmNeonDialect.a lib/libMLIRArmSVETransforms.a lib/libMLIRArmSVEDialect.a lib/libMLIRAMXTransforms.a lib/libMLIRAMXDialect.a lib/libMLIRTargetLLVMIRExport.a lib/libMLIRLLVMIRTransforms.a lib/libMLIRTranslateLib.a lib/libLLVMFrontendOpenMP.a lib/libLLVMScalarOpts.a lib/libLLVMAggressiveInstCombine.a lib/libLLVMInstCombine.a lib/libLLVMTransformUtils.a lib/libMLIRVectorToGPU.a lib/libMLIRNVGPUUtils.a lib/libMLIRNVVMDialect.a lib/libMLIRNVGPUDialect.a lib/libMLIRVectorToSPIRV.a lib/libMLIRSPIRVConversion.a lib/libMLIRSPIRVDialect.a lib/libMLIRCAPITransforms.a lib/libTorchMLIRInitAll.a lib/libTorchMLIRTorchConversionPasses.a lib/libChloPasses.a lib/libTorchMLIRTMTensorPasses.a lib/libTorchMLIRConversionPasses.a lib/libTorchMLIRTorchToLinalg.a lib/libTorchMLIRTorchToTMTensor.a lib/libTorchMLIRTMTensorDialect.a lib/libTorchMLIRTorchToArith.a lib/libTorchMLIRTorchToSCF.a lib/libTorchMLIRTorchConversionDialect.a lib/libTorchMLIRTorchConversionToMLProgram.a lib/libTorchMLIRTorchToTosa.a lib/libMLIRTosaDialect.a lib/libMLIRQuantUtils.a lib/libMhloPasses.a lib/libMhloAnalysis.a lib/libMhloScatterUtils.a lib/libTorchMLIRTorchToMhlo.a lib/libTorchMLIRConversionUtils.a lib/libMhloToLinalg.a lib/libMLIRLinalgTransforms.a lib/libMLIRLinalgAnalysis.a lib/libMLIRMemRefTransforms.a lib/libMLIRArithTransforms.a lib/libMLIRSCFTransforms.a lib/libMLIRSCFUtils.a lib/libMLIRTensorTilingInterfaceImpl.a lib/libMLIRTensorTransforms.a lib/libMLIRX86VectorTransforms.a lib/libMLIRFuncToLLVM.a lib/libMLIRArithToLLVM.a lib/libMLIRArithAttrToLLVMConversion.a lib/libMLIRControlFlowToLLVM.a lib/libMLIRLLVMCommonConversion.a lib/libMLIRVectorToSCF.a lib/libMLIRVectorTransforms.a lib/libHloToLinalgUtils.a lib/libMLIRLinalgUtils.a lib/libMLIRAffineUtils.a lib/libMLIRLinalgDialect.a lib/libMLIRParser.a lib/libMLIRBytecodeReader.a lib/libMLIRAsmParser.a lib/libMLIRTilingInterface.a lib/libMLIRTensorUtils.a lib/libLmhloDialect.a lib/libLmhloStructuredInterface.a lib/libMhloToArithmeticConversion.a lib/libMhloTypeConversion.a lib/libMLIRFuncTransforms.a lib/libMLIRBufferizationTransforms.a lib/libMLIRBufferTransforms.a lib/libMLIRGPUOps.a lib/libMLIRDLTIDialect.a lib/libMhloDialect.a lib/libMLIRMhloUtils.a lib/libChloOps.a lib/libStablehloBroadcastUtils.a lib/libHloOpsCommon.a lib/libMLIRHLOAnalysis.a lib/libThloBufferizableOpInterface.a lib/libTHLODialect.a lib/libGmlStDialect.a lib/libStablehloOps.a lib/libStablehloTypeInference.a lib/libStablehloAssemblyFormat.a lib/libStablehloBase.a lib/libMLIRQuantDialect.a lib/libMLIRShapeDialect.a lib/libTorchMLIRRefBackend.a lib/libMLIRMathTransforms.a lib/libMLIRMathDialect.a lib/libMLIRVectorUtils.a lib/libMLIRAffineAnalysis.a lib/libMLIRSCFDialect.a lib/libMLIRBufferizationDialect.a lib/libMLIRSparseTensorDialect.a lib/libMLIRPresburger.a lib/libMLIRVectorDialect.a lib/libMLIRTensorDialect.a lib/libMLIRAffineDialect.a lib/libMLIRMemRefDialect.a lib/libMLIRComplexDialect.a lib/libMLIRShapedOpInterfaces.a lib/libMLIRCastInterfaces.a lib/libMLIRParallelCombiningOpInterface.a lib/libMLIRDestinationStyleOpInterface.a lib/libMLIRMaskableOpInterface.a lib/libMLIRMaskingOpInterface.a lib/libMLIRVectorInterfaces.a lib/libMLIRX86VectorDialect.a lib/libMLIRLLVMDialect.a lib/libLLVMBitWriter.a lib/libLLVMAnalysis.a lib/libLLVMProfileData.a lib/libLLVMSymbolize.a lib/libLLVMDebugInfoPDB.a lib/libLLVMDebugInfoMSF.a lib/libLLVMDebugInfoDWARF.a lib/libLLVMObject.a lib/libLLVMIRReader.a lib/libLLVMAsmParser.a lib/libLLVMBitReader.a lib/libLLVMMCParser.a lib/libLLVMMC.a lib/libLLVMDebugInfoCodeView.a lib/libLLVMTextAPI.a lib/libMLIRDialectUtils.a lib/libMLIRArithUtils.a lib/libTorchMLIRTorchPasses.a lib/libTorchMLIRTorchDialect.a lib/libMLIRFuncDialect.a lib/libMLIRControlFlowDialect.a lib/libMLIRArithDialect.a lib/libMLIRDialect.a lib/libMLIRTransforms.a lib/libMLIRTransformUtils.a lib/libMLIRRewrite.a lib/libMLIRPDLToPDLInterp.a lib/libMLIRPass.a lib/libMLIRAnalysis.a lib/libMLIRCallInterfaces.a lib/libMLIRControlFlowInterfaces.a lib/libMLIRLoopLikeInterface.a lib/libMLIRViewLikeInterface.a lib/libMLIRInferIntRangeInterface.a lib/libMLIRDataLayoutInterfaces.a lib/libMLIRPDLInterpDialect.a lib/libMLIRPDLDialect.a lib/libMLIRInferTypeOpInterface.a lib/libMLIRSideEffectInterfaces.a lib/libMLIRCopyOpInterface.a lib/libMLIRRuntimeVerifiableOpInterface.a lib/libMLIRIR.a lib/libMLIRSupport.a lib/libTorchMLIRTorchUtils.a lib/libLLVMCore.a lib/libLLVMBinaryFormat.a lib/libLLVMTargetParser.a lib/libLLVMRemarks.a lib/libLLVMBitstreamReader.a lib/libLLVMSupport.a -lrt -ldl -lm /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtinfo.so lib/libLLVMDemangle.a && :
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
lib/libTorchMLIRTorchConversionPasses.a(Passes.cpp.o): in function `mlir::torch::TorchConversion::createTorchBackendToTosaBackendPipeline(mlir::OpPassManager&)':
Passes.cpp:(.text+0x502): undefined reference to `mlir::tosa::createTosaMakeBroadcastablePass()'
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::detail::TypeIDResolver<mlir::ml_program::MLProgramDialect, void>::resolveTypeID()':
TorchConversionToMLProgram.cpp:(.text._ZN4mlir6detail14TypeIDResolverINS_10ml_program16MLProgramDialectEvE13resolveTypeIDEv[_ZN4mlir6detail14TypeIDResolverINS_10ml_program16MLProgramDialectEvE13resolveTypeIDEv]+0xb): undefined reference to `mlir::detail::TypeIDResolver<mlir::ml_program::MLProgramDialect, void>::id'
/usr/bin/ld: lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::MLIRContext::getOrLoadDialect<mlir::ml_program::MLProgramDialect>()::{lambda()#1}::operator()() const':
TorchConversionToMLProgram.cpp:(.text._ZZN4mlir11MLIRContext16getOrLoadDialectINS_10ml_program16MLProgramDialectEEEPT_vENKUlvE_clEv[_ZZN4mlir11MLIRContext16getOrLoadDialectINS_10ml_program16MLProgramDialectEEEPT_vENKUlvE_clEv]+0x3c): undefined reference to `mlir::ml_program::MLProgramDialect::MLProgramDialect(mlir::MLIRContext*)'
/usr/bin/ld: lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::ml_program::GlobalOp mlir::OpBuilder::create<mlir::ml_program::GlobalOp, llvm::StringRef, mlir::RankedTensorType&, bool, mlir::DenseIntElementsAttr, mlir::StringAttr>(mlir::Location, llvm::StringRef&&, mlir::RankedTensorType&, bool&&, mlir::DenseIntElementsAttr&&, mlir::StringAttr&&)':
TorchConversionToMLProgram.cpp:(.text._ZN4mlir9OpBuilder6createINS_10ml_program8GlobalOpEJN4llvm9StringRefERNS_16RankedTensorTypeEbNS_20DenseIntElementsAttrENS_10StringAttrEEEET_NS_8LocationEDpOT0_[_ZN4mlir9OpBuilder6createINS_10ml_program8GlobalOpEJN4llvm9StringRefERNS_16RankedTensorTypeEbNS_20DenseIntElementsAttrENS_10StringAttrEEEET_NS_8LocationEDpOT0_]+0x136): undefined reference to `mlir::ml_program::GlobalOp::build(mlir::OpBuilder&, mlir::OperationState&, llvm::StringRef, mlir::Type, bool, mlir::Attribute, mlir::StringAttr)'
/usr/bin/ld: lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::detail::TypeIDResolver<mlir::ml_program::GlobalOp, void>::resolveTypeID()':
TorchConversionToMLProgram.cpp:(.text._ZN4mlir6detail14TypeIDResolverINS_10ml_program8GlobalOpEvE13resolveTypeIDEv[_ZN4mlir6detail14TypeIDResolverINS_10ml_program8GlobalOpEvE13resolveTypeIDEv]+0xb): undefined reference to `mlir::detail::TypeIDResolver<mlir::ml_program::GlobalOp, void>::id'
/usr/bin/ld: lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::ml_program::GlobalLoadOp mlir::OpBuilder::create<mlir::ml_program::GlobalLoadOp, mlir::RankedTensorType&, mlir::FlatSymbolRefAttr>(mlir::Location, mlir::RankedTensorType&, mlir::FlatSymbolRefAttr&&)':
TorchConversionToMLProgram.cpp:(.text._ZN4mlir9OpBuilder6createINS_10ml_program12GlobalLoadOpEJRNS_16RankedTensorTypeENS_17FlatSymbolRefAttrEEEET_NS_8LocationEDpOT0_[_ZN4mlir9OpBuilder6createINS_10ml_program12GlobalLoadOpEJRNS_16RankedTensorTypeENS_17FlatSymbolRefAttrEEEET_NS_8LocationEDpOT0_]+0xbb): undefined reference to `mlir::ml_program::GlobalLoadOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Type, mlir::SymbolRefAttr)'
/usr/bin/ld: lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::ml_program::GlobalStoreOp mlir::OpBuilder::create<mlir::ml_program::GlobalStoreOp, mlir::FlatSymbolRefAttr, mlir::Value&>(mlir::Location, mlir::FlatSymbolRefAttr&&, mlir::Value&)':
TorchConversionToMLProgram.cpp:(.text._ZN4mlir9OpBuilder6createINS_10ml_program13GlobalStoreOpEJNS_17FlatSymbolRefAttrERNS_5ValueEEEET_NS_8LocationEDpOT0_[_ZN4mlir9OpBuilder6createINS_10ml_program13GlobalStoreOpEJNS_17FlatSymbolRefAttrERNS_5ValueEEEET_NS_8LocationEDpOT0_]+0xbb): undefined reference to `mlir::ml_program::GlobalStoreOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::SymbolRefAttr, mlir::Value)'
/usr/bin/ld: lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::detail::TypeIDResolver<mlir::ml_program::GlobalLoadOp, void>::resolveTypeID()':
TorchConversionToMLProgram.cpp:(.text._ZN4mlir6detail14TypeIDResolverINS_10ml_program12GlobalLoadOpEvE13resolveTypeIDEv[_ZN4mlir6detail14TypeIDResolverINS_10ml_program12GlobalLoadOpEvE13resolveTypeIDEv]+0xb): undefined reference to `mlir::detail::TypeIDResolver<mlir::ml_program::GlobalLoadOp, void>::id'
/usr/bin/ld: lib/libTorchMLIRTorchConversionToMLProgram.a(TorchConversionToMLProgram.cpp.o): in function `mlir::detail::TypeIDResolver<mlir::ml_program::GlobalStoreOp, void>::resolveTypeID()':
TorchConversionToMLProgram.cpp:(.text._ZN4mlir6detail14TypeIDResolverINS_10ml_program13GlobalStoreOpEvE13resolveTypeIDEv[_ZN4mlir6detail14TypeIDResolverINS_10ml_program13GlobalStoreOpEvE13resolveTypeIDEv]+0xb): undefined reference to `mlir::detail::TypeIDResolver<mlir::ml_program::GlobalStoreOp, void>::id'
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
lib/libTorchMLIRRefBackend.a(RefBackend.cpp.o): in function `(anonymous namespace)::MLProgramBufferize::runOnOperation()::{lambda(mlir::ml_program::GlobalOp)#1}::operator()(mlir::ml_program::GlobalOp) const':
RefBackend.cpp:(.text+0x49a3): undefined reference to `mlir::ml_program::GlobalOp::getType()'
/usr/bin/ld: lib/libTorchMLIRRefBackend.a(RefBackend.cpp.o): in function `bufferizeMLProgramGlobalOp(mlir::ml_program::GlobalOp, mlir::OpBuilder&)':
RefBackend.cpp:(.text+0x4b78): undefined reference to `mlir::ml_program::GlobalOp::getValue()'
/usr/bin/ld: RefBackend.cpp:(.text+0x4bff): undefined reference to `mlir::ml_program::GlobalOp::getType()'
/usr/bin/ld: RefBackend.cpp:(.text+0x4d3f): undefined reference to `mlir::ml_program::GlobalOp::getSymName()'
/usr/bin/ld: RefBackend.cpp:(.text+0x4d59): undefined reference to `mlir::ml_program::GlobalOp::getSymVisibilityAttr()'
/usr/bin/ld: RefBackend.cpp:(.text+0x4d6c): undefined reference to `mlir::ml_program::GlobalOp::getValue()'
/usr/bin/ld: RefBackend.cpp:(.text+0x4d98): undefined reference to `mlir::ml_program::GlobalOp::getIsMutable()'
/usr/bin/ld: lib/libTorchMLIRRefBackend.a(RefBackend.cpp.o): in function `bufferizeMLProgramGlobaLoadOp(mlir::ml_program::GlobalLoadOp, mlir::OpBuilder&, llvm::SmallVector<mlir::Operation*, 6u>&)':
RefBackend.cpp:(.text+0x5142): undefined reference to `mlir::ml_program::GlobalLoadOp::getGlobalAttr()'
/usr/bin/ld: lib/libTorchMLIRRefBackend.a(RefBackend.cpp.o): in function `bufferizeMLProgramGlobaStoreOp(mlir::ml_program::GlobalStoreOp, mlir::OpBuilder&, llvm::SmallVector<mlir::Operation*, 6u>&)':
RefBackend.cpp:(.text+0x549c): undefined reference to `mlir::ml_program::GlobalStoreOp::getValue()'
/usr/bin/ld: RefBackend.cpp:(.text+0x5572): undefined reference to `mlir::ml_program::GlobalStoreOp::getGlobalAttr()'
/usr/bin/ld: RefBackend.cpp:(.text+0x55e7): undefined reference to `mlir::ml_program::GlobalStoreOp::getValue()'
/usr/bin/ld: lib/libTorchMLIRRefBackend.a(RefBackend.cpp.o): in function `mlir::linalg::GeneralizePadOpPattern::GeneralizePadOpPattern(mlir::MLIRContext*, std::function<mlir::LogicalResult (mlir::PatternRewriter&, mlir::tensor::PadOp, mlir::Value)>, mlir::PatternBenefit)':
RefBackend.cpp:(.text._ZN4mlir6linalg22GeneralizePadOpPatternC2EPNS_11MLIRContextESt8functionIFNS_13LogicalResultERNS_15PatternRewriterENS_6tensor5PadOpENS_5ValueEEENS_14PatternBenefitE[_ZN4mlir6linalg22GeneralizePadOpPatternC2EPNS_11MLIRContextESt8functionIFNS_13LogicalResultERNS_15PatternRewriterENS_6tensor5PadOpENS_5ValueEEENS_14PatternBenefitE]+0x77): undefined reference to `vtable for mlir::linalg::GeneralizePadOpPattern'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Metadata
Assignees
Labels
No labels