<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Yu Gothic";
        panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@Yu Gothic";
        panose-1:2 11 4 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">There was a compilation issue for flang today. This should be fixed now. Can you give it another try?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Valentin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">flang-dev <flang-dev-bounces@lists.llvm.org> on behalf of Rajesh K Singh via flang-dev <flang-dev@lists.llvm.org><br>
<b>Reply-To: </b>Rajesh K Singh <rajeshsingh.h606@gmail.com><br>
<b>Date: </b>Monday, May 11, 2020 at 1:53 PM<br>
<b>To: </b>"flang-dev@lists.llvm.org" <flang-dev@lists.llvm.org><br>
<b>Subject: </b>[EXTERNAL] [flang-dev] Error while building LLVM<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div style="margin-top:12.0pt;margin-bottom:12.0pt">
<div>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Hello,<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">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><o:p></o:p></span></p>
<p><i><span style="font-size:9.5pt;font-family:"Arial",sans-serif">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/</span></i><span style="font-size:9.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">The compilation was going well until the below error occurred:<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">=============================================<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Scanning dependencies of target MLIRSupport<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">[ 71%] Linking CXX static library ../../../../lib/libMLIRSupport.a<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">[ 71%] Built target MLIRSupport<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Scanning dependencies of target obj.MLIRLoopAnalysis<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">[ 71%] Building CXX object tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/AffineAnalysis.cpp.o<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">In file included from /home/llvm-project/mlir/lib/Analysis/AffineAnalysis.cpp:16:0:<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">/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<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">#include "mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc"<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">compilation terminated.<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">make[2]: *** [tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/AffineAnalysis.cpp.o] Error 1<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">make[1]: *** [tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRLoopAnalysis.dir/all] Error 2<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">make: *** [all] Error 2<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">====================<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">When I searched the file “AffineOpsDialect.h.inc”, it could not be located, please see below:<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif"> <o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">[root@localhost llvm-project]# ls mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">ls: cannot access mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc: No such file or directory<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">[root@localhost llvm-project]# locate AffineOpsDialect.h.inc<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">[root@localhost llvm-project]#<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif"> <o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Please help.<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Thanks in anticipation.<o:p></o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif">Rajesh<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>