-
Notifications
You must be signed in to change notification settings - Fork 858
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
OpenMPI fails to build with F18 #7586
Comments
I'm not 100% sure, but I'm guessing we're not explicitly testing the F18 compiler. What's the F18 flag to specify the path where modules can be found? |
It looks like the problem is that the compiler is returning a non-zero exit status when it is using the correct module include flag. When the wrong include flag is used, f18/flang print:
When
Is there a way to see the entire contents of In addition, it seems like the intrinsic modules |
This looks to me like the |
@jsquyres FYI, after testing some more (manually) this appears (to me at least) to be either an F18 bug, or a configuration/toolchain issue. |
Hi, I have the problem too. We have contacted the f18 team on Slack and we got an answer. It is related to what is described in flang-compiler/f18#1011. Short version: binary modules compiled with f18 are actually compiled by the backend compiler, which can be gfortran. Therefore, they cannot be used by f18. We need to get a text module. For this, the module and the resulting file need to be compiled with When we compile the module with:
It generates two files:
The first one is a text module that can be used by f18.
Then we can compile the second one:
Edit: |
Hi, Then I get a new error:
I suspect that there might be another option to fix in libtool, but this is beyond what I know about it... I have also tried adding Thanks |
Forgive my ignorance, but F18 is not yet a production-quality compiler, right? If that's correct, I'd prefer to have them fix their issue rather than put in a gnarly workaround in our m4 code (and/or patch Libtool). |
Given the length of time between responses on this issue, I'm going to close it due to inactivity. If it turns out that F18 is a production-quality compiler and/or there is a bug we should be fixing here in Open MPI, we can re-open this. |
I'm trying to build
OpenMPI 4.0.3
usingClang 9.0.1
andF18
, withgfortran 7.3.0
as the backend for F18. The system isUbuntu 18.04 x86_64
. OpenMPI source fetched from http://www.open-mpi.org/software/ompi/v4.0/downloads/openmpi-4.0.3.tar.bz2The build is failing during configure phase:
Here is
config.log
: config.log.txtThe text was updated successfully, but these errors were encountered: