Re: [Libmesh-users] problems with pthread_spin_init
Thank you, I'll try to disable the pthreads. Michael. On 12/09/2019 07:00 PM, John Peterson wrote: On Mon, Dec 9, 2019 at 5:45 PM Povolotskyi, Mykhailo mailto:mpovo...@purdue.edu>> wrote: Hello John, due to some reasons I have to build my code on Windows. So, I have cygwin and I managed to locate several pthread.h. They are in the following directories: C:\cygwin64\usr\i686-pc-cygwin\sys-root\usr\include C:\cygwin64\usr\i686-w64-mingw32\sys-root\mingw\include C:\cygwin64\usr\include C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\include OK, well the best thing to do is probably configure with --disable-pthreads. Also you may want to look into something called "MSys2," as there was a user not long ago who I believe got everything to compile using that. https://github.com/libMesh/libmesh/pull/1388 -- John ___ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users
Re: [Libmesh-users] problems with pthread_spin_init
On Mon, Dec 9, 2019 at 5:45 PM Povolotskyi, Mykhailo wrote: > Hello John, > > due to some reasons I have to build my code on Windows. > > So, I have cygwin and I managed to locate several pthread.h. They are in > the following directories: > > C:\cygwin64\usr\i686-pc-cygwin\sys-root\usr\include > > C:\cygwin64\usr\i686-w64-mingw32\sys-root\mingw\include > > C:\cygwin64\usr\include > > C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\include > OK, well the best thing to do is probably configure with --disable-pthreads. Also you may want to look into something called "MSys2," as there was a user not long ago who I believe got everything to compile using that. https://github.com/libMesh/libmesh/pull/1388 -- John ___ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users
Re: [Libmesh-users] problems with pthread_spin_init
On Mon, Dec 9, 2019 at 5:02 PM Povolotskyi, Mykhailo 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