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 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.

Reply via email to