1 |
One more thing, This is fixed in 1.6 tree of numpy, where the |
2 |
call to gfortran uses what is in the site config. |
3 |
Will sage move to a higher version of numpy at some point? |
4 |
|
5 |
|
6 |
|
7 |
On 07:27 Tue 30 Oct 2012, Francois Bissey wrote: |
8 |
> On 30/10/12 06:38, Thomas Kahle wrote: |
9 |
> > Hi, |
10 |
> > |
11 |
> > since the recent move to -lrefblas and friends numpy-1.5.1 |
12 |
> > (a.k.a. sage-numpy) does not link anymore. Probably -lblas is hardcoded |
13 |
> > somehwere and should be replaced by $(pkg-config --libs blas)? |
14 |
> > |
15 |
> > Thanks, |
16 |
> > Thomas |
17 |
> > |
18 |
> > [...] |
19 |
> > x86_64-pc-linux-gnu-gcc: numpy/core/blasdot/_dotblas.c |
20 |
> > /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 |
21 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lblas |
22 |
> > collect2: ld returned 1 exit status |
23 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lblas |
24 |
> > collect2: ld returned 1 exit status |
25 |
> > 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 |
26 |
> > |
27 |
> |
28 |
> It is already supposed to use pkg-config. My numpy 1.5.1 is linked |
29 |
> against openblas with python-2.7.3. However I don't appear to have |
30 |
> dotblas at all in numpy with python 3.2 so there may be an issue |
31 |
> when compiling against python 3.2 - I will have to check my build logs. |
32 |
> |
33 |
> Did it compile against python 2.7 normally? |
34 |
> |
35 |
> Francois |
36 |
> |
37 |
> |
38 |
|
39 |
-- |
40 |
Thomas Kahle |
41 |
http://dev.gentoo.org/~tomka/ |