[Numpy-discussion] Da Blas
kern at its.caltech.edu
Fri Sep 15 21:10:10 CDT 2000
On Sat, 16 Sep 2000, Frank Horowitz wrote:
> At 11:30 AM -0400 9/15/00, Scott M. Ransom wrote:
> >Frank Horowitz wrote:
> >> However, when I
> >> coerced the distutils system to get around that bug (by specifying
> >> "/usr/lib " with a trailing blank for the BLASLIBDIR and LAPACKLIBDIR
> >> variables in setup.py) the same problem (i.e. an "ImportError:
> >> /usr/lib/liblapack.so.3: undefined symbol: e_wsfe" in importing
> >> lapack_lite) ultimately manifested itself.
> >This problem is easily fixed (at least on linux) by performing the link
> >of lapack_lite.so with g77 instead of gcc (this is required because the
> >lapack and/or blas libraries are based on fortran object files...).
> Good on ya, Scott. You nailed it. When I did this by hand, it worked. What
> I now need to figure out is how to coerce distutils into doing that
> automagically so others can benefit without this pain!
Adding "-lg2c" to the end of the gcc (not g77) link line always did the
trick for me with FORTRAN libraries. I'm not sure if g77 does anything
more than that compared with gcc for linking.
> Frank Horowitz
kern at caltech.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Numpy-discussion