Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 278772

Summary: toolchain-funcs.eclass: tc-getF77 undefined f77
Product: Gentoo Linux Reporter: Sébastien Fabbro (RETIRED) <bicatali>
Component: EclassesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, toolchain
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 339465    
Attachments: wrapper-1.5.2.c.diff

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