Gentoo Archives: gentoo-science

From: "François Bissey" <frp.bissey@×××××.com>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] Trouble building scipy-0.14.0 against acml
Date: Mon, 16 Jun 2014 21:27:02
Message-Id: 2358114.aUMdxTSU4C@qcd-nzi3
In Reply to: Re: [gentoo-science] Trouble building scipy-0.14.0 against acml by "Bastian Löffler"
1 OK we have a culprit. You need to eselect a cblas.
2 There is no way that the message you get from
3 pkg-config --libs-only-L cblas blas
4
5 will be parsed to anything useful.
6
7 Francois
8
9
10 On Mon, 16 Jun 2014 18:04:42 Bastian Löffler wrote:
11 > Hi,
12 >
13 > this is for lapack:
14 >
15 > pkg-config --libs-only-L lapack
16 > -L//opt/acml5.3.1/gfortran64/lib
17 >
18 > cat /usr/lib64/pkgconfig/lapack.pc
19 > prefix=//opt/acml5.3.1/gfortran64
20 > libdir=${prefix}/lib
21 > includedir=${prefix}/include
22 > Name: acml-gfortran64
23 > Description: AMD Core Math Library for amd64 CPUs
24 > Version: 5.3.1
25 > URL:
26 > http://developer.amd.com/tools/cpu-development/amd-core-math-library-acml/
27 > Libs: -L${libdir} -lacml
28 > Libs.private: -lm -lrt
29 > Cflags: -I${includedir}
30 >
31 > ls -la /usr/lib64/pkgconfig/lapack.pc
32 > lrwxrwxrwx 1 root root 77 14. Jan 00:04 /usr/lib64/pkgconfig/lapack.pc
33 > ->
34 > ../../../etc/env.d/alternatives/lapack/_current/usr/lib64/pkgconfig/lapack.p
35 > c
36 >
37 > and this is
38 >
39 > pkg-config --libs-only-L cblas blas
40 >
41 > Package cblas was not found in the pkg-config search path.
42 > Perhaps you should add the directory containing `cblas.pc'
43 > to the PKG_CONFIG_PATH environment variable
44 > No package 'cblas' found
45 >
46 > I have no cblas eselected.
47 >
48 > Am 16.06.2014 03:27, schrieb François Bissey:
49 > > And
50 > > pkg-config --libs-only-L cblas blas
51 > > since that's what is actually parsed by the ebuild. Have you
52 > > any cblas eselected? If yes which one.
53 > >
54 > > Francois
55 > >
56 > > On Mon, 16 Jun 2014 13:19:57 François Bissey wrote:
57 > >> Out of curiosity and to jog my brain can you send the equivalent for
58 > >> lapack?
59 > >>
60 > >> Something is definitely going wrong when the site.cfg is generated.
61 > >>
62 > >> Francois
63 > >>
64 > >> On Sun, 15 Jun 2014 23:40:13 Bastian Löffler wrote:
65 > >>> pkg-config --libs-only-L blas
66 > >>> -L//opt/acml5.3.1/gfortran64/lib
67 > >>>
68 > >>> cat /usr/lib64/pkgconfig/blas.pc
69 > >>> prefix=//opt/acml5.3.1/gfortran64
70 > >>> libdir=${prefix}/lib
71 > >>> includedir=${prefix}/include
72 > >>> Name: acml-gfortran64
73 > >>> Description: AMD Core Math Library for amd64 CPUs
74 > >>> Version: 5.3.1
75 > >>> URL:
76 > >>> http://developer.amd.com/tools/cpu-development/amd-core-math-library-acm
77 > >>> l/
78 > >>> Libs: -L${libdir} -lacml
79 > >>> Libs.private: -lm -lrt
80 > >>> Cflags: -I${includedir}
81 > >>>
82 > >>> ls -la /usr/lib64/pkgconfig/blas.pc
83 > >>> lrwxrwxrwx 1 root root 73 14. Jan 00:04 /usr/lib64/pkgconfig/blas.pc ->
84 > >>> ../../../etc/env.d/alternatives/blas/_current/usr/lib64/pkgconfig/blas.p
85 > >>> c
86 > >>>
87 > >>> Am 15.06.2014 23:32, schrieb François Bissey:
88 > >>>> OK so it looks sane, let's do some more sanity check as in the email
89 > >>>> I linked:
90 > >>>> pkg-config --libs-only-L blas
91 > >>>> cat /usr/lib64/pkgconfig/blas.pc
92 > >>>> ls -la /usr/lib64/pkgconfig/blas.pc
93 > >>>>
94 > >>>> On Sun, 15 Jun 2014 23:30:22 Bastian Löffler wrote:
95 > >>>>> Well of course i checked that:
96 > >>>>>
97 > >>>>> eselect blas list
98 > >>>>>
99 > >>>>> Available providers for blas:
100 > >>>>> [1] acml-gfortran64 *
101 > >>>>> [2] acml-gfortran64-openmp
102 > >>>>> [3] eigen
103 > >>>>> [4] reference
104 > >>>>>
105 > >>>>> SO my blas is acml-gfortran64.