[flang-dev] [EXTERNAL] Error while building LLVM
Clement, Valentin via flang-dev
flang-dev at lists.llvm.org
Mon May 11 11:32:45 PDT 2020
There was a compilation issue for flang today. This should be fixed now. Can you give it another try?
Valentin
From: flang-dev <flang-dev-bounces at lists.llvm.org> on behalf of Rajesh K Singh via flang-dev <flang-dev at lists.llvm.org>
Reply-To: Rajesh K Singh <rajeshsingh.h606 at gmail.com>
Date: Monday, May 11, 2020 at 1:53 PM
To: "flang-dev at lists.llvm.org" <flang-dev at lists.llvm.org>
Subject: [EXTERNAL] [flang-dev] Error while building LLVM
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/80852e5d/attachment.html>
More information about the flang-dev
mailing list