On Mon, Dec 9, 2019 at 5:02 PM Povolotskyi, Mykhailo <mpovo...@purdue.edu>
wrote:

> Dear Libmesh developers,
>
> I have problems when I include the header files (see bellow).
>
> I'll be happy to provide any other files that might help.
>
> Thank you,
>
> Michael.
>
>
> In file included from
>
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/threads.h:104:0,
>                   from
>
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/reference_counter.h:25,
>                   from
>
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/reference_counted_object.h:24,
>                   from
>
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/dof_object.h:28,
>                   from
>
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/mesh_base.h:25,
>                   from
>
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/unstructured_mesh.h:24,
>                   from
>
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/replicated_mesh.h:24,
>                   from
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/mesh.h:30,
>                   from ImportMesh.C:2:
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/threads_pthread.h:
>
> In constructor ‘libMesh::Threads::spin_mutex::spin_mutex()’:
> /home/michael/libs/libmesh/libmesh_install_1.5.1/include/libmesh/threads_pthread.h:146:18:
>
> error: ‘pthread_spin_init’ was not declared in this scope
>     spin_mutex() { pthread_spin_init(&slock, PTHREAD_PROCESS_PRIVATE); }
>


Hi,

It looks like you are on a system with a non-standard pthreads
implementation? It appears that LIBMESH_HAVE_PTHREAD is true, so the
relevant configure tests passed, but it doesn't test for
pthread_spin_init(). I'm skeptical of this... can you locate pthread.h on
your system and let us know where it comes from, etc., especially if it is
not the GNU C one?

-- 
John

_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to