Error while building LLVM


I downloaded the LLVM-project today (12-May-2020) and tried again. The same error occurred again.

Please see below:

Scanning dependencies of target MLIRSupport

[ 74%] Linking CXX static library …/…/…/…/lib/libMLIRSupport.a

[ 74%] Built target MLIRSupport

Scanning dependencies of target obj.MLIRLoopAnalysis

[ 74%] Building CXX object tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/AffineAnalysis.cpp.o

In file included from /home/llvm-project/mlir/lib/Analysis/AffineAnalysis.cpp:16:0:

/home/llvm-project/mlir/include/mlir/Dialect/Affine/IR/AffineOps.h:366:10: fatal error: mlir/Dialect/Affine/IR/ No such file or directory

#include “mlir/Dialect/Affine/IR/”


compilation terminated.

make[2]: *** [tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/AffineAnalysis.cpp.o] Error 1

make[1]: *** [tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/all] Error 2

make: *** [all] Error 2

[root@localhost llvm-project]# ls “mlir/Dialect/Affine/IR/”

ls: cannot access mlir/Dialect/Affine/IR/ No such file or directory

[root@localhost llvm-project]# locate

[root@localhost llvm-project]#

Please suggest.



This is a missing dependency issue in MLiR CmakeLists (+Stephen)

We’re looking into it but in the meantime please try to restart the build it should get through at some point.