← Back to team overview

dolfin team mailing list archive

Re: Linking pastix

 


On 17 Nov 2011, at 05:30, Johan Hake <johan.hake@xxxxxxxxx> 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.

Garth


> I am on a Natty Ubuntu.
> 
> Johan
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References