onnx / onnx-mlir

Representation and Reference Lowering of ONNX Models in MLIR Compiler Infrastructure
Apache License 2.0
732 stars 313 forks source link

Build failing in Windows due to unexplained undefined reference #2855

Open Abhishek-TyRnT opened 1 month ago

Abhishek-TyRnT commented 1 month ago

cmake is not being to able to find ops from OnnxOps And giving the following error D:\onnx-mlir\src/Dialect/ONNX/ONNXOps/ShapeHelper.hpp(459,78): error C2039: 'ONNXMaxPoolSingleOutOp': is not a member of 'mlir' (compiling source file D:\onnx-mlir\src\Dialect\ONNX\ONNXOps\Additional\Custom.cpp) [D:\onnx-mlir \build\src\Dialect\ONNX\OMONNXOps.vcxproj] OS :- Windows 11 onnx-mlir commit :- 849a4a9c018d5a7bfcec8b6a86722a41d0e065cc llvm-commit :- c012e487b7246239c31bd378ab074fb110631186 cmake version :- cmake version 3.29.6 Visual Studio version :- 2022 protobuf version :- 3.21.12

Please help

hamptonm1 commented 1 month ago

Hello @Abhishek-TyRnT !!! Maybe we did not previously see this error given that the Window check was temporarily disabled. However, I am looking into this. Thanks for reporting :)

FYI- @AlexandreEichenberger

hamptonm1 commented 1 month ago

In the meantime, please ensure you are using the latest LLVM/ StableHLO commit.... we do upgrade every two weeks or so.