<div dir="auto"><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><div style="width:423.158px;margin:16px 0px"><div dir="auto"><p>Hello,</p><p>I have downloaded the LLVM-project today (11-May-2020) and I am trying to build <i>"mlir;clang;openmp;flang” LLVM projects using the below command:</i><u></u><u></u></p><p><i>cmake -DLLVM_ENABLE_PROJECTS="mlir;clang;openmp;flang"  -DCMAKE_C_COMPILER=/usr/local/bin/gcc -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ -G "Unix Makefiles" -DLLVM_USE_LINKER=gold -DCMAKE_BUILD_TYPE=Release -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=_ON_ ../llvm/</i></p><p>The compilation was going well until the below error occurred:<u></u><u></u></p><p>=============================================<u></u><u></u></p><p>Scanning dependencies of target MLIRSupport<u></u><u></u></p><p>[ 71%] Linking CXX static library ../../../../lib/libMLIRSupport.a<u></u><u></u></p><p>[ 71%] Built target MLIRSupport<u></u><u></u></p><p>Scanning dependencies of target obj.MLIRLoopAnalysis<u></u><u></u></p><p>[ 71%] Building CXX object tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/AffineAnalysis.cpp.o<u></u><u></u></p><p>In file included from /home/llvm-project/mlir/lib/Analysis/AffineAnalysis.cpp:16:0:<u></u><u></u></p><p>/home/llvm-project/mlir/include/mlir/Dialect/Affine/IR/AffineOps.h:366:10: fatal error: mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc: No such file or directory<u></u><u></u></p><p>#include "mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc"<u></u><u></u></p><p>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></p><p>compilation terminated.<u></u><u></u></p><p>make[2]: *** [tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/AffineAnalysis.cpp.o] Error 1<u></u><u></u></p><p>make[1]: *** [tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/all] Error 2<u></u><u></u></p><p>make: *** [all] Error 2<u></u><u></u></p><p>====================<u></u><u></u></p><p>When I searched the file “AffineOpsDialect.h.inc”, it could not be located, please see below:<u></u><u></u></p><p><u></u> <u></u></p><p>[root@localhost llvm-project]# ls mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc<u></u><u></u></p><p>ls: cannot access mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc: No such file or directory<u></u><u></u></p><p>[root@localhost llvm-project]# locate AffineOpsDialect.h.inc<u></u><u></u></p><p>[root@localhost llvm-project]#<u></u><u></u></p><p><u></u> <u></u></p><p>Please help.<u></u><u></u></p><p>Thanks in anticipation.<u></u><u></u></p><p>Rajesh</p></div></div></div></div>