Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find mp++ 0.9 #150

Open
jbx1 opened this issue Jul 18, 2020 · 5 comments
Open

Cannot find mp++ 0.9 #150

jbx1 opened this issue Jul 18, 2020 · 5 comments

Comments

@jbx1
Copy link

jbx1 commented Jul 18, 2020

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
Copy link
Contributor

7ofNine commented Jul 18, 2020

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
Copy link
Contributor

7ofNine commented Jul 20, 2020

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
Copy link
Author

jbx1 commented Jul 20, 2020

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

@axelvan22
Copy link

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
Copy link
Contributor

7ofNine commented Mar 29, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants