On Sun, May 30, 2010 at 8:52 PM, Dr. David Kirkby
<[email protected]> wrote:
> Trying to build Sage 4.3.2 on Solaris 10 (SPARC), as a 64-bit build (my
> first semi-serious attempt at 64-bit SPARC build), I get a failure:
>
> checking for C interface to BLAS... not found
> checking for others BLAS... not found
>
> *******************************************************************************
> ERROR: BLAS not found!
>
> BLAS routines are required for this library to compile. Please
> make sure BLAS are installed and specify its location with the option
> --with-blas=<lib> when running configure.
> *******************************************************************************
> Error configuring linbox
>
> real 0m32.070s
> user 0m15.156s
> sys 0m12.915s
> sage: An error occurred while installing linbox-1.1.6.p3
>
> http://trac.sagemath.org/sage_trac/ticket/9101
>
> Looking in spkg/standard/deps, I don't see anything to force BLAS to build
> before linbox.
>
>
> $(INST)/$(LINBOX): $(BASE) $(INST)/$(MPIR) $(INST)/$(NTL) $(INST)/$(GIVARO)
> $(INST)/$(GSL) $(INST)/$(ATLAS)
> $(SAGE_SPKG) $(LINBOX) 2>&1
>
> It's strange I've never come across this before on a 32-bit build on the
> same machine, yet the BLAS libraries are not installed as far as I'm aware.
>
> drkir...@redstart:~$ ls /usr/lib/*blas* /lib/*blas*
> /usr/lib/*blas*: No such file or directory
> /lib/*blas*: No such file or directory
>
> I've never had this problem building on 32-bit SPARC, or 64-bit OpenSolaris
> x64. I only see it on 64-bit Solaris 10 SPARC. Perhaps the behavior is
> undefined if the dependency is missing, and it just happens by luck to work
> on the other systems. Either that, or I've mis-understood it.
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.
William
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
--
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