Dear Mr. Wells, Thanks for your guidance!
I have checked whether our system has libpthread.so or not. Indeed, we have the library installed in /usr/lib64 as shown in the below find results [image: Hình ảnh nội tuyến 1] So I guess this would not be the cause of the error ... Yours sincerely, Nguyen Thien Binh 2016-07-09 0:59 GMT+09:00 David Wells <[email protected]>: > Mr. Nguyen, > > Well, this is awkward. I looked over your files carefully and I see > nothing unusual in the configuration. CMake definitely, at some point, > recognizes that it needs to link against libpthread but it never seems to > do it. I really hope that we can figure this out because it is probably a > bug in our CMake code. > > I think that one way to get around this temporarily would be to compile > the library without threads, i.e., compile it with the flag > -DDEAL_II_WITH_THREADS=OFF. That should let you compile the library but you > won't be able to use threads (bad, but better than nothing). > > I am running out of explanations for this error. Would you humor me and > check that you do have /usr/lib/libpthread.so or /usr/lib64/libpthread.so > on your system? Perhaps the libraries are in some strange place that CMake > cannot find. > > Thanks, > David Wells > > On Tuesday, July 5, 2016 at 12:02:43 AM UTC-4, deal.II newbie wrote: >> >> Dear Mr. Wells, >> >> Thanks for your help again! >> >> I would like to send you the detailed.log as well as summary.log and >> quicktests.log. Could you please have a check on the attachment? >> >> I hope these will give some information about the error. >> >> Yours sincerely, >> Nguyen Thien Binh >> >> 2016-07-05 6:40 GMT+09:00 David Wells <[email protected]>: >> >>> Mr. Nguyen, >>> >>> Not a problem; I hope that I can help :) >>> >>> That is odd; it doesn't seem to have linked (or tried to link) against >>> libpthread at all. This implies that (since it compiled successfully) it >>> never tried to link with libpthread. Would you please post the file >>> detailed.log (should be in your build directory)? Mine specifies the >>> variable THREAD_LINKER_FLAGS; I suspect that variable is not correct in >>> your copy. >>> >>> Thanks, >>> David Wells >>> >>> >>> On Sun, Jul 3, 2016 at 9:30 PM, Thien Binh Nguyen <[email protected]> >>> wrote: >>> >>>> Dear Mr. Wells, >>>> >>>> Thank you very much for your prompt response, and I am also sorry for >>>> my late reply! >>>> >>>> When ldd either to libdeal_II.so or libdeal_II.g.so, I received the >>>> following messages >>>> >>>> [image: Hình ảnh nội tuyến 1] >>>> As you noticed, I compiled Deal.II with root privilege. I was trying to >>>> re-installed and complied Deal.II with my own account. But I still got the >>>> same error messages. >>>> >>>> Thank you very much! >>>> >>>> Yours sincerely, >>>> Nguyen Thien Binh >>>> >>>> 2016-07-01 23:42 GMT+09:00 David Wells <[email protected]>: >>>> >>>>> Hi there, >>>>> >>>>> Well that is something I have not seen before: it looks like it did >>>>> not link correctly to your copy of libpthread.so. To confirm this, could >>>>> you run >>>>> >>>>> ldd build-directory/lib/libdeal_II.so >>>>> >>>>> (where build-directory is whereever you compiled the library) >>>>> >>>>> and see if it did not find a particular library. >>>>> >>>>> Since it looks like the library is in '/root/': did you compile this >>>>> as root? If so weird things can happen; you should build it as an >>>>> unprivileged user. >>>>> >>>>> Thanks, >>>>> David Wells >>>>> >>>>> On Thursday, June 30, 2016 at 2:00:22 AM UTC-4, deal.II newbie wrote: >>>>>> >>>>>> Hi! I am a newbie to Deal.II. After the installation, I typed the >>>>>> command make test for running the quick tests. But all four tests failed >>>>>> out of four. The reason listed below in the quicktests.log is the same >>>>>> for >>>>>> all 4 tests. I would like to ask if anyone could please help indicate >>>>>> what >>>>>> the error is and how to fix it? Any help or hints would be much >>>>>> appreciated! Thank you very much in advance! >>>>>> >>>>>> The error is the same for all 4 tests as follows, >>>>>> >>>>>> Scanning dependencies of target tbb.debug >>>>>> [100%] Building CXX object >>>>>> tests/quick_tests/CMakeFiles/tbb.debug.dir/tbb.cc.o >>>>>> /root/dealii-8.4.1/tests/quick_tests/tbb.cc:49:6: warning: unused >>>>>> parameter ‘scratch’ [-Wunused-parameter] >>>>>> Linking CXX executable tbb.debug >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_mutexattr_destroy' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to `pthread_join' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_detach' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_barrier_wait' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_mutexattr_settype' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_mutex_trylock' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_barrier_init' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to `sem_wait' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to `sem_init' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_getspecific' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_setspecific' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to `sem_destroy' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_create' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_key_delete' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_key_create' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_mutexattr_init' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_attr_getstack' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_barrier_destroy' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to `sem_post' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_getattr_np' >>>>>> ../../lib/libdeal_II.g.so.8.4.1: undefined reference to >>>>>> `pthread_attr_setstacksize' >>>>>> collect2: error: ld returned 1 exit status >>>>>> gmake[7]: *** [tests/quick_tests/tbb.debug] Error 1 >>>>>> gmake[6]: *** [tests/quick_tests/CMakeFiles/tbb.debug.dir/all] Error 2 >>>>>> gmake[5]: *** [tests/quick_tests/CMakeFiles/tbb.debug.run.dir/rule] >>>>>> Error 2 >>>>>> gmake[4]: *** [tbb.debug.run] Error 2 >>>>>> >>>>>> -- >>>>> The deal.II project is located at http://www.dealii.org/ >>>>> For mailing list/forum options, see >>>>> https://groups.google.com/d/forum/dealii?hl=en >>>>> --- >>>>> You received this message because you are subscribed to a topic in the >>>>> Google Groups "deal.II User Group" group. >>>>> To unsubscribe from this topic, visit >>>>> https://groups.google.com/d/topic/dealii/fEyQCtucvjg/unsubscribe. >>>>> To unsubscribe from this group and all its topics, send an email to >>>>> [email protected]. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> The deal.II project is located at http://www.dealii.org/ >>>> For mailing list/forum options, see >>>> https://groups.google.com/d/forum/dealii?hl=en >>>> --- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "deal.II User Group" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/dealii/fEyQCtucvjg/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> The deal.II project is located at http://www.dealii.org/ >>> For mailing list/forum options, see >>> https://groups.google.com/d/forum/dealii?hl=en >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "deal.II User Group" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/dealii/fEyQCtucvjg/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to a topic in the > Google Groups "deal.II User Group" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/dealii/fEyQCtucvjg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
