-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[package] conan-boost: cant install the boost::mpi library #2501
Comments
boost MPI requires an actual MPI implementation, such as OpenMPI, Microsoft MPI or Intel MPI. they need to be packaged first. |
Yes yes absolutely, in order to compile it! Of cause it would be nice if conan could also handle this part, but for most places where this library would be used (clusters, supercomputers) the system admins have already installed (multiple) MPI implementations. I think most users of boost.mpi would be well aware that this is something they would have to install themselves externally to conan (like the rest of the compiler). The point is just that without this change, I dont know that i can use conan to install boost at all, since it it just missing this one build flag which i cant add. |
what we can do is to add some options to specify mpi implementation, then conan will include that during the generation of user-config.yml. |
Hi, Can't the recipe just rely on the without_mpi recipe option ? Something like if not self.options.without_mpi:
# https://www.boost.org/doc/libs/1_74_0/doc/html/mpi/getting_started.html
contents += '\nusing mpi ;' Later, optional settings could also be set up,
as most (all ?) of these values can be retrieve from the mpi wrapper (using --showme variants, see mpi wrapper manpage for details) (Note that I'm not an advanced MPI user, only a consumer facing the same problem here) |
@oleurodecision something like that could work, yes.
this needs to be tested if there is an error handling to be added to prevent such incorrect builds. |
@oleurodecision |
okay thanks for the feedback, I will try to look at this soon.
…________________________________
De : NashTools <[email protected]>
Envoyé : samedi 19 décembre 2020 00:20
À : conan-io/conan-center-index <[email protected]>
Cc : Olivier LIESS <[email protected]>; Mention <[email protected]>
Objet : Re: [conan-io/conan-center-index] [package] conan-boost: cant install the boost::mpi library (#2501)
@oleurodecision<https://github.com/oleurodecision>
i added the changes you proposed in #2842<#2842> but it still does not work for me. i get ./boost/mpi/config.hpp:20:10: fatal error: mpi.h: No such file or directory during compilation. However, the logs say the MPI Auto-configuration was successful. I have openmpi installed using apt-get in ubuntu.`
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2501 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMC34CH5EEKWTNMUTYPQIMLSVPPSFANCNFSM4P5MGCMA>.
|
Just tested on ubuntu 18.04 server "vanilla" (fresh install in vm), using boost-1.72.0-default.log |
@oleurodecision first of all thank you for your reply |
Can you indicate which ubuntu version you are using please ? |
im using ubuntu 20.10 groovy gorilla |
Tested with success :
let's check that more precisely in a few days ;) |
i finally got it running. The issue was on my side, somehow openmpi was not installed correctly. To all who has the same problem look up here https://stackoverflow.com/questions/60982859/why-openmpi-package-from-apt-is-incomplete?noredirect=1&lq=1 Again thank you @oleurodecision for your support |
you're welcome (btw, url markdown seems wrong) |
Hi there! |
I dont know if this is a bug per say, but it is at least a problem which makes a part of the boost library uninstallable, and is easilly fixable. I would create a pull request if I knew how to, sorry...
When boost is installing, the boost::mpi library along with assosiated components in various other boost libraries are only istalled if the following line is added to the
user-config.cam
:using mpi ;
This file is being autogenerated by the conanfile.py, so it is not possible to just add this line manually. An easy fix would be to add the following code on line 748 of the conanfile.py:
And we could thus in our conanfile.txt specify,
or similar, I dont quite understand how string literalts work in conan.txt files
The text was updated successfully, but these errors were encountered: