I am completely new to LLVM or MLIR world. I was trying to build the llvm-project using the standard instruction from here (Getting started with MLIR).
But if I use use ninja -j$(nproc) instead of cmake --build . --target check-mlir, it works perfectly. Could anyone please tell me why is this happening? And what actually this --target check-mlir does? I beg your pardon in advance for such naive question.
Following infos might help you to understand the problem
This works! Thanks @PeimingLiu
But another build issue arrives, and build is failing
mlir/unittests/Support/MathExtrasTest.cpp:10:10: fatal error: 'gmock/gmock.h' file not found
#include "gmock/gmock.h"
Any idea on this one?
And another question, for starting with MLIR, do I really need to use this unit tests while it is building?
My goal is to first work with the Toy example, then start to explore how to write dialects. And then writing my own transformations targeting HWs (e.g. HLS for Xilinx, CUDA for GPU).
Though I have a question. In your given cmake configuration, I am not seeing any cmake test configs are written. So does that mean, for a out-of-tree MLIR dev, I donot have to include these test configs?
And finally, this was my very first topics to this platform. I am really grateful that I have got such quick reply from @PeimingLiu and from a legend like you.
I cannot set both of your answers as solution, So I choose final one from @mehdi_amini .
@PeimingLiu , I choose the last one, so that if a new comer arrives, and face similar problem, they can go through the whole discussion, and find the complete answer. So I beg your pardon, not for choosing your one.