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 <[email protected]> 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 <[email protected]>
> To: "[email protected]" <[email protected]>
> Cc: Sotiris Orfanou <[email protected]>
> 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 <[email protected]> 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
>> <[email protected]>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.
>
>

Reply via email to