On Thu, Aug 18, 2011 at 5:32 PM, Allin Cottrell <cottrell(a)wfu.edu> wrote:
On Thu, 18 Aug 2011, Skipper Seabold wrote:
> Trying to install gretl 1.9.5 from source due to the known seg faults
> in the downstream ubuntu 11.04 repositories. I have all the
> dependencies installed, except my lapack (3.2.2) was built with ATLAS
> (3.9.2) with the same version of gcc I have installed. The lapack
> stuff seems to be giving me troubles, though I'm not too sure why.
No doubt this should be better documented, but if you want to build
gretl against atlas you should use the LAPACK_LIBS environment
variable. For example:
LAPACK_LIBS='-L/your/atlas/lib -llapack -lf77blas -lcblas -latlas' \
./configure <options>
You can't just replace -lblas with -lcblas, because more libraries
are needed with an atlas build, including crucially libatlas.
Right, I neglected to mention that I also tried to edit configure to link
against atlas, cblas, f77blas, etc. to the same effect about the hidden
symbol.
Are you saying that all I need to do is define LAPACK_LIBS as such and then
run configure, or do I still need the with-lapack-prefix as well?? I tried
the former, and it fails to build, saying it can't find lblas (I changed
back to the original configure file).
|16 $ echo $LAPACK_LIBS
-L/home/skipper/built/atlas_files/lib -llapack -lf77blas -lcblas -latlas
What look to be the relevant lines in config.log are now something like
gcc -o conftest -I./lib/src -msse2 -g -O2 conftest.c -L/usr/lib -llapack
-lblas -lgfortran -lc -lc -lm
Skipper