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

Bug 129857

Summary: octave fails to build with gcc >=4.0.0 due to gfortran name change
Product: Gentoo Linux Reporter: John Sonnenschein <johnsonnenschein>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Sonnenschein 2006-04-13 12:59:01 UTC
which: no g77 in (/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.0.3:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/oracle/product/10.2.0.1/bin)
 * No fortran compiler found on the system!
 * Please add fortran to your USE flags and reemerge gcc!

gcc is compiled with fortran support, the only problem is that it looks for g77 instead of gfortran (which is the new naming scheme). 
A workaround is 
# ln -s /usr/bin/gfortran /usr/bin/g77
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-13 14:47:24 UTC
Which version?
Comment 2 John Sonnenschein 2006-04-13 15:39:38 UTC
2.1.69
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-13 15:42:23 UTC
So use 2.1.72 ;)

*** This bug has been marked as a duplicate of 108781 ***