Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146512 - lapack-atlas 3.7.15 tries to link with g77 on a gcc-4 system
Summary: lapack-atlas 3.7.15 tries to link with g77 on a gcc-4 system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-05 22:33 UTC by Donnie Berkholz (RETIRED)
Modified: 2006-09-07 17:47 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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