onnx-mlir icon indicating copy to clipboard operation
onnx-mlir copied to clipboard

library machine type 'x86' conflicts with target machine type 'x64'

Open sazzad15-1779 opened this issue 2 years ago • 2 comments

i want to build onnx mlir from source on windows x64 . i was following windows build readme of onnx-mlir. Protobuf and LLVM-Project build part are correctly done but when i run "call cmake --build . --config Release --target onnx-mlir" then get warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64' and got some error. how do i solve this problem ? thanks in advance.

sazzad15-1779 avatar Apr 04 '22 09:04 sazzad15-1779

@sstamenova any suggestions for @sazzad15-1779 ?

AlexandreEichenberger avatar Apr 04 '22 18:04 AlexandreEichenberger

Can you share how you are invoking each of the build steps? Or the lines from the log that show where the error is?

This error generally means that you built one of the packages for x86 while another for x64 or that you don't have the correct versions of libraries installed. Since we don't have the part of your log which would tell us which libraries are conflicting, we can't tell where the mismatch is.

sstamenova avatar Apr 05 '22 16:04 sstamenova