Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278772 - toolchain-funcs.eclass: tc-getF77 undefined f77
Summary: toolchain-funcs.eclass: tc-getF77 undefined f77
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 339465
  Show dependency tree
 
Reported: 2009-07-22 22:26 UTC by Sébastien Fabbro (RETIRED)
Modified: 2011-06-18 18:45 UTC (History)
2 users (show)

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


Attachments
wrapper-1.5.2.c.diff (wrapper-1.5.2.c.diff,578 bytes, patch)
2011-06-15 19:10 UTC, Sébastien Fabbro (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Fabbro (RETIRED) gentoo-dev 2009-07-22 22:26:55 UTC
Hi,

the tc-getF77 function in toolchain-funcs.eclass calls f77 as a default FORTRAN 77 compiler which is not defined.
Solution: either call gfortran or g77 as a default depending on the selected gcc profile.

Note it could be also due to the fact that gcc-config wraps f77 to g77 when probably should do it to gfortran or g77 depending on gcc version (of what I see in sys-devel/gcc-config/files/wrapper-1.5.1.c).

Thanks
Comment 1 SpanKY gentoo-dev 2009-07-23 05:36:56 UTC
the sci/fortran guys have been handling the fortran functions.  toolchain team really hasnt had a hand in crafting them.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2010-10-02 14:41:51 UTC
The proper way would be to do all this in fortran.eclass at some time in the future - but should toolchain-funcs.eclass then inherit fortran? 
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-04-01 11:04:03 UTC
Sebastien could you proceed here with a fix? Or is the problem solved?
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2011-06-15 19:10:43 UTC
Created attachment 277167 [details, diff]
wrapper-1.5.2.c.diff

trivial patch to fix this for recent gcc. 
but really it should check on the selected gcc version.
Comment 5 SpanKY gentoo-dev 2011-06-18 18:08:35 UTC
if fortran guys are ok with that, i can easily add it
Comment 6 Sébastien Fabbro (RETIRED) gentoo-dev 2011-06-18 18:38:26 UTC
(In reply to comment #5)
> if fortran guys are ok with that, i can easily add it

fortran guys are us (sci). please do.
Comment 7 SpanKY gentoo-dev 2011-06-18 18:45:54 UTC
ive committed it now then, thanks