[llvm-dev] Attempt to build MLIR.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] Attempt to build MLIR.

Johannes Doerfert via llvm-dev
Hello everyone,

Since MLIR landed today. I'm trying to build it using
cmake ../llvm/ -DCMAKE_BUILD_TYPE=RELEASE -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ALL_PROJECTS="clang;lld;lldb;mlir" -DBUILD_SHARED_LIBS=ON -DCLANG_DEFAULT_LINKER:STRING=lld

and also by adding -DLLVM_ALL_PROJECTS.

It's giving this compilation error --

Building CXX object tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRAnalysis.dir/AffineAnalysis.cpp.o
In file included from /home/sourabh/mirror-upstream/mlir/include/mlir/Dialect/AffineOps/AffineOps.h:22:0,
                 from /home/sourabh/mirror-upstream/mlir/lib/Analysis/AffineAnalysis.cpp:17:
/home/sourabh/mirror-upstream/mlir/include/mlir/Transforms/LoopLikeInterface.h:22:10: fatal error: mlir/Transforms/LoopLikeInterface.h.inc: No such file or directory
 #include "mlir/Transforms/LoopLikeInterface.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Am I missing something? -- some pre-requisites ?

Thanks in anticipation!
Sourabh.
compilation terminated.

_______________________________________________
LLVM Developers mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Attempt to build MLIR.

Johannes Doerfert via llvm-dev
Hi Sourabh,

This usually indicates a missing dependency in our CMakeLists.txt, if you restart the build a couple of times it will likely succeed.

I will try to fix this missing dependency today.

-- 
Mehdi


On Tue, Dec 24, 2019 at 1:37 AM Sourabh Singh Tomar <[hidden email]> wrote:
Hello everyone,

Since MLIR landed today. I'm trying to build it using
cmake ../llvm/ -DCMAKE_BUILD_TYPE=RELEASE -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ALL_PROJECTS="clang;lld;lldb;mlir" -DBUILD_SHARED_LIBS=ON -DCLANG_DEFAULT_LINKER:STRING=lld

and also by adding -DLLVM_ALL_PROJECTS.

It's giving this compilation error --

Building CXX object tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRAnalysis.dir/AffineAnalysis.cpp.o
In file included from /home/sourabh/mirror-upstream/mlir/include/mlir/Dialect/AffineOps/AffineOps.h:22:0,
                 from /home/sourabh/mirror-upstream/mlir/lib/Analysis/AffineAnalysis.cpp:17:
/home/sourabh/mirror-upstream/mlir/include/mlir/Transforms/LoopLikeInterface.h:22:10: fatal error: mlir/Transforms/LoopLikeInterface.h.inc: No such file or directory
 #include "mlir/Transforms/LoopLikeInterface.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Am I missing something? -- some pre-requisites ?

Thanks in anticipation!
Sourabh.
compilation terminated.

_______________________________________________
LLVM Developers mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Attempt to build MLIR.

Johannes Doerfert via llvm-dev
These errors seem pretty pervasive for me on a clean build.  It appears that it arises because when tablegen'd headers are included in a .h file, every place where that .h file is used needs a dependency on the corresponding IncGen targets.  This seems broken in the short term and unmaintainable in the long term.  There really needs to be a way of automatically generating the right dependencies.

Steve


On Tue, Dec 24, 2019 at 9:13 AM Mehdi Amini via llvm-dev <[hidden email]> wrote:
Hi Sourabh,

This usually indicates a missing dependency in our CMakeLists.txt, if you restart the build a couple of times it will likely succeed.

I will try to fix this missing dependency today.

-- 
Mehdi


On Tue, Dec 24, 2019 at 1:37 AM Sourabh Singh Tomar <[hidden email]> wrote:
Hello everyone,

Since MLIR landed today. I'm trying to build it using
cmake ../llvm/ -DCMAKE_BUILD_TYPE=RELEASE -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ALL_PROJECTS="clang;lld;lldb;mlir" -DBUILD_SHARED_LIBS=ON -DCLANG_DEFAULT_LINKER:STRING=lld

and also by adding -DLLVM_ALL_PROJECTS.

It's giving this compilation error --

Building CXX object tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRAnalysis.dir/AffineAnalysis.cpp.o
In file included from /home/sourabh/mirror-upstream/mlir/include/mlir/Dialect/AffineOps/AffineOps.h:22:0,
                 from /home/sourabh/mirror-upstream/mlir/lib/Analysis/AffineAnalysis.cpp:17:
/home/sourabh/mirror-upstream/mlir/include/mlir/Transforms/LoopLikeInterface.h:22:10: fatal error: mlir/Transforms/LoopLikeInterface.h.inc: No such file or directory
 #include "mlir/Transforms/LoopLikeInterface.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Am I missing something? -- some pre-requisites ?

Thanks in anticipation!
Sourabh.
compilation terminated.
_______________________________________________
LLVM Developers mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

_______________________________________________
LLVM Developers mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Attempt to build MLIR.

Johannes Doerfert via llvm-dev
Not sure, tried couple of times. Seems like while building with "-DBUILD_SHARED_LIBS=ON" causes all these problems.
However, building MLIR with this FLAG disabled -- building fine.

--Sourabh.

On Mon, Jan 13, 2020 at 11:47 AM Stephen Neuendorffer <[hidden email]> wrote:
These errors seem pretty pervasive for me on a clean build.  It appears that it arises because when tablegen'd headers are included in a .h file, every place where that .h file is used needs a dependency on the corresponding IncGen targets.  This seems broken in the short term and unmaintainable in the long term.  There really needs to be a way of automatically generating the right dependencies.

Steve


On Tue, Dec 24, 2019 at 9:13 AM Mehdi Amini via llvm-dev <[hidden email]> wrote:
Hi Sourabh,

This usually indicates a missing dependency in our CMakeLists.txt, if you restart the build a couple of times it will likely succeed.

I will try to fix this missing dependency today.

-- 
Mehdi


On Tue, Dec 24, 2019 at 1:37 AM Sourabh Singh Tomar <[hidden email]> wrote:
Hello everyone,

Since MLIR landed today. I'm trying to build it using
cmake ../llvm/ -DCMAKE_BUILD_TYPE=RELEASE -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ALL_PROJECTS="clang;lld;lldb;mlir" -DBUILD_SHARED_LIBS=ON -DCLANG_DEFAULT_LINKER:STRING=lld

and also by adding -DLLVM_ALL_PROJECTS.

It's giving this compilation error --

Building CXX object tools/mlir/lib/Analysis/CMakeFiles/obj.MLIRAnalysis.dir/AffineAnalysis.cpp.o
In file included from /home/sourabh/mirror-upstream/mlir/include/mlir/Dialect/AffineOps/AffineOps.h:22:0,
                 from /home/sourabh/mirror-upstream/mlir/lib/Analysis/AffineAnalysis.cpp:17:
/home/sourabh/mirror-upstream/mlir/include/mlir/Transforms/LoopLikeInterface.h:22:10: fatal error: mlir/Transforms/LoopLikeInterface.h.inc: No such file or directory
 #include "mlir/Transforms/LoopLikeInterface.h.inc"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Am I missing something? -- some pre-requisites ?

Thanks in anticipation!
Sourabh.
compilation terminated.
_______________________________________________
LLVM Developers mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

_______________________________________________
LLVM Developers mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev