On Thursday November 17 2011 10:34:42 Garth N. Wells wrote: > On 17 November 2011 18:30, Johan Hake <johan.h...@gmail.com> wrote: > > On Thursday November 17 2011 02:36:56 Garth N. Wells wrote: > >> On 17 November 2011 07:36, Johan Hake <johan.h...@gmail.com> wrote: > >> > On Wednesday November 16 2011 23:12:32 Garth N. Wells wrote: > >> >> On 17 Nov 2011, at 05:30, Johan Hake <johan.h...@gmail.com> wrote: > >> >> > Hello! > >> >> > > >> >> > I have problems with the CMake configure script trying to find > >> >> > pastix. It fails with the following: > >> >> > > >> >> > /usr/lib/ccache/gcc -DCHECK_FUNCTION_EXISTS=pthread_create > >> >> > -fopenmp CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o > >> >> > -o cmTryCompileExec - rdynamic -lpthreads > >> >> > /usr/bin/ld: cannot find -lpthreads > >> >> > collect2: ld returned 1 exit status > >> >> > gmake[1]: *** [cmTryCompileExec] Error 1 > >> >> > gmake[1]: Leaving directory `/home/hake/bzr/fenics/dolfin/dolfin- > >> >> > gpu/build/CMakeFiles/CMakeTmp' > >> >> > gmake: *** [cmTryCompileExec/fast] Error 2 > >> >> > > >> >> > Does anyone know why pthreads get added to the the linking? If I > >> >> > remove -lpthreads from the linkning it passes just fine. > >> >> > >> >> Configuring PaStiX is complicated and pthreads is usually required. > >> >> The PaStiX cake module needs to do some proper testing. It's very > >> >> primitive at the moment. > >> > > >> > Ok, then I suggest we disable it by default. > >> > >> pthread is not added manually anywhere, so its should not be added by > >> the build system unless it's available on your system. It's most > >> likely being added as a BLAS flag. Which BLAS are you using? > > > > Good question... How do I find that out? > > Lots of printing from CMake . . . > > message(STATUS "The are the flags: ${BLAS_LIBRARIES}")
/usr/lib/libatlas.so > Anyway, why is PaStiX being picked up? Have you installed it in /usr/local? It is installed automatically by the petsc dorsal script. Johan > Garth > > > Johan > > > >> Garth > >> > >> > Johan > >> > > >> >> Garth > >> >> > >> >> > I am on a Natty Ubuntu. > >> >> > > >> >> > Johan > >> >> > > >> >> > _______________________________________________ > >> >> > Mailing list: https://launchpad.net/~dolfin > >> >> > Post to : dolfin@lists.launchpad.net > >> >> > Unsubscribe : https://launchpad.net/~dolfin > >> >> > More help : https://help.launchpad.net/ListHelp > >> >> > >> >> _______________________________________________ > >> >> Mailing list: https://launchpad.net/~dolfin > >> >> Post to : dolfin@lists.launchpad.net > >> >> Unsubscribe : https://launchpad.net/~dolfin > >> >> More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp