-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Open MPI: mpif90 doesn't -I/usr/include #49322
Comments
|
Thanks for including the upstream issue. I haven't noticed that. |
Note that most C and C++ compilers look in Let's see how the upstream issue shakes out before trying to resolve this regression. |
It's from January with no response from the maintainers and the person who made the issue already worked around the issue on Arch Linux's side, so I'm not sure there will be much movement as-is. |
I'll pull the Arch patch for 5.0.3 shortly. If, in the future, upstream explicitly rejects this or a similar fix, I'll drop the patch and users will have no choice but to specify |
Is this a new report?
Yes
System Info
Void 6.6.21_1 x86_64 GenuineIntel uptodate hold rrrdDFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Package(s) Affected
openmpi-5.0.2_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
open-mpi/ompi#12257
Expected behaviour
Having the following code:
I expect it to compile with
Note that I didn't make up this code, it comes from a configure script of a library I'd like to package which tries to test whether fortran compiler works by compiling the aforementioned code.
Actual behaviour
It doesn't compile. The following error message is shown:
It's obvious that it's caused by a missing include. It compiles with
To my knowledge (and please correct me if I'm wrong),
mpif90
(like all other MPI wrappers which link to/usr/bin/opal_wrapper
) should wrap the underlying compiler while providing all flags needed for compiling with MPI.shows
which makes no mention of
/usr/include
.I don't have proof of this, but I believe this is a regression, because it used to work in the past, so I assume an
openmpi
update broke it.I've done some tests and it works without
-I/usr/include
on a Debian Docker container. Debian packages openmpi quite differently, its--showme
looks like this:but it shows that it should work out of the box I believe.
Ping maintainer @ahesford
Steps to reproduce
Mentioned above.
The text was updated successfully, but these errors were encountered: