You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Sotiris Orfanou <or...@yahoo.com> on 2013/03/03 19:25:31 UTC

Problem with mesos-0.12 when running the command make

Hi, 
  I am trying to install mesos on my computer, but when I use the command make I get this output and it stops:

../../src/files/files.cpp:278:
56: error: no matching function for call to 'min(ssize_t&, long int)'
../../src/files/files.cpp:278:56: note: candidates are:
/usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& 
std::min(const _Tp&, const _Tp&, _Compare)
make[2]: *** [files/libmesos_no_third_party_la-files.lo] Error 1
make[2]: Leaving directory `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
make: *** [all-recursive] Error 1

What I have done so far:
1)I downloaded mesos with this command: 

git clone git://github.com/apache/mesos.git

2)Then
 I follow the steps of the readme file which is in the folder.I also use
 ./bootstrap before creating the directory build.After that,I run the 
command ../configure and it finishes without errors.However when I run 
make it stops with the above error.

Re: Problem with mesos-0.12 when running the command make

Posted by Benjamin Mahler <bm...@twitter.com>.
We've yet to release 0.12.0, I presume what you're calling 0.12.0 is
simply trunk. I'd advise against running off trunk, as we tend to
develop in an agile manner. This means that trunk is not held to a
gold standard, and may be broken!

Our releases, on the other hand, are generally vetted in a production
environment. Unfortunately we've been slow with gathering votes for
releases and so we have 0.11.0 in the queue and 0.12.0 coming up soon
as well.



On Tue, Mar 5, 2013 at 11:53 AM, Sotiris Orfanou <or...@yahoo.com> wrote:
> Ok.Thank you for your help but I was hoping to be able to work with
> mesos-0.12.0.I will try the fix you said for the version of mesos that I
> have now.If that doesn't work,I will work with mesos-0.9.0 because the
> project I am working now is working great with this version(0.9.0).
>
> I just thought that if I am going to update mesos, I will update to the
> latest release(0.12.0) because it has a lot of improvements which would help
> me a lot with my work.
>
> Thanks again for your help,
>                                     Sotiris.
>
>
> ________________________________
> From: Benjamin Mahler <bm...@twitter.com>
> To: Sotiris Orfanou <or...@yahoo.com>
> Cc: "mesos-dev@incubator.apache.org" <me...@incubator.apache.org>; Vinod
> Kone <vi...@twitter.com>
> Sent: Tuesday, March 5, 2013 9:29 PM
>
> Subject: Re: Problem with mesos-0.12 when running the command make
>
> Got it, unfortunately we don't run CI against gcc 4.6 so bugs like
> this creep up on trunk. I'd advise getting off trunk, the 0.10.0
> release candidate is here:
>
> http://people.apache.org/~benh/mesos-0.10.0-incubating-RC2/mesos-0.10.0-incubating.tar.gz
>
> If even that doesn't work, try the following fix to files.cpp:
>
> Before:
>   length = std::min(length, sysconf(_SC_PAGE_SIZE) * 16);
>
> After:
>   length = std::min(length, (ssize_t) sysconf(_SC_PAGE_SIZE) * 16);
>
> On Tue, Mar 5, 2013 at 1:40 AM, Sotiris Orfanou <or...@yahoo.com> wrote:
>> Hi,
>>
>> The operating system is ubutu-12.04.
>> Kernel version is 3.2.0-38-generic-pae.
>> Compiler version is gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) .
>>
>> As for the question if I am compiling from a release or trunk, I can't
>> really tell you because I don't know.
>>
>> As I have told you before, I downloaded mesos by writing this command in
>> my
>> terminal:
>> git clone git://github.com/apache/mesos.git
>>
>> Sorry if that don't help you.
>>
>> Sotiris
>> ________________________________
>> From: Benjamin Mahler <bm...@twitter.com>
>> To: "mesos-dev@incubator.apache.org" <me...@incubator.apache.org>
>> Cc: Sotiris Orfanou <or...@yahoo.com>
>> Sent: Monday, March 4, 2013 8:22 PM
>> Subject: Re: Problem with mesos-0.12 when running the command make
>>
>> Also, are you compiling from a release or trunk?
>>
>> On Mon, Mar 4, 2013 at 10:18 AM, Vinod Kone <vi...@twitter.com> wrote:
>>> Hi Sotiris,
>>>
>>> Could you let us know what OS (kernel version) and compiler version you
>>> are
>>> using?
>>>
>>> Thanks,
>>>
>>>
>>> @vinodkone
>>>
>>>
>>> On Sun, Mar 3, 2013 at 10:25 AM, Sotiris Orfanou
>>> <or...@yahoo.com>wrote:
>>>
>>>> Hi,
>>>>  I am trying to install mesos on my computer, but when I use the command
>>>> make I get this output and it stops:
>>>>
>>>> ../../src/files/files.cpp:278:
>>>> 56: error: no matching function for call to 'min(ssize_t&, long int)'
>>>> ../../src/files/files.cpp:278:56: note: candidates are:
>>>> /usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class
>>>> _Tp>
>>>> const _Tp& std::min(const _Tp&, const _Tp&)
>>>> /usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class
>>>> _Tp,
>>>> class _Compare> const _Tp&
>>>> std::min(const _Tp&, const _Tp&, _Compare)
>>>> make[2]: *** [files/libmesos_no_third_party_la-files.lo] Error 1
>>>> make[2]: Leaving directory
>>>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>>>> make[1]: *** [all] Error 2
>>>> make[1]: Leaving directory
>>>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>>>> make: *** [all-recursive] Error 1
>>>>
>>>> What I have done so far:
>>>> 1)I downloaded mesos with this command:
>>>>
>>>> git clone git://github.com/apache/mesos.git
>>>>
>>>> 2)Then
>>>>  I follow the steps of the readme file which is in the folder.I also use
>>>>  ./bootstrap before creating the directory build.After that,I run the
>>>> command ../configure and it finishes without errors.However when I run
>>>> make it stops with the above error.
>>
>>
>
>

Re: Problem with mesos-0.12 when running the command make

Posted by Sotiris Orfanou <or...@yahoo.com>.
Ok.Thank you for your help but I was hoping to be able to work with mesos-0.12.0.I will try the fix you said for the version of mesos that I have now.If that doesn't work,I will work with mesos-0.9.0 because the project I am working now is working great with this version(0.9.0). 

I just thought that if I am going to update mesos, I will update to the latest release(0.12.0) because it has a lot of improvements which would help me a lot with my work.

Thanks again for your help,
                                    Sotiris.

 


________________________________
 From: Benjamin Mahler <bm...@twitter.com>
To: Sotiris Orfanou <or...@yahoo.com> 
Cc: "mesos-dev@incubator.apache.org" <me...@incubator.apache.org>; Vinod Kone <vi...@twitter.com> 
Sent: Tuesday, March 5, 2013 9:29 PM
Subject: Re: Problem with mesos-0.12 when running the command make
 
Got it, unfortunately we don't run CI against gcc 4.6 so bugs like
this creep up on trunk. I'd advise getting off trunk, the 0.10.0
release candidate is here:

http://people.apache.org/~benh/mesos-0.10.0-incubating-RC2/mesos-0.10.0-incubating.tar.gz

If even that doesn't work, try the following fix to files.cpp:

Before:
  length = std::min(length, sysconf(_SC_PAGE_SIZE) * 16);

After:
  length = std::min(length, (ssize_t) sysconf(_SC_PAGE_SIZE) * 16);

On Tue, Mar 5, 2013 at 1:40 AM, Sotiris Orfanou <or...@yahoo.com> wrote:
> Hi,
>
> The operating system is ubutu-12.04.
> Kernel version is 3.2.0-38-generic-pae.
> Compiler version is gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) .
>
> As for the question if I am compiling from a release or trunk, I can't
> really tell you because I don't know.
>
> As I have told you before, I downloaded mesos by writing this command in my
> terminal:
> git clone git://github.com/apache/mesos.git
>
> Sorry if that don't help you.
>
> Sotiris
> ________________________________
> From: Benjamin Mahler <bm...@twitter.com>
> To: "mesos-dev@incubator.apache.org" <me...@incubator.apache.org>
> Cc: Sotiris Orfanou <or...@yahoo.com>
> Sent: Monday, March 4, 2013 8:22 PM
> Subject: Re: Problem with mesos-0.12 when running the command make
>
> Also, are you compiling from a release or trunk?
>
> On Mon, Mar 4, 2013 at 10:18 AM, Vinod Kone <vi...@twitter.com> wrote:
>> Hi Sotiris,
>>
>> Could you let us know what OS (kernel version) and compiler version you
>> are
>> using?
>>
>> Thanks,
>>
>>
>> @vinodkone
>>
>>
>> On Sun, Mar 3, 2013 at 10:25 AM, Sotiris Orfanou
>> <or...@yahoo.com>wrote:
>>
>>> Hi,
>>>  I am trying to install mesos on my computer, but when I use the command
>>> make I get this output and it stops:
>>>
>>> ../../src/files/files.cpp:278:
>>> 56: error: no matching function for call to 'min(ssize_t&, long int)'
>>> ../../src/files/files.cpp:278:56: note: candidates are:
>>> /usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp>
>>> const _Tp& std::min(const _Tp&, const _Tp&)
>>> /usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp,
>>> class _Compare> const _Tp&
>>> std::min(const _Tp&, const _Tp&, _Compare)
>>> make[2]: *** [files/libmesos_no_third_party_la-files.lo] Error 1
>>> make[2]: Leaving directory
>>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>>> make[1]: *** [all] Error 2
>>> make[1]: Leaving directory
>>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>>> make: *** [all-recursive] Error 1
>>>
>>> What I have done so far:
>>> 1)I downloaded mesos with this command:
>>>
>>> git clone git://github.com/apache/mesos.git
>>>
>>> 2)Then
>>>  I follow the steps of the readme file which is in the folder.I also use
>>>  ./bootstrap before creating the directory build.After that,I run the
>>> command ../configure and it finishes without errors.However when I run
>>> make it stops with the above error.
>
>

Re: Problem with mesos-0.12 when running the command make

Posted by Benjamin Mahler <bm...@twitter.com>.
Got it, unfortunately we don't run CI against gcc 4.6 so bugs like
this creep up on trunk. I'd advise getting off trunk, the 0.10.0
release candidate is here:

http://people.apache.org/~benh/mesos-0.10.0-incubating-RC2/mesos-0.10.0-incubating.tar.gz

If even that doesn't work, try the following fix to files.cpp:

Before:
  length = std::min(length, sysconf(_SC_PAGE_SIZE) * 16);

After:
  length = std::min(length, (ssize_t) sysconf(_SC_PAGE_SIZE) * 16);

On Tue, Mar 5, 2013 at 1:40 AM, Sotiris Orfanou <or...@yahoo.com> wrote:
> Hi,
>
> The operating system is ubutu-12.04.
> Kernel version is 3.2.0-38-generic-pae.
> Compiler version is gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) .
>
> As for the question if I am compiling from a release or trunk, I can't
> really tell you because I don't know.
>
> As I have told you before, I downloaded mesos by writing this command in my
> terminal:
> git clone git://github.com/apache/mesos.git
>
> Sorry if that don't help you.
>
> Sotiris
> ________________________________
> From: Benjamin Mahler <bm...@twitter.com>
> To: "mesos-dev@incubator.apache.org" <me...@incubator.apache.org>
> Cc: Sotiris Orfanou <or...@yahoo.com>
> Sent: Monday, March 4, 2013 8:22 PM
> Subject: Re: Problem with mesos-0.12 when running the command make
>
> Also, are you compiling from a release or trunk?
>
> On Mon, Mar 4, 2013 at 10:18 AM, Vinod Kone <vi...@twitter.com> wrote:
>> Hi Sotiris,
>>
>> Could you let us know what OS (kernel version) and compiler version you
>> are
>> using?
>>
>> Thanks,
>>
>>
>> @vinodkone
>>
>>
>> On Sun, Mar 3, 2013 at 10:25 AM, Sotiris Orfanou
>> <or...@yahoo.com>wrote:
>>
>>> Hi,
>>>  I am trying to install mesos on my computer, but when I use the command
>>> make I get this output and it stops:
>>>
>>> ../../src/files/files.cpp:278:
>>> 56: error: no matching function for call to 'min(ssize_t&, long int)'
>>> ../../src/files/files.cpp:278:56: note: candidates are:
>>> /usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp>
>>> const _Tp& std::min(const _Tp&, const _Tp&)
>>> /usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp,
>>> class _Compare> const _Tp&
>>> std::min(const _Tp&, const _Tp&, _Compare)
>>> make[2]: *** [files/libmesos_no_third_party_la-files.lo] Error 1
>>> make[2]: Leaving directory
>>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>>> make[1]: *** [all] Error 2
>>> make[1]: Leaving directory
>>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>>> make: *** [all-recursive] Error 1
>>>
>>> What I have done so far:
>>> 1)I downloaded mesos with this command:
>>>
>>> git clone git://github.com/apache/mesos.git
>>>
>>> 2)Then
>>>  I follow the steps of the readme file which is in the folder.I also use
>>>  ./bootstrap before creating the directory build.After that,I run the
>>> command ../configure and it finishes without errors.However when I run
>>> make it stops with the above error.
>
>

Re: Problem with mesos-0.12 when running the command make

Posted by Sotiris Orfanou <or...@yahoo.com>.
Hi, 


The operating system is ubutu-12.04.

Kernel version is 3.2.0-38-generic-pae.

Compiler version is gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) .
 
As for the question if I am compiling from a release or trunk, I can't really tell you because I don't know.

As I have told you before, I downloaded mesos by writing this command in my terminal:
git clone git://github.com/apache/mesos.git

Sorry if that don't help you. 


Sotiris


________________________________
 From: Benjamin Mahler <bm...@twitter.com>
To: "mesos-dev@incubator.apache.org" <me...@incubator.apache.org> 
Cc: Sotiris Orfanou <or...@yahoo.com> 
Sent: Monday, March 4, 2013 8:22 PM
Subject: Re: Problem with mesos-0.12 when running the command make
 
Also, are you compiling from a release or trunk?

On Mon, Mar 4, 2013 at 10:18 AM, Vinod Kone <vi...@twitter.com> wrote:
> Hi Sotiris,
>
> Could you let us know what OS (kernel version) and compiler version you are
> using?
>
> Thanks,
>
>
> @vinodkone
>
>
> On Sun, Mar 3, 2013 at 10:25 AM, Sotiris Orfanou <or...@yahoo.com>wrote:
>
>> Hi,
>>   I am trying to install mesos on my computer, but when I use the command
>> make I get this output and it stops:
>>
>> ../../src/files/files.cpp:278:
>> 56: error: no matching function for call to 'min(ssize_t&, long int)'
>> ../../src/files/files.cpp:278:56: note: candidates are:
>> /usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp>
>> const _Tp& std::min(const _Tp&, const _Tp&)
>> /usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp,
>> class _Compare> const _Tp&
>> std::min(const _Tp&, const _Tp&, _Compare)
>> make[2]: *** [files/libmesos_no_third_party_la-files.lo] Error 1
>> make[2]: Leaving directory
>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory
>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>> make: *** [all-recursive] Error 1
>>
>> What I have done so far:
>> 1)I downloaded mesos with this command:
>>
>> git clone git://github.com/apache/mesos.git
>>
>> 2)Then
>>  I follow the steps of the readme file which is in the folder.I also use
>>  ./bootstrap before creating the directory build.After that,I run the
>> command ../configure and it finishes without errors.However when I run
>> make it stops with the above error.

Re: Problem with mesos-0.12 when running the command make

Posted by Benjamin Mahler <bm...@twitter.com>.
Also, are you compiling from a release or trunk?

On Mon, Mar 4, 2013 at 10:18 AM, Vinod Kone <vi...@twitter.com> wrote:
> Hi Sotiris,
>
> Could you let us know what OS (kernel version) and compiler version you are
> using?
>
> Thanks,
>
>
> @vinodkone
>
>
> On Sun, Mar 3, 2013 at 10:25 AM, Sotiris Orfanou <or...@yahoo.com>wrote:
>
>> Hi,
>>   I am trying to install mesos on my computer, but when I use the command
>> make I get this output and it stops:
>>
>> ../../src/files/files.cpp:278:
>> 56: error: no matching function for call to 'min(ssize_t&, long int)'
>> ../../src/files/files.cpp:278:56: note: candidates are:
>> /usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp>
>> const _Tp& std::min(const _Tp&, const _Tp&)
>> /usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp,
>> class _Compare> const _Tp&
>> std::min(const _Tp&, const _Tp&, _Compare)
>> make[2]: *** [files/libmesos_no_third_party_la-files.lo] Error 1
>> make[2]: Leaving directory
>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory
>> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
>> make: *** [all-recursive] Error 1
>>
>> What I have done so far:
>> 1)I downloaded mesos with this command:
>>
>> git clone git://github.com/apache/mesos.git
>>
>> 2)Then
>>  I follow the steps of the readme file which is in the folder.I also use
>>  ./bootstrap before creating the directory build.After that,I run the
>> command ../configure and it finishes without errors.However when I run
>> make it stops with the above error.

Re: Problem with mesos-0.12 when running the command make

Posted by Vinod Kone <vi...@twitter.com>.
Hi Sotiris,

Could you let us know what OS (kernel version) and compiler version you are
using?

Thanks,


@vinodkone


On Sun, Mar 3, 2013 at 10:25 AM, Sotiris Orfanou <or...@yahoo.com>wrote:

> Hi,
>   I am trying to install mesos on my computer, but when I use the command
> make I get this output and it stops:
>
> ../../src/files/files.cpp:278:
> 56: error: no matching function for call to 'min(ssize_t&, long int)'
> ../../src/files/files.cpp:278:56: note: candidates are:
> /usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp>
> const _Tp& std::min(const _Tp&, const _Tp&)
> /usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp,
> class _Compare> const _Tp&
> std::min(const _Tp&, const _Tp&, _Compare)
> make[2]: *** [files/libmesos_no_third_party_la-files.lo] Error 1
> make[2]: Leaving directory
> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/sotiris/Desktop/spark-0.6.2/mesos/build/src'
> make: *** [all-recursive] Error 1
>
> What I have done so far:
> 1)I downloaded mesos with this command:
>
> git clone git://github.com/apache/mesos.git
>
> 2)Then
>  I follow the steps of the readme file which is in the folder.I also use
>  ./bootstrap before creating the directory build.After that,I run the
> command ../configure and it finishes without errors.However when I run
> make it stops with the above error.