Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62561 - lam-mpi should check for presence of Fortran compiler
Summary: lam-mpi should check for presence of Fortran compiler
Status: RESOLVED FIXED
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: 2004-09-01 15:20 UTC by Stephen Renker
Modified: 2010-09-10 18:59 UTC (History)
2 users (show)

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


Attachments
lam-mpi ebuild with fortran flag (lam-mpi-7.0.6-r1.ebuild,1.66 KB, text/plain)
2004-12-13 01:46 UTC, janjan
Details
updated lam-mpi with fortran flag (lam-mpi-7.0.6-r1.ebuild,1.67 KB, text/plain)
2004-12-14 03:43 UTC, janjan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Renker 2004-09-01 15:20:15 UTC
If you don't have a Fortran 77 compiler present (i.e., $USE did not contain "f77" when gcc was emerged), emerging lam-mpi will fail upon configure when it gets to the Fortran part. The line in the ebuild "econf ... --enable-languages=c,c++,f77" looks like the culprit.

Given that setting USE="f77" _after_ emerging gcc would not make g77 magically appear, I don't know Portage well enough to know how to fix it myself.

Reproducible: Always
Steps to Reproduce:
1. Ensure that f77 is not part of your USE flags, and that you haven't emerged ifc or any other Fortran compiler.
2. emerge gcc
3. emerge lam-mpi
Actual Results:  
emerge lam-mpi fails when configure gets to sniffing for a Fortran compiler

Expected Results:  
It should have seen that there was no Fortran compiler and not tried to compile
Fortran support into lam-mpi.

I don't see any attempt to check for this in any of the ebuilds.
Comment 1 janjan 2004-12-13 01:46:29 UTC
Created attachment 45886 [details]
lam-mpi ebuild with fortran flag

This is an ebuild that extends the existing lam-mpi ebuild, by adding fortran
support if the fortran flag is set (used by gcc as well). 
Builds on my machine like a dream :)

Since I am a complete noob, could somebody please check if this is done
correctly.
Thanks.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-13 08:30:57 UTC
Could you please attach it as a patch? It's easier to look at the changes.
Comment 3 janjan 2004-12-14 03:43:17 UTC
Created attachment 45963 [details]
updated lam-mpi with fortran flag
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-05 23:29:52 UTC
OK, that's still not a patch, it's the full ebuild. You're on the right track, although you may also want to `inherit fortran` near the top to pull in the fortran eclass. That might change your logic with the USE=fortran a bit.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-21 00:56:41 UTC
Fixed in 7.1.1