On Wed, Oct 24, 2012 at 11:17 AM, Johannes Ring <[email protected]> wrote: > On Wed, Oct 24, 2012 at 7:43 AM, Anders Logg <[email protected]> wrote: >> On Tue, Oct 23, 2012 at 05:21:07PM +0200, Johannes Ring wrote: >> >>> >> There was a typo there, but this also works for me: >>> >> >>> >> -D LAPACK_LIBRARIES:FILEPATH=${ATLAS_DIR}/lib/liblapack.a \ >>> >> -D BLAS_LIBRARIES:FILEPATH=${ATLAS_DIR}/lib/libatlas.a >>
You can't just link to libatlas.a. You also need libf77blas.a >> This makes the FindLAPACK test pass, but then I get in trouble with >> the Armadillo test. The test program is failing with link errors: >> >> /scratch/fenics-test/lib/liblapack.a(ATL_dgelqf.o): In function `ATL_dgelqf': >> ATL_gelqf.c:(.text+0x235): undefined reference to `ATL_dgemoveT' >> ATL_gelqf.c:(.text+0x29d): undefined reference to `ATL_dgemoveT' >> ATL_gelqf.c:(.text+0x35b): undefined reference to `ATL_xerbla' >> etc > > These are defined in libatlas.a, so I guess it is not linked > correctly. I have made a patch for Dorsal that should fix this > (attached), at least it worked for me. > I always have trouble with Armadillo, and often can't relate the symptom to the cause. Setting ARMA_USE_WRAPPER in the Armadillo CMakeList.txt file usually makes things work for me. Garth >> Can you comment out the lines I added at the top of FindLAPACK.cmake >> and check whether you can build Armadillo? > > This is not needed since, when CMAKE_PREFIX_PATH is defined, CMake > will automatically search for header files and libraries in the path > given by CMAKE_PREFIX_PATH. > > Johannes > > _______________________________________________ > Mailing list: https://launchpad.net/~dolfin > Post to : [email protected] > Unsubscribe : https://launchpad.net/~dolfin > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

