[Dakota-users] [Dakota-developers] Cannot find BLAS library compiling DAKOTA for Mac OS X
Bohnhoff, William J
wjbohnh at sandia.gov
Thu Jul 17 23:11:06 MDT 2008
Paul,
Rather than specifying explicit paths using '--with-blas' and '--with-lapack' settings, you could try defining the LDFLAGS environment variable; e.g. if doing so on the configure line:
./confiigure 'LDFLAGS=-framework vecLib' ...
At least hat technique works for me on my mac. Hope it works for you as well. Good luck,
--Bill
________________________________________
From: dakota-developers-bounces at development.sandia.gov [dakota-developers-bounces at development.sandia.gov] On Behalf Of Paul Sonda [paul.sonda at gmail.com]
Sent: Thursday, July 17, 2008 4:39 PM
To: dakota-users at software.sandia.gov
Subject: [Dakota-developers] [Dakota-users] Cannot find BLAS library compiling DAKOTA for Mac OS X
Hello,
I have been using Dakota successfully with the compiled Linux binaries. I would like to compile Dakota for our Darwin cluster but am experiencing difficulties linking to the BLAS libraries. This is the command that I use to configure the makefile:
./configure --disable-mpi --without-dot --without-npsol --without-x --without-xpm --without-graphics --with-blas=/System/Library/Frameworks/vecLib.framework/vecLib --with-lapack=/System/Library/Frameworks/vecLib.framework/vecLib
Note that this is a simple configure script without a lot of the bells and whistles and that I am linking to the single-precision BLAS library that comes with OS X.
When I run the configure script, I get the following error, "Cannot find blas library, specify a path using --with-ldflags=-I<DIR> (ex. --with-ldflags=-I/usr/path/lib) or a specific library using --with-blas=DIR/LIB (for example --with-blas=/usr/path/lib/libcxml.a)".
I have attached the config.log file. Essentially, it fails with an ld: Undefined symbol while searching for sgemm in what **should be** the correct library path.
I have tried to include the path in "--with-ldflags=", BLAS_LIBS and LD_LIBRARY_PATH, also adjusting some compiler settings to try to address the Fortran underscore issue . I have seen the same error when trying to link to ATLAS BLAS/LAPACK, which we have already used successfully with the MUMPS solver libraries. My default compilers are gcc and xlf, but I have also tried cc in place of gcc, and an Absoft Fortran compiler in place of xlf. The error message is always the same.
I am out of ideas as to why I can't resolve this seemingly simple issue. Hopefully somebody in this user's group can help me :).
Thanks for your time,
Paul Sonda
More information about the Dakota-users
mailing list