On Tue, Aug 24, 2010 at 08:54:28AM +0100, Garth N. Wells wrote: > On Tue, 2010-08-24 at 09:51 +0200, Anders Logg wrote: > > On Tue, Aug 24, 2010 at 08:35:22AM +0100, Garth N. Wells wrote: > > > On Tue, 2010-08-24 at 09:06 +0200, Anders Logg wrote: > > > > On Tue, Aug 24, 2010 at 08:56:10AM +0200, Johannes Ring wrote: > > > > > On Tue, Aug 24, 2010 at 1:40 AM, Harish Narayanan > > > > > <harish.mli...@gmail.com> wrote: > > > > > > On 8/24/10 4:14 AM, Anders Logg wrote: > > > > > >> All packages except Trilinos work up to the point of linking now > > > > > >> where > > > > > >> I get errors pointing to undefined symbols: _camd_realloc, > > > > > >> _ccolamd_l_recommended, etc. > > > > > >> > > > > > >> I assume these are in AMD. The AMD libraries are added (in > > > > > >> FindCHOLMOD) but for some reason libcholmod.a appears after > > > > > >> libamd.a > > > > > >> on the link line. I can't figure out where that order comes from or > > > > > >> how to change it. > > > > > >> > > > > > >> Any ideas? > > > > > > > > > > > > Johannes can fix this. We've been through *all* this before. > > > > > > > > > > Well, in cholmod.py in simula-scons we had this link line: > > > > > > > > > > -L/some/path -lcholmod -lamd -lcamd -lcolamd -lccolamd -llapack > > > > > -lblas > > > > > > > > > > On darwin we had "-framework vecLib" instead of "-llapack -lblas". > > > > > > > > > > If CHOLDMOD was built with METIS (as Dorsal does) we also added > > > > > "-lmetis". > > > > > > > > Can you see if you can get this to work in CMake? > > > > > > > > > > Did you try changing the order of the libs in the FindFoo.cmake files? I > > > assumed that you tried this, but that CMake wasn't respecting the order. > > > > > > Garth > > > > Yes, I'm doing > > > > set(CHOLMOD_LIBRARIES "${CHOLMOD_LIBRARY};${AMD_LIBRARIES}") > > > > But the cholmod library shows up in more than one place, in one of > > which it is not followed by amd. > > > > Should the order be reversed? > > Garth
Same results. -- Anders _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp