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

Bug 146512

Summary: lapack-atlas 3.7.15 tries to link with g77 on a gcc-4 system
Product: Gentoo Linux Reporter: Donnie Berkholz (RETIRED) <dberkholz>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Donnie Berkholz (RETIRED) gentoo-dev 2006-09-05 22:33:34 UTC
I think the by-hand libtool run in the ebuild is broken, the --tag=F77 always runs g77.
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2006-09-06 13:33:17 UTC
Hmm, I think libtool uses whatever is defined in /usr/bin/libtool under 

# ### BEGIN LIBTOOL TAG CONFIG: F77

which is i686-pc-linux-gnu-gfortran in my case and linking with
--tag=F77 works fine. Have you tried re-emerging libtool with
gcc-4.1.1 to see if it picks up gfortran? Kind of annoying though
for people who switch back and forth between gcc-3 and gcc-4.

Markus
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-06 13:35:57 UTC
Yes, I have g77 in there instead of gfortran. Presumably a remerge would change this, but I also would prefer if it were unnecessary.

When I autotooled the *-reference ebuilds, things just worked. Maybe a mini-autotooling here could work.
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2006-09-06 21:17:14 UTC
I had another look and I think the solution is very simple. We're already
using the autotooled lapack, hence instead of calling /usr/bin/libtool we
just use the one in ${WORKDIR}/LAPACK which amounts to replacing
libtool by ../libtool.

This seems to work for me. I'll commit the change tomorrow unless I discover
any breakage.

Markus
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2006-09-07 17:47:01 UTC
Using the autotooled libtool from lapack-reference works fine for 
me and I've committed the changes to cvs.

Best,
Markus