> On 05/31/10 08:36 AM, François Bissey wrote:
> >> I think you've found a bug in the makefile.
> >>
> >> We have
> >>
> >> LINBOX depends on ATLAS
> >>
> >> ATLAS depends on LAPACK and PYTHON
> >>
> >> LAPACK depends on FORTRAN
> >>
> >> It is just a lucky coincidence that the Sage build has actually worked.
> >> We need to add BLAS as a dependency of LAPACK, e.g,.
> >>
> >> $(INST)/$(LAPACK): $(INST)/$(FORTRAN) $(INST)/$(BLAS)
> >>
> >> $(SAGE_SPKG) $(INST)/$(LAPACK) 2>&1
> >>
> >> Then everything should work fine, since depence is transitive.
> >
> > Can you remind me again why we have BLAS and not just ATLAS?
> > We can just build lapack against ATLAS.
> >
> > Francois
>
> I've looked at 'linbox' and find that it usually has two libraries - cblas
> and atlas. I don't know how it resolves these, but I assume if either will
> do, then it will use the first one (usually cblas, but sometimes blas),
> and not use atlas.
>
> Does this make a lot of sence to you? The code from linbox's spkg-install
> is below.
>
> Dave
>
>
> if [ "$LINBOX_BLAS" != "" ]; then
>
> echo "Using environment variable LINBOX_BLAS "$LINBOX_BLAS""
>
> elif [ $UNAME = "Darwin" -a -f "/usr/lib/libcblas.dylib" ]; then
>
> LINBOX_BLAS=/usr/lib/libcblas.dylib
>
> elif [ $UNAME = "Linux" -a -f "${SAGE_LOCAL}/lib/libcblas.so" ]; then
>
> echo "Linux cblas"
>
> LINBOX_BLAS="-lcblas -latlas"
>
> elif [ $UNAME = "CYGWIN" ]; then
>
> echo "Using system-wide Cygwin LAPACK BLAS."
> if [ ! -f "/usr/lib/libblas.a" ]; then
> echo "*************************************************"
> echo "*"
> echo "* On Cygwin you must install the standard LAPACK Cygwin
> package" echo "* via the Cygwin setup.exe program in the 'Math' category."
> echo "*"
> echo "*************************************************"
> exit 1
> fi
> LINBOX_BLAS="-lblas "
>
> elif [ $UNAME = "SunOS" -a -f "${SAGE_LOCAL}/lib/libcblas.so" ]; then
>
> echo "Solaris cblas"
>
> LINBOX_BLAS="-lcblas -latlas"
>
> elif [ $UNAME = "FreeBSD" -a -f "${SAGE_LOCAL}/lib/libcblas.a" ]; then
>
> echo "FreeBSD cblas"
>
> LINBOX_BLAS="-lcblas -latlas"
>
> elif [ $UNAME = "FreeBSD" -a -f "${SAGE_LOCAL}/lib/libcblas.so" ]; then
>
> echo "FreeBSD cblas"
>
> LINBOX_BLAS="-lcblas -latlas"
>
> else
> echo "WARNING WARNING"
> echo "WARNING WARNING"
> echo "WARNING WARNING"
> echo "WARNING WARNING"
> echo "using frickin' slow GSL C-blas"
> echo "WARNING WARNING"
> echo "WARNING WARNING"
> echo "WARNING WARNING"
> echo "WARNING WARNING"
> echo "WARNING WARNING"
>
> if [ $UNAME = "Darwin" ]; then
> LINBOX_BLAS="$SAGE_LOCAL"/lib/libgslcblas.dylib
> else
> LINBOX_BLAS="$SAGE_LOCAL"/lib/libgslcblas.so
> fi
>
> fi
It's been some time since I have looked at the spkg-install code for linbox.
You may notice that in the blas detection macros shipped with linbox they
add -llapack - I think it probably should be added in LINBOX_BLAS.
Francois
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org