I was attempting to get f90 support working with openmpi on my cluster. Configure output shows the fortran77 and fortran90/95 compilers are not getting set to what the ebuild had decided on in the beginning of the build process. Reproducible: Always Steps to Reproduce: 1. Emerge openmpi-1.1.2 and have gfortran installed on your system 2. Observe that configure has not selected gfortran as the f77 compiler 3. Attempt to run mpif90 after installation Actual Results: Error stating that mpif90 support has not been configured Expected Results: openmpi was supposed to be configured with fortran 90 support Relevant lines from the emerge and configure process attached. Also attached are a proposed patch and the same selection of emerge and configure output after the patch.
Created attachment 106057 [details] Relevant output from emerge / configure I have truncated the full output from the emerge process to only the lines that pertain to this problem
Created attachment 106059 [details, diff] Proposed patch Patch to pass the fortran compiler option to econf
Created attachment 106061 [details] Relevant output from emerg / configure after the patch I have truncated the full output from the emerge process to only the lines that pertain to this problem.
Aaron, I find it unusual that the F77 part would be required when it's enabling the F90 interface. Is it, or does just setting FC work?
Created attachment 106727 [details] The output of configure if I only pass FC to econf As with the others, irrelevant output has been truncated.
Created attachment 106728 [details] The output of configure if I only pass F77 to econf As with the others, irrelevant output has been truncated.
(In reply to comment #4) > Aaron, I find it unusual that the F77 part would be required when it's enabling > the F90 interface. Is it, or does just setting FC work? > As you can see from the first attachment I added today, if I don't pass in F77, configure won't find gfortran and will pick g77 instead for fortran77 use. For some reason (probably do to the weirdness of fortran modules) Openmpi requires that the two Fortran compilers be 'compatible', they are not, and so f90/95 support fails entirely. I have also added the results from configure if I only set F77. This works, but it seems that configure just barely managed to find gfortran in the fortran90/95 section. I feel more comfortable setting both.
Aaron, would you mind testing against openmpi-1.2.4-r1 and reporting on if this is still an issue?