help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: order of libraries in Makefiles


From: Sergei Steshenko
Subject: Re: order of libraries in Makefiles
Date: Mon, 1 Aug 2011 11:55:14 -0700 (PDT)

--- On Mon, 8/1/11, John W. Eaton <address@hidden> wrote:

> From: John W. Eaton <address@hidden>
> Subject: order of libraries in Makefiles
> To: "Sergei Steshenko" <address@hidden>
> Cc: address@hidden
> Date: Monday, August 1, 2011, 11:29 AM
> OnĀ  1-Aug-2011, Sergei Steshenko
> wrote:
> 
> | Hello,
> | 
> | (maybe I've already asked this question)
> | 
> | I see in Makefiles this:
> | 
> | "
> | octave-3.4.2/test/Makefile:BLAS_LIBS = -lcblas -lf77blas
> -latlas
> | octave-3.4.2/libcruft/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/libgnu/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/scripts/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/examples/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/doc/refcard/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/doc/icons/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/doc/interpreter/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/doc/faq/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/doc/liboctave/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/doc/Makefile:BLAS_LIBS = -lcblas -lf77blas
> -latlas
> | octave-3.4.2/liboctave/Makefile:BLAS_LIBS = -lcblas
> -lf77blas -latlas
> | octave-3.4.2/src/Makefile:BLAS_LIBS = -lcblas -lf77blas
> -latlas
> | octave-3.4.2/Makefile:BLAS_LIBS = -lcblas -lf77blas
> -latlas
> | :,
> | 
> | i.e. 'atlas' is last.
> | 
> | Shouldn't it be first ? I mean, first the linker is
> supposed to find
> | the accelerated implementation in 'atlas', and if
> unsuccessful, to look
> | for the implementation blas/lapack.
> 
> How did you run configure?
> 
> What does config.log tell you about how it determined the
> value of
> BLAS_LIBS?
> 
> jwe
>

'configure' was run using the attached autogenerated 'config_wrapper.sh'
script.

And regarding BLAS_LIBS:

"
address@hidden:~/junk> grep BLAS_LIBS 
/mnt/sdb8/sergei/AFSWD_debug/build/octave-3.4.2/config.log
BLAS_LIBS='-lcblas -lf77blas -latlas'
address@hidden:~/junk>
".

I didn't give the above order of libraries manually.

By the way, I've added a piece of code that makes BLAS_LIBS everywhere
look this way:

BLAS_LIBS = -latlas -lcblas -lf77blas

and am currently rebuilding.

Regards,
  Sergei.

Attachment: config_wrapper.sh
Description: application/shellscript


reply via email to

[Prev in Thread] Current Thread [Next in Thread]