[flang-dev] Error while building LLVM

Mehdi AMINI via flang-dev flang-dev at lists.llvm.org
Mon May 11 11:50:32 PDT 2020


Hi,

This is a generated file, seems like the dependency was broken
by 5469f434bb74c41e926cc514cb326b1333fdcf07

-- 
Mehdi


On Mon, May 11, 2020 at 10:53 AM Rajesh K Singh via flang-dev <
flang-dev at lists.llvm.org> wrote:

> Hello,
>
> I have downloaded the LLVM-project today (11-May-2020) and I am trying to
> build *"mlir;clang;openmp;flang” LLVM projects using the below command:*
>
> *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/*
>
> The compilation was going well until the below error occurred:
>
> =============================================
>
> Scanning dependencies of target MLIRSupport
>
> [ 71%] Linking CXX static library ../../../../lib/libMLIRSupport.a
>
> [ 71%] Built target MLIRSupport
>
> Scanning dependencies of target obj.MLIRLoopAnalysis
>
> [ 71%] 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/AffineOpsDialect.h.inc: No such file or
> directory
>
> #include "mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc"
>
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> 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
>
> ====================
>
> When I searched the file “AffineOpsDialect.h.inc”, it could not be
> located, please see below:
>
>
>
> [root at localhost llvm-project]# ls
> mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc
>
> ls: cannot access mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc: No such
> file or directory
>
> [root at localhost llvm-project]# locate AffineOpsDialect.h.inc
>
> [root at localhost llvm-project]#
>
>
>
> Please help.
>
> Thanks in anticipation.
>
> Rajesh
> _______________________________________________
> flang-dev mailing list
> flang-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/flang-dev/attachments/20200511/3c0d498b/attachment-0001.html>


More information about the flang-dev mailing list