kumasento / polymer

Bridging polyhedral analysis tools to the MLIR framework
MIT License
99 stars 20 forks source link

Building the project. #39

Closed chelini closed 2 years ago

chelini commented 3 years ago

Hi, probably the Pluto submodule is broken as I am not able to clone it. Should I use the Pluto official repo?

kumasento commented 3 years ago

Thank you for pointing this out! Sorry I forgot to update my Pluto fork. It should work fine now. Maybe you could try it out again? Thanks!

And in terms of building Pluto it should be integrated in my CMake build pipeline. So once you successfully cloned all the submodules this project should be able to be built.

I should update the docs sometime later.

chelini commented 3 years ago

Thank you for pointing this out! Sorry I forgot to update my Pluto fork. It should work fine now. Maybe you could try it out again? Thanks!

And in terms of building Pluto it should be integrated in my CMake build pipeline. So once you successfully cloned all the submodules this project should be able to be built.

I should update the docs sometime later.

Hi, I tried again this morning. There are still two issues:

libtool: warning: relinking 'libpet.la'
libtool: install: (cd /home/lchelini/mlir-polyhedral/pluto/pet; /bin/bash "/home/lchelini/mlir-polyhedral/pluto/pet/libtool"  --silent --tag CXX --mode=relink g++ -I. -I./include -I/usr/local/include -std=c++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/lchelini/mlir-polyhedral/pluto/isl/include -I/home/lchelini/mlir-polyhedral/pluto/isl/include -fno-rtti -version-info 10:3:0 -L/usr/local/lib -o libpet.la -rpath /home/lchelini/mlir-polyhedral/build/pluto/lib aff.lo array.lo clang.lo context.lo expr.lo expr_arg.lo expr_plus.lo filter.lo id.lo inlined_calls.lo inliner.lo isl_id_to_pet_expr.lo killed_locals.lo loc.lo nest.lo options.lo patch.lo pet_expr_to_isl_pw_aff.lo print.lo tree.lo tree2scop.lo scan.lo scop.lo scop_plus.lo skip.lo substituter.lo summary.lo value_bounds.lo version.lo pet.lo -lclangFrontend -lclangParse -lclangSema -lclangEdit -lclangAnalysis -lclangAST -lclangLex -lclangBasic -lclangDriver -lclangSerialization -lLLVMOption -lLLVMAsmParser -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMGlobalISel -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMAggressiveInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMX86Desc -lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMCore -lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMMC -lLLVMDebugInfoCodeView -lLLVMDebugInfoMSF -lLLVMBinaryFormat -lLLVMX86Utils -lLLVMSupport -lLLVMDemangle -lrt -ldl -ltinfo -lpthread -lm -L/usr/local/lib ../isl/libisl.la )
/usr/bin/ld: cannot find -lisl
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libpet.la' with the above command before installing it
Makefile:889: recipe for target 'install-libLTLIBRARIES' failed
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory '/home/lchelini/mlir-polyhedral/pluto/pet'
Makefile:1688: recipe for target 'install-am' failed
make[3]: *** [install-am] Error 2
make[3]: Leaving directory '/home/lchelini/mlir-polyhedral/pluto/pet'
Makefile:1222: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/home/lchelini/mlir-polyhedral/pluto/pet'
Makefile:1682: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/lchelini/mlir-polyhedral/pluto/pet'
Makefile:547: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
ninja: build stopped: subcommand failed.

For this latter problem, I still don't have a solution.

kumasento commented 3 years ago

Thank you very much @chelini for your detailed report! In #43 I think I have solved the first problem as you instructued, and revised the installation instructions to tackle problem 2. I have tried this new version in a clean directory and it works fine. But I don't know if there is anything mismatched between your system and mine so issue may still appear.

Maybe you could try this new commit again if it doesn't bother you, and I will try to create a working CI script that you may use as a reference to configure your system.

kumasento commented 3 years ago

@chelini Hi, would you mind try out the latest instructions in README if you are still interested in testing Polymer on your local machine?

chelini commented 3 years ago

@chelini Hi, would you mind try out the latest instructions in README if you are still interested in testing Polymer on your local machine?

@kumasento will do. I will let you know.