bluescarni / piranha

The Piranha computer algebra system.
GNU General Public License v3.0
101 stars 25 forks source link

Cannot find mp++ 0.9 #150

Open jbx1 opened 4 years ago

jbx1 commented 4 years ago

I am trying to compile Piranha on Ubuntu 20.04 LTS. After chasing all the dependencies, I am stuck on mp++.

I checked out the code here https://github.com/bluescarni/mppp/ and compiled and installed it. But I get this error:

CMake Error at CMakeLists.txt:197 (find_package):
  Could not find a configuration file for package "mp++" that is compatible
  with requested version "0.9".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/mp++/mp++-config.cmake, version: 0.22

Is piranha only compatible with mp++ version 0.9?

7ofNine commented 4 years ago

There is actually no Piranha any longer. The original version was called Piranha and is not maintained any longer for some years. Than there was for some time a re-implementation called Piranha which changed it's name to PiranhaNG and is now called Obake. Only Obake would be using the latest mp++ and the old variants of Piranha/Obake are not compatible with the latest m++. I am not sure if it the latest version has been verified, yet, Francesco is the guy who knows best. I am still using the previous version and it works fine. But be aware I don't think that Obake is complete, yet. But if it is just the find command sometimes setting the Prefix path for CMAKE explicitly helps to pick it up properly.

7ofNine commented 4 years ago

I tried to do the same with this historic version of piranha and I see the complaint about the version. But I also think this is rather irrelevant. What I remember is that the last version of mp++ that worked with this incarnation of piranha was version 0.12 or 0.13. From then on it wouldn't compile any longer. It could be the reason for the rejection. I didn't check the cmake configuration files. This variant of piranha accesses some internals of mp++ that changed after the versions above. If you desperately want to to compile it you would have to fall back to one of these versions.

jbx1 commented 4 years ago

Thanks for your responses. Yes I checked out version 0.9 and it compiled happily.

axelvan22 commented 3 years ago

Hi,

did you meet any issue while installing version 0.9 of mp++?

I'm trying to install it but I encounter a problem, I had to make a cmake . command before the cmake --build . --target install because of the missing of CMakeCache.txt . And yet there are errors. Here is the one for the original cmake . command : CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message): Could NOT find GMP (missing: GMP_INCLUDE_DIR GMP_LIBRARY)

And here's the one for the next command : MSBUILD : error MSB1009: Project file does not exist. Switch: install.vcxproj

Can you please tell me if you faced these messages and, if you did, how did you solve the errors?

Thank You, Axel

7ofNine commented 3 years ago

@axelvan22 Is there a specific reason why you are trying to build and install version 0.9? That version is more than 3 years old and is internally somewhat different than the most recent version 0.23 (not released). I am also not sure how well the Microsoft version of cmake deals with the old cmake files? To answer the question I don't remember even seeing such a build error. The most recent problem I ran into was an issue with linking boost.

Hartmuth