Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160941 - sys-cluster/openmpi-1.1.2.ebuild doesn't pass fortran compiler to econf
Summary: sys-cluster/openmpi-1.1.2.ebuild doesn't pass fortran compiler to econf
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-08 17:02 UTC by Aaron Tygart
Modified: 2010-09-10 19:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Relevant output from emerge / configure (openmpi-1.1.2-configure,5.13 KB, text/plain)
2007-01-08 17:04 UTC, Aaron Tygart
Details
Proposed patch (openmpi-1.1.2-r1.patch,443 bytes, patch)
2007-01-08 17:05 UTC, Aaron Tygart
Details | Diff
Relevant output from emerg / configure after the patch (openmpi-1.1.2-r1-configure,6.11 KB, text/plain)
2007-01-08 17:06 UTC, Aaron Tygart
Details
The output of configure if I only pass FC to econf (configure-FC-only,4.60 KB, text/plain)
2007-01-12 21:03 UTC, Aaron Tygart
Details
The output of configure if I only pass F77 to econf (configure-F77-only,6.63 KB, text/plain)
2007-01-12 21:04 UTC, Aaron Tygart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Tygart 2007-01-08 17:02:07 UTC
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.
Comment 1 Aaron Tygart 2007-01-08 17:04:45 UTC
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
Comment 2 Aaron Tygart 2007-01-08 17:05:41 UTC
Created attachment 106059 [details, diff]
Proposed patch

Patch to pass the fortran compiler option to econf
Comment 3 Aaron Tygart 2007-01-08 17:06:14 UTC
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.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2007-01-09 05:39:12 UTC
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?
Comment 5 Aaron Tygart 2007-01-12 21:03:53 UTC
Created attachment 106727 [details]
The output of configure if I only pass FC to econf

As with the others, irrelevant output has been truncated.
Comment 6 Aaron Tygart 2007-01-12 21:04:19 UTC
Created attachment 106728 [details]
The output of configure if I only pass F77 to econf

As with the others, irrelevant output has been truncated.
Comment 7 Aaron Tygart 2007-01-12 21:12:55 UTC
(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.
Comment 8 Justin Bronder (RETIRED) gentoo-dev 2007-12-15 00:30:07 UTC
Aaron, would you mind testing against openmpi-1.2.4-r1 and reporting on if this is still an issue?