[Dakota-users] Cannot find BLAS library compiling DAKOTA for Mac OS X
Doug Reeder
dlr at rain.org
Thu Jul 17 17:00:10 MDT 2008
Paul,
I have found it difficult to pass the framework information. I would
try to just edit the Makefile to point to the right places, but I
think that configure fails so that you don't get a Makefile. Can you
point configure at a non-apple set of lapack and blas (you can
download them and build them w/ gfortran or ifort), just to get
through the configure step, and then edit the Makefile to point to
the framework.
Doug Reeder
On Jul 17, 2008, at 3:39 PM, Paul Sonda wrote:
> 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
>
> <config.log>_______________________________________________
> Dakota-users mailing list
> Dakota-users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/dakota-users
More information about the Dakota-users
mailing list