Re: Can't compile because of -lpthreads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 14, 2017 at 9:13 PM, kefu chai <tchaikov@xxxxxxxxx> wrote:
> On Tue, Mar 14, 2017 at 8:57 PM, Spandan Kumar Sahu
> <spandankumarsahu@xxxxxxxxx> wrote:
>> On Tue, Mar 14, 2017 at 6:23 PM, kefu chai <tchaikov@xxxxxxxxx> wrote:
>>> On Tue, Mar 14, 2017 at 6:33 PM, Spandan Kumar Sahu
>>> <spandankumarsahu@xxxxxxxxx> wrote:
>>>> Hey everyone,
>>>>
>>>> I am interested in contributing to Ceph and thus I tried to build the
>>>> source code but unfortunately it has some errors. I will list out the
>>>> steps I did:
>>>>
>>>>  * Clone the ceph/ceph.git repo from github on my local machine
>>>>  * `./install_deps.sh`
>>>>  * `./do_cmake.sh`
>>>>
>>>> Now the last command shows some errors. This[1] is the output of
>>>> CMakeError.log file
>>>>  while this[2]. I am using Ubuntu 16.04 LTS.
>>>>
>>>> The particular problem is that my system can't recognise `-lpthreads`
>>>> but it recognises `-pthread` and `-lpthread`. I had tried a lot to
>>>> search this on the internet and also tried out all the stuff described
>>>> in the stackoverflow results but all in vain. I am familiar with
>>>> Makefiles but not so familiar with CMake files and thus couldn't
>>>> really find a solution. I would be really glad if someone could help!
>>>
>>> what cmake version are you using? it looks like a bug in cmake's
>>> FindThreads module.
>>  I am using CMake version 3.5.1
>>
>>> it should try with -lpthread and -pthread also.
>>
>> How can I change the CMakeList file to include -pthread instead of
>> -lpthreads? I have used Makefiles before, but I am not proficient in
>> CMakefiles.
>
>
> i checked http://paste.ubuntu.com/24175794/ and cmake 3.5.1, the cmake
> module did try "-lpthread" after it failed to link with "-lthreads".
> and "-lthread"
> worked fine.

sorry, should be "-lpthread".


>
> maybe you could pastebin "some errors" from cmake instead.
>
>>
>>>
>>>>
>>>> Cc'ing some people who have worked with CMakeLists.txt
>>>>
>>>> [1]: http://paste.ubuntu.com/24175792/
>>>> [2]: http://paste.ubuntu.com/24175794/
>>>>
>>>> --
>>>> Spandan Kumar Sahu
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>>
>>>
>>> --
>>> Regards
>>> Kefu Chai
>>
>>
>>
>> --
>> Spandan Kumar Sahu
>> UG 2nd Year ( Dual Degree)
>> Computer Science and Engineering Department
>> IIT Kharagpur
>
>
>
> --
> Regards
> Kefu Chai



-- 
Regards
Kefu Chai
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux