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 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.
it should try with -lpthread and -pthread also.

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