Vermeersch, Aaron via llvm-dev
2021-Jan-12 19:52 UTC
[llvm-dev] Build Error from mlir-capi-ir-test
Hello, I'm having an issue installing LLVM and Flang on a SGI and Cray machine and both are giving me the same error. This is using the latest version from GitHub that I just downloaded. I use the following for the cmake instruction: cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=flang -DCMAKE_INSTALL_PREFIX=install_prefix -DCMAKE_CXX_COMPILER=pathway_to_g++ -DCMAKE_C_COMPILER=pathway_to_gcc ../llvm The installation crashes with the following message: Scanning dependencies of target mlir-capi-ir-test [ 78%] Building C object tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/ir.c.o [ 78%] Linking C executable ../../../../bin/mlir-capi-ir-test CMakeFiles/mlir-capi-ir-test.dir/ir.c.o: In function `printAffineExpr': /llvm-project/mlir/test/CAPI/ir.c:1272: undefined reference to `mlirAffineExprIsNull' collect2: error: ld returned 1 exit status make[2]: *** [bin/mlir-capi-ir-test] Error 1 make[1]: *** [tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/all] Error 2 make: *** [all] Error 2 In a previous build, I was able to use: cmake --build . --target check-mlir Following the instructions here: https://github.com/tensorflow/mlir/issues/138 to fix a similar issue but it hasn't been successful this time. Does anyone know what might be happening and how to fix the issue? Aaron Vermeersch HPC Computational Scientist -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210112/a2ed1684/attachment-0001.html>
Mehdi AMINI via llvm-dev
2021-Jan-12 21:34 UTC
[llvm-dev] Build Error from mlir-capi-ir-test
Hi, It seems like you were unlucky and checked out a buggy revision: this was a known bug a couple of days ago. Please git pull and try again, let us know if you have any issues! Also MLIR folks communicate mainly here: https://llvm.discourse.group/c/mlir/31 Best, -- Mehdi -- Mehdi On Tue, Jan 12, 2021 at 1:29 PM Vermeersch, Aaron via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello, > > I'm having an issue installing LLVM and Flang on a SGI and Cray machine > and both are giving me the same error. This is using the latest version > from GitHub that I just downloaded. I use the following for the cmake > instruction: > > cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=flang > -DCMAKE_INSTALL_PREFIX=install_prefix -DCMAKE_CXX_COMPILER=pathway_to_g++ > -DCMAKE_C_COMPILER=pathway_to_gcc ../llvm > > The installation crashes with the following message: > > *Scanning dependencies of target mlir-capi-ir-test* > > [ 78%] Building C object > tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/ir.c.o > > [ 78%] *Linking C executable ../../../../bin/mlir-capi-ir-test* > > CMakeFiles/mlir-capi-ir-test.dir/ir.c.o: In function `printAffineExpr': > > /llvm-project/mlir/test/CAPI/ir.c:1272: undefined reference to > `mlirAffineExprIsNull' > > collect2: error: ld returned 1 exit status > > make[2]: *** [bin/mlir-capi-ir-test] Error 1 > > make[1]: *** [tools/mlir/test/CAPI/CMakeFiles/mlir-capi-ir-test.dir/all] > Error 2 > > make: *** [all] Error 2 > > In a previous build, I was able to use: > > cmake --build . --target check-mlir > > Following the instructions here: > https://github.com/tensorflow/mlir/issues/138 to fix a similar issue but > it hasn't been successful this time. Does anyone know what might be > happening and how to fix the issue? > > Aaron Vermeersch > > HPC Computational Scientist > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210112/58079c7b/attachment.html>