[SciPy-user] numpy/scipy+ATLAS on SuSE10.0/gcc4 (once more)

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Mar 8 03:39:36 CST 2006


Christian Kristukat wrote:
> Nils Wagner wrote:
>   
>> Christian Kristukat wrote:
>>     
>>> Nils Wagner wrote:
>>>   
>>>       
>>>>>   
>>>>>       
>>>>>           
>>>>  I was able to build numpy/scipy using gcc4.0.2.
>>>>
>>>>     
>>>>         
>>> [...]
>>>   
>>>       
>>>> So I have used g77 to compile ATLAS and numpy/scipy. It works fine for me.
>>>>
>>>> Essentially gfortran cannot be used  !!!!
>>>>
>>>>     
>>>>         
>>> Hi Nils,
>>> can you tell me how you did that? I'm about to switch to gcc3 but I'd prefer not
>>> to depend on so much additional software.
>>>
>>> Regards, Christian
>>>
>>> _______________________________________________
>>> SciPy-user mailing list
>>> SciPy-user at scipy.net
>>> http://www.scipy.net/mailman/listinfo/scipy-user
>>>   
>>>       
>> Hi Christian,
>>
>> All you need is to install compat-g77. Once you have build ATLAS using
>> gcc4.02
>> you should build a complete liblapack.a.
>> http://math-atlas.sourceforge.net/errata.html#completelp
>>
>> Copy all *.a  into /usr/local/lib/atlas
>> Checkout scipy/numpy via svn
>> and install them via
>> python setup.py install
>> That's all.
>>     
>
> But I've tried that many times, and as said before, I end up with an error when
> importing numpy or scipy:
>
> import linalg -> failed: /usr/lib/libblas.so.3: undefined symbol: _gfortran_filename
>
> Could you maybe send me the list of installed packages on your machine, just to
> compare? (rpm -qa)
>
> Regards, Christian
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>   


Hi Christian,

You cannot use the prebuild libraries (blas/lapack) ! So deinstall these
rpm's.
rpm -qi lapack
package lapack is not installed
rpm -qi blas
package blas is not installed

Then I have build blas / lapack following

 http://pong.tamu.edu/tiki/tiki-view_blog_post.php?blogId=6&postId=97

This is my modified make.inc in /usr/local/src/LAPACK

####################################################################
#  LAPACK make include file.                                       #
#  LAPACK, Version 3.0                                             #
#  June 30, 1999                                                  #
####################################################################
#
SHELL = /bin/sh
#
#  The machine (platform) identifier to append to the library names
#
PLAT = _LINUX
#
#  Modify the FORTRAN and OPTS definitions to refer to the
#  compiler and desired compiler options for your machine.  NOOPT
#  refers to the compiler options desired when NO OPTIMIZATION is
#  selected.  Define LOADER and LOADOPTS to refer to the loader and
#  desired load options for your machine.
#
FORTRAN  = g77
#OPTS     = -funroll-all-loops -fno-f2c -O3
#
# On 64 bit systems with GNU compiler
#
OPTS     = -O2 -m64 -fPIC
NOOPT    = -m64 -fPIC
DRVOPTS  = $(OPTS)
#NOOPT    =
LOADER   = g77
LOADOPTS =
#
#  The archiver and the flag(s) to use when building archive (library)
#  If you system has no ranlib, set RANLIB = echo.
#
ARCH     = ar
ARCHFLAGS= cr
RANLIB   = ranlib
#
#  The location of the libraries to which you will link.  (The
#  machine-specific, optimized BLAS library should be used whenever
#  possible.)
#
BLASLIB      = ../../blas$(PLAT).a
LAPACKLIB    = lapack$(PLAT).a
TMGLIB       = tmglib$(PLAT).a
EIGSRCLIB    = eigsrc$(PLAT).a
LINSRCLIB    = linsrc$(PLAT).a




Nils



More information about the SciPy-user mailing list