On Fri, 18 Oct 2013 20:21:25 -0300
José Romildo Malaquias <[email protected]> wrote:

> Hello.
> 
> I want to try the development version of GNU Octave[1] on my ~amd64
> gentoo linux system.
> 
> After cloning the repository[2], reading the instructions at [3],
> bootstrapping, changing to directory .build and running ./configure, I
> am getting the error messages:
> 
> [...]
> checking for sgemm_ in -lblas... (cached) no
> ../configure: line 32516: test: =: unary operator expected
> ../configure: line 34026: test: =: unary operator expected
> ../configure: line 35581: test: =: unary operator expected
> configure: error: BLAS and LAPACK libraries are required
> 
> 
> Any clues?
> 
> [1] http://www.gnu.org/software/octave/get-involved.html
> [2] http://www.octave.org/hg/octave
> [3] http://www.octave.org/hg/octave/file/tip/etc/HACKING
> 
> Romildo
> 

I appears you have to configure octave with the output of pkg-config --libs
{blas/lapack}. Here I have

$ pkg-config --libs blas
-lrefblas

$ pkg-config --libs lapack
-lreflapack -lrefblas

So the following configure works here

../configure --with-blas=refblas --with-lapack=reflapack

Or you may get something like this (all on one line) to work

../configure --with-blas=`pkg-config --libs blas | sed 's:-l::g' | sed
's:[[:space:]].*$::g'` --with-lapack=`pkg-config --libs lapack | sed 's:-l::g'
| sed 's:[[:space:]].*$::g'`

There may be other things that are missing but I'm able to generate the
makefiles with the above.

Attachment: signature.asc
Description: PGP signature

Reply via email to