Gentoo Archives: gentoo-science

From: Francois Bissey <fbissey@××××××××××××.nz>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] is numpy using the old lapack interface?
Date: Mon, 29 Oct 2012 21:03:03
Message-Id: 508ECAAC.4050600@slingshot.co.nz
In Reply to: [gentoo-science] is numpy using the old lapack interface? by Thomas Kahle
1 On 30/10/12 06:38, Thomas Kahle wrote:
2 > Hi,
3 >
4 > since the recent move to -lrefblas and friends numpy-1.5.1
5 > (a.k.a. sage-numpy) does not link anymore. Probably -lblas is hardcoded
6 > somehwere and should be replaced by $(pkg-config --libs blas)?
7 >
8 > Thanks,
9 > Thomas
10 >
11 > [...]
12 > x86_64-pc-linux-gnu-gcc: numpy/core/blasdot/_dotblas.c
13 > /usr/bin/gfortran -Wall -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -shared build-3.2/temp.linux-x86_64-3.2/numpy/core/blasdot/_dotblas.o -L/usr/lib64 -L/usr/lib64 -Lbuild-3.2/temp.linux-x86_64-3.2 -lblas -lpython3.2 -lgfortran -o build-3.2/lib.linux-x86_64-3.2/numpy/core/_dotblas.cpython-32.so
14 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lblas
15 > collect2: ld returned 1 exit status
16 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lblas
17 > collect2: ld returned 1 exit status
18 > error: Command "/usr/bin/gfortran -Wall -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -shared build-3.2/temp.linux-x86_64-3.2/numpy/core/blasdot/_dotblas.o -L/usr/lib64 -L/usr/lib64 -Lbuild-3.2/temp.linux-x86_64-3.2 -lblas -lpython3.2 -lgfortran -o build-3.2/lib.linux-x86_64-3.2/numpy/core/_dotblas.cpython-32.so" failed with exit status 1
19 >
20
21 It is already supposed to use pkg-config. My numpy 1.5.1 is linked
22 against openblas with python-2.7.3. However I don't appear to have
23 dotblas at all in numpy with python 3.2 so there may be an issue
24 when compiling against python 3.2 - I will have to check my build logs.
25
26 Did it compile against python 2.7 normally?
27
28 Francois

Replies