LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2014, 02:55 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Rep: Reputation: 9
failed to mention mpi libraries


Hi,

There a code, called BigDFT. I have tried to "configure" it with fortran mpif90 compiled through mpich-3.0.4 and I have compiled all mathematical libraries with the following paths:

Quote:
BLAS_LIBS= /home/Packages/BLAS/blas_LINUX.a
LAPACK_LIBS= /home/Packages/lapack-3.5.0/liblapack.a
BLACS_LIBS= /home/Packages/BLACS/LIB/blacsCinit_MPI-LINUX-0.a \
/home/Packages/BLACS/LIB/blacsF77init_MPI-LINUX-0.a \
/home/Packages/BLACS/LIB/blacs_MPI-LINUX-0.a
But, I always receive the following error:
Quote:
configure: error: "No blas library. Use --with-blas-path or check your Blas installation."
I'd be thankful if someone kindly help me solve this problem.

Last edited by sryzdn; 05-12-2014 at 03:09 AM.
 
Old 05-12-2014, 12:04 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
I'd start here --> http://bigdft.org/Wiki/index.php?title=Installation. However, it does seem the configure script is telling you how to solve the problem already.
 
Old 05-12-2014, 01:46 PM   #3
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by weibullguy View Post
I'd start here --> http://bigdft.org/Wiki/index.php?title=Installation. However, it does seem the configure script is telling you how to solve the problem already.
I have read all of it and I have already addressed the Blas library to the configure command and yet no success.
 
Old 05-12-2014, 02:44 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,698

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
BigDFT will accept "libblas.a" ( or libblas.so ? ),
so I guess you can make a symlink : $ ln -s blas_LINUX.a libblas.a


? Why don't you just install the default *blas-dev* / *lapack-dev* etc.
prerequisites with your package manager ? ?

-
 
Old 05-12-2014, 08:48 PM   #5
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by knudfl View Post
BigDFT will accept "libblas.a" ( or libblas.so ? ),
so I guess you can make a symlink : $ ln -s blas_LINUX.a libblas.a
-
I sure did test that too. Didn't work.

Quote:
? Why don't you just install the default *blas-dev* / *lapack-dev* etc.
prerequisites with your package manager ? ?
I have other packages installed that work with them and they are so interconnected. That's why to keep things organized I install all of them seperately.
 
Old 05-12-2014, 11:13 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You can always look at config.log to see the source code of the test program that is causing configure to abort and the compiler command that the configure script is using to try to build it. That may give you some additional clues about what is missing (sometimes the error messages from autoconf/automake can be a bit misleading).
 
Old 05-13-2014, 12:28 AM   #7
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by btmiller View Post
You can always look at config.log to see the source code of the test program that is causing configure to abort and the compiler command that the configure script is using to try to build it. That may give you some additional clues about what is missing (sometimes the error messages from autoconf/automake can be a bit misleading).
Ok, I configured it as follows:

Quote:
./configure --with-blas-path="-L/home/sryzdn/Packages/BLAS" FC=/usr/local/bin/mpif90
yet, the config.log complains about not finding "lblas"?! I have enclosed the config.log. Could you please help me solve this problem?
Attached Files
File Type: txt config.log.txt (38.8 KB, 3 views)
 
Old 05-13-2014, 12:54 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,698

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
# 7 .

How about this :
`configure' will look for the "blas" that was used to build liblapack.a

Are you sure that blas_LINUX.a is the blas that liblapack.a was build with ?

-
 
Old 05-13-2014, 01:45 AM   #9
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by knudfl View Post
# 7 .

How about this :
`configure' will look for the "blas" that was used to build liblapack.a
-
It gives out same error.

Quote:
Are you sure that blas_LINUX.a is the blas that liblapack.a was build with ?
when I compiled lapack, I mentioned the following line in lapack "make.inc"

Quote:
BLASLIB = /home/sryzdn/Packages/BLAS/blas_LINUX.a
So, I think, yes, lapack was made with blas_LINUX.a.
 
Old 05-13-2014, 11:37 AM   #10
ejspeiro
Member
 
Registered: Feb 2011
Distribution: Ubuntu 14.04 LTS (Trusty Tahr)
Posts: 203

Rep: Reputation: 26
When I install the BLAS, I usually make sure the resulting .a file is called libblas.a due to the well-known linking convention.

Is this building process expecting a libblas.a?

\m/
 
Old 05-13-2014, 11:52 AM   #11
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Eduardo,

As I have mentioned in my posts above the .a file is "Blas_linux.a" in the path: "/home/sryzdn/Packages/BLAS"
Looking at what bigdft site says, I don't know why "configure" does not recognize the path of the libraries I mention?!
 
Old 05-13-2014, 11:57 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,698

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
# 10 .

Seems libblas.so was used, in this example ..
Code:
$ ldd bigdft                                   
        liblapack.so.3 => /usr/lib/atlas/liblapack.so.3 (0xb71db000)   
        libblas.so.1.1 => /usr/lib/libblas.so.1.1 (0xb7145000)         
        librt.so.1 => /lib/i686/librt.so.1 (0xb713c000)                
        libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0xb7043000)     
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6fe4000)               
        libquadmath.so.0 => /usr/lib/libquadmath.so.0 (0xb6f6c000)     
        libc.so.6 => /lib/i686/libc.so.6 (0xb6dbf000)                  
        libf77blas.so.3 => /usr/lib/atlas/libf77blas.so.3 (0xb6da0000) 
        libcblas.so.3 => /usr/lib/atlas/libcblas.so.3 (0xb6d7f000)     
        libatlas.so.3 => /usr/lib/atlas/libatlas.so.3 (0xb6a5d000)
 
Old 05-13-2014, 02:14 PM   #13
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
I am able to configure against the ACML and Netlib BLAS on my machine. With a known, broken ATLAS BLAS library, I can't because BigDFT is unable to use dcopy (same error as your config.log). I would look more closely at your BLAS library. Perhaps try to build BigDFT against a different BLAS library and see if you have any success.
 
Old 05-13-2014, 08:53 PM   #14
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Would you please send me the command by which you have configured BigDft?
 
Old 05-14-2014, 01:47 PM   #15
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
I was simply using
Code:
FC="mpif90" F77="mpif77" CC="mpicc" ./configure
But my installation of BLAS libraries differs from yours. I have 64-bit ACML, Netlib, Goto2, and ATLAS BLAS libraries installed in /usr/local/lib64/blas/{acml,netlib,goto,atlas}; 32-bit libraries in /usr/local/lib/blas/{acml,netlib,goto,atlas}. I use a script to select the BLAS implementation I want to use (think Gentoo's eselect) which creates symlinks in /usr/local/lib64 (/usr/local/lib). In addition, I create pkgconfig files for each implementation and my script also creates symlinks to the correct *.pc file.

Since I use the pkgconfig files, I don't need to pass the --with-blas-path to the BigDFT configure script. However, if I pass
Code:
--with-blas-path="/usr/local/lib64/netlib"
, the BigDFT configure script properly links against the Netlib BLAS library even if I have another implementation selected "system-wide." I would still suspect your BLAS library as the problem. Since you mention make.inc in an earlier post, I'm guessing you are using Netlib (Reference) BLAS.

Again, I would recommend trying to configure BigDFT against BLAS/LAPACK installed from your package manager to see if it works. If successful, this is more evidence your local BLAS library is borked. If not, it gives us more information to troubleshoot with.
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error in MPI_Init: Other MPI error, error stack:gethostbyname failed(errno 1) shilpiiitr Linux - Software 0 01-13-2014 02:44 PM
MPI programs freeze when accessing MPI shared file on Scientific Linux 6 Pizzicato Linux - Software 0 08-29-2012 07:41 AM
MPI vs LAM/MPI vs OpenMPI vs MPICH2 manojg Linux - General 0 11-28-2010 12:37 PM
Just thought I'd mention... trickykid General 14 09-05-2005 03:54 PM
alright! I'm the first one to mention Ivitit at LQ! mimithebrain Linux - Software 0 09-03-2004 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration