[flang-dev] Error while building LLVM
Rajesh K Singh via flang-dev
flang-dev at lists.llvm.org
Mon May 11 10:52:55 PDT 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/flang-dev/attachments/20200511/41882c29/attachment.html>
More information about the flang-dev
mailing list