Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
issue with sci-libs/blas&lapack [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Thu Oct 25, 2007 10:35 pm    Post subject: issue with sci-libs/blas&lapack [solved] Reply with quote

hi,
i emerged sci-libs/blas-atlas
all ok, but

pkg-config --libs blas (To link with FORTRAN 77 BLAS library)
(suggest at http://www.gentoo.org/proj/en/science/blas-lapack.xml)

reports error

Code:
Package blas was not found in the pkg-config search path.
Perhaps you should add the directory containing `blas.pc'
to the PKG_CONFIG_PATH environment variable
No package 'blas' found


emerging sci-libs/lapack-atlas fails with this error

Code:

libtool --mode=compile --tag=F77 gfortran -O2 -mabi=altivec -fno-strict-aliasing -pipe -c zunmtr.f
..
-L/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1 /usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/libgfortran.so  -Wl,-soname -Wl,liblapack.so.0 -o .libs/liblapack.so.0.0.0
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/../../../../powerpc-unknown-linux-gnu/bin/ld: cannot find -lblas
collect2: ld returned 1 exit status

!!! ERROR: sci-libs/lapack-atlas-3.7.11 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3950:   Called src_compile
  lapack-atlas-3.7.11.ebuild, line 179:   Called die

!!! Failed to create liblapack.la
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sci-libs/lapack-atlas-3.7.11/temp/build.log'.




cannot find -lblas: how to fix it ?


Last edited by ddc on Mon Oct 29, 2007 8:07 am; edited 1 time in total
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Oct 25, 2007 11:55 pm    Post subject: Reply with quote

The doc is a bit ahead of themselves here. It may work properly with the next version
of blas-atlas but it doesn't with the one in arch right now.
pkg-config doesn't work because blas-atlas doesn't have a .pc file (or may be it doesn't get
installed).
I just switched to blas-reference which has a .pc file and it worked straight away.
Configuring pkg-config is probably not that important anyway. Unless you have
a lot of out of tree stuff that require its functionality.
The failure of lapack-atlas is more curious. Is blas-atlas properly selected properly
with eselect?
Code:
 eselect blas set atlas
as root should make sure it is.
Then retry.
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Fri Oct 26, 2007 8:35 am    Post subject: Reply with quote

Quote:

The failure of lapack-atlas is more curious. Is blas-atlas properly selected properly
with eselect?
Code:
 eselect blas set atlas

as root should make sure it is.
Then retry.


Quote:

Implementation "atlas" already active for library directory "lib"!
Failed to switch to implementation "atlas" for library directory "lib"!
Error: One or more actions have failed!


what does it mean ?
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Oct 26, 2007 9:05 am    Post subject: Reply with quote

That's not a problem, it means that atlas was already selected.
OK the message may be a bit frightening but it is nothing to worry
about.
If lapack still fail post more of the error message please it may help
figure what's going wrong. Also if there is a problem could you post
the output of "eix sys-devel/gcc"?
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Fri Oct 26, 2007 10:27 am    Post subject: Reply with quote

it fails ...
i uploaded the build.log on ftp 'cause it is too big to be posted here
see http://www.webalice.it/mr.ddc/build.log


Code:
eix sys-devel/gcc


Quote:
[I] sys-devel/gcc
Available versions:
(2.95) [P]2.95.3-r9 [P]~2.95.3-r10
(3.1) [P]-3.1.1-r2
(3.2) [P]**3.2.2 [P]3.2.3-r4
(3.3) *3.3.2-r7 *3.3.5-r1 *3.3.5.20050130-r1 *3.3.6 *3.3.6-r1
(3.4) 3.4.1-r3 3.4.4-r1 ~3.4.5 3.4.5-r1 ~3.4.6 3.4.6-r1 3.4.6-r2
(4.0) ~*4.0.3 ~*4.0.4
(4.1) ~4.1.0-r1 4.1.1 4.1.1-r1 4.1.1-r3 4.1.2
(4.2) ~4.2.0
{X altivec bootstrap boundschecking build d doc fortran gcj gtk hardened ip28 ip32r10k java mudflap multilib multislot n32 n64 nls nocxx nopie nossp objc objc++ objc-gc openmp static test vanilla}
Installed versions: 3.4.6-r2(3.4)(23:34:21 09/26/07)(-altivec -bootstrap -boundschecking -build -d -doc fortran -gcj -gtk -hardened -ip28 -ip32r10k -multilib -multislot -n32 -n64 nls -nocxx -nopie -nossp -objc -test -vanilla)
4.1.2(4.1)(08:27:49 09/24/07)(altivec -bootstrap -build -d -doc fortran gcj -gtk -hardened -ip28 -ip32r10k mudflap -multilib -multislot -n32 -n64 nls -nocxx -objc -objc++ -objc-gc -test -vanilla)
Homepage: http://gcc.gnu.org/
Description: The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking

[I] sys-devel/gcc-config
Available versions: 1.3.13-r4 1.3.14 1.3.15-r1 1.3.16 ~1.4.0-r2 [M]~2.0.0_rc1
Installed versions: 1.3.16(22:52:39 09/19/07)
Homepage: http://www.gentoo.org/
Description: Utility to configure the active toolchain compiler

* sys-devel/gcc-nios2
Available versions: (nios2-elf-3.4) ~5.1
{multislot test}
Homepage: http://gcc.gnu.org/
Description: Compiler for Nios2 targets

Found 3 matches.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Fri Oct 26, 2007 6:38 pm    Post subject: Reply with quote

Very curious. Output of
Code:
ls -la /usr/lib/libblas*
and
Code:
ls -la /usr/lib/libcblas*
please!
EDIT:
And while I am thinking about it give us the output of
Code:
ls -la /usr/lib/blas/atlas/libblas*
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Oct 27, 2007 3:35 pm    Post subject: Reply with quote

there are no /usr/lib/libblas* or /usr/lib/libcblas*

Quote:

And while I am thinking about it give us the output of
Code:
ls -la /usr/lib/blas/atlas/libblas*





Code:

-rw-r--r-- 1 root root 367244 Oct 25 23:27 /usr/lib/blas/atlas/libblas.a
-rwxr-xr-x 1 root root    892 Oct 25 23:27 /usr/lib/blas/atlas/libblas.la
lrwxrwxrwx 1 root root     16 Oct 25 23:27 /usr/lib/blas/atlas/libblas.so -> libblas.so.0.0.0
lrwxrwxrwx 1 root root     16 Oct 25 23:27 /usr/lib/blas/atlas/libblas.so.0 -> libblas.so.0.0.0
-rwxr-xr-x 1 root root 148556 Oct 25 23:27 /usr/lib/blas/atlas/libblas.so.0.0.0
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sat Oct 27, 2007 4:27 pm    Post subject: Reply with quote

i did this
Code:

ln -s /usr/lib/blas/atlas/libblas.a         /usr/lib/libblas.a
ln -s /usr/lib/blas/atlas/libblas.la        /usr/lib/libblas.la
ln -s /usr/lib/blas/atlas/libblas.so        /usr/lib/libblas.so
ln -s /usr/lib/blas/atlas/libblas.so.0      /usr/lib/libblas.so.0
ln -s /usr/lib/blas/atlas/libblas.so.0.0.0  /usr/lib/libblas.so.0.0.0


and emerge --resume
all is ok, but ....
... now, i'm stopped here

emerge sci-libs/cblas-reference-20030223-r4


Quote:

appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for powerpc-unknown-linux-gnu-gfortran option to produce PIC... -fPIC
checking if powerpc-unknown-linux-gnu-gfortran PIC flag -fPIC works... yes
checking if powerpc-unknown-linux-gnu-gfortran static flag -static works... yes
checking if powerpc-unknown-linux-gnu-gfortran supports -c -o file.o... yes
checking whether the powerpc-unknown-linux-gnu-gfortran linker (/usr/powerpc-unknown-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking for powerpc-unknown-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BLAS... configure: error: Package requirements (blas) were not met:

No package 'blas' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BLAS_CFLAGS
and BLAS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sci-libs/cblas-reference-20030223-r4/work/CBLAS/config.log

!!! ERROR: sci-libs/cblas-reference-20030223-r4 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3727: Called src_compile
cblas-reference-20030223-r4.ebuild, line 35: Called econf '--libdir=/usr/lib/blas/reference'
ebuild.sh, line 577: Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sci-libs/cblas-reference-20030223-r4/temp/build.log'.





my goal is:
emerge -p sci-mathematics/scilab

[ebuild N ] sci-libs/cblas-reference-20030223-r4 USE="debug"
[ebuild N ] gnome-extra/gtkhtml-2.6.3 USE="debug -accessibility -test"
[ebuild N ] virtual/cblas-1.0
[ebuild N ] sci-mathematics/scilab-4.1 USE="debug gtk -Xaw3d -java -ocaml -tk"
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sat Oct 27, 2007 7:34 pm    Post subject: Reply with quote

It was the right idea about the links. Now you shouldn't need cblas-reference as atlas and gsl (which you
probably have installed already) can provide it. You need eselect-cblas which you should already have,
and use it to switch between either gsl or atlas. There should be links to libcblas like there should
have been for libblas.
If you don't already have them emerge the following:
virtual/blas
virtual/cblas
you don't need virtual/lapack as it is currently provided by lapack-atlas.
After that retry, you shouldn't need to install cblas-reference anymore.
For info in case your eselect is also broken with cblas (in which case there
is probably something wrong with your install of eselect) here are my links to
the atlas implementation of cblas:
Code:
ll /usr/lib/libcblas*
lrwxrwxrwx 1 root root 21 Jul 25 08:39 /usr/lib/libcblas.a -> blas/atlas/libcblas.a
lrwxrwxrwx 1 root root 22 Jul 25 08:39 /usr/lib/libcblas.so -> blas/atlas/libcblas.so
lrwxrwxrwx 1 root root 24 Jul 25 08:39 /usr/lib/libcblas.so.0 -> blas/atlas/libcblas.so.0
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Mon Oct 29, 2007 8:07 am    Post subject: Reply with quote

thank U a lot
algebra libraries and scilab are now correctly emerged, and they are correctly working

: )

solved
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum