onnx / onnx-mlir

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

When I execute cmake, I get the following error, how to fix it? #2988

Open pyl3000 opened 1 month ago

pyl3000 commented 1 month ago

https://github.com/onnx/onnx-mlir/blob/main/docs/BuildOnWindows.md

image

FAILED: src/Accelerators/CMakeFiles/OMAccelerator.dir/Accelerator.cpp.obj D:\VisualStudio\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\cl.exe /nologo /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -ID:\onnx-mlir\llvm-project\llvm\include -ID:\onnx-mlir\llvm-project\build\include -ID:\onnx-mlir\llvm-project\mlir\include -ID:\onnx-mlir\llvm-project\build\tools\mlir\include -ID:\onnx-mlir\onnx-mlir\include -ID:\onnx-mlir\onnx-mlir -ID:\onnx-mlir\onnx-mlir\build /DWIN32 /D_WINDOWS /WX /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /Zc:preprocessor -D_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING -DSUPPRESS_THIRD_PARTY_WARNINGS /O2 /Ob2 -std:c++17 -MD -D_GLIBCXX_ASSERTIONS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -DUNICODE -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS /EHsc /GR -UNDEBUG /showIncludes /Fosrc\Accelerators\CMakeFiles\OMAccelerator.dir\Accelerator.cpp.obj /Fdsrc\Accelerators\CMakeFiles\OMAccelerator.dir\OMAccelerator.pdb /FS -c D:\onnx-mlir\onnx-mlir\src\Accelerators\Accelerator.cpp

AlexandreEichenberger commented 1 month ago

Are you working under windows? Folks at MS have not contributed to this project latetely and the CIs may have stopped working/testing for integration. We have no test machines to check out build errors. Would you be able to work under Linux?

pyl3000 commented 1 month ago

Are you working under windows? Folks at MS have not contributed to this project latetely and the CIs may have stopped working/testing for integration. We have no test machines to check out build errors. Would you be able to work under Linux?

I am using Windows. Okay, I will try using Linux.

AlexandreEichenberger commented 1 month ago

Sure, and if you have issues there, we can help you out.