Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread haosdent
Hi, @Alex Clemmer  I try to build it on OS X 10.10

```
mkdir build-cmake
cmake ..
make
```

But have this error:
```
CMake Error: The following variables are used in this project, but they are
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake
files:
LIBRT_LIBRARIES
linked by target "tests" in directory
/Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests

-- Configuring incomplete, errors occurred!
```

Any steps I wrong here?

On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio 
wrote:

> This is really cool!
> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion only
> support cmake, so I definitely have a stake in this working :)
>
> Please keep us posted on progress, I'll definitely try and give it a spin
> on Ubuntu and OSX.
> Thanks for doing it!
>
> *Marco Massenzio*
> *Distributed Systems Engineer*
>
> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer  >
> wrote:
>
> > On Wed, Jul 22, 2015 at 3:47 PM, Vinod Kone  wrote:
> > > This is exciting! Thanks for sharing the progress Alex.
> > >
> > > Mind sending us instructions on how to build/test with cmake for noobs
> > like
> > > me?
> >
> > Ah, rats, I knew I was forgetting something.
> >
> > It actually looks pretty much like the autotools build system:
> >
> > 1. Make sure you have all the "normal" system dependencies installed
> > (like APR, etc.)
> > 2. Make sure you have CMake 2.8 or later installed on your machine.
> > (On Ubuntu this looks like: `sudo apt-get install cmake`)
> > 3. Go to the root of your Mesos source tree and do something like the
> > following. Note that you will never have to run bootstrap or
> > configure, so you should _only_ have to run the following commands.
> >
> > mkdir build-cmake
> > cmake ..
> > make
> >
> > 4. Watch as it builds, and hopefully doesn't explode!
> >
> > Finally to run tests, you can do `make test ARGS="-V"`. They run
> > without ANSI colors right now, which is not ideal, but we know it's an
> > issue.
> >
> >
> > --
> > Alex
> >
> > Theory is the first term in the Taylor series of practice. -- Thomas M
> > Cover (1992)
> >
>



-- 
Best Regards,
Haosdent Huang


Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread Alex Clemmer
Thanks for reporting the issue! I appreciate it.

This code is trying to find librt, which provides the POSIX.1b
Realtime Extension (i.e., things like message passing, async I/O,
mmap'd files, etc.). Assuming you're running some flavor of Linux,
this _should_ exist on your system already, and `find_library` is the
CMake-standard function to find it, so it is not immediately clear to
me what went wrong here.

Do you mind if I ask what system you are running?

On Thu, Jul 23, 2015 at 1:16 AM, haosdent  wrote:
> Hi, @Alex Clemmer  I try to build it on OS X 10.10
>
> ```
> mkdir build-cmake
> cmake ..
> make
> ```
>
> But have this error:
> ```
> CMake Error: The following variables are used in this project, but they are
> set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake
> files:
> LIBRT_LIBRARIES
> linked by target "tests" in directory
> /Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests
>
> -- Configuring incomplete, errors occurred!
> ```
>
> Any steps I wrong here?
>
> On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio 
> wrote:
>
>> This is really cool!
>> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion only
>> support cmake, so I definitely have a stake in this working :)
>>
>> Please keep us posted on progress, I'll definitely try and give it a spin
>> on Ubuntu and OSX.
>> Thanks for doing it!
>>
>> *Marco Massenzio*
>> *Distributed Systems Engineer*
>>
>> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer > >
>> wrote:
>>
>> > On Wed, Jul 22, 2015 at 3:47 PM, Vinod Kone  wrote:
>> > > This is exciting! Thanks for sharing the progress Alex.
>> > >
>> > > Mind sending us instructions on how to build/test with cmake for noobs
>> > like
>> > > me?
>> >
>> > Ah, rats, I knew I was forgetting something.
>> >
>> > It actually looks pretty much like the autotools build system:
>> >
>> > 1. Make sure you have all the "normal" system dependencies installed
>> > (like APR, etc.)
>> > 2. Make sure you have CMake 2.8 or later installed on your machine.
>> > (On Ubuntu this looks like: `sudo apt-get install cmake`)
>> > 3. Go to the root of your Mesos source tree and do something like the
>> > following. Note that you will never have to run bootstrap or
>> > configure, so you should _only_ have to run the following commands.
>> >
>> > mkdir build-cmake
>> > cmake ..
>> > make
>> >
>> > 4. Watch as it builds, and hopefully doesn't explode!
>> >
>> > Finally to run tests, you can do `make test ARGS="-V"`. They run
>> > without ANSI colors right now, which is not ideal, but we know it's an
>> > issue.
>> >
>> >
>> > --
>> > Alex
>> >
>> > Theory is the first term in the Taylor series of practice. -- Thomas M
>> > Cover (1992)
>> >
>>
>
>
>
> --
> Best Regards,
> Haosdent Huang



-- 
Alex

Theory is the first term in the Taylor series of practice. -- Thomas M
Cover (1992)


Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread haosdent
Sure, I use OS X 10.10. Seems OS X don't have librt, don't add rt when the
operate system is OSX?

On Thu, Jul 23, 2015 at 6:22 PM, Alex Clemmer 
wrote:

> Thanks for reporting the issue! I appreciate it.
>
> This code is trying to find librt, which provides the POSIX.1b
> Realtime Extension (i.e., things like message passing, async I/O,
> mmap'd files, etc.). Assuming you're running some flavor of Linux,
> this _should_ exist on your system already, and `find_library` is the
> CMake-standard function to find it, so it is not immediately clear to
> me what went wrong here.
>
> Do you mind if I ask what system you are running?
>
> On Thu, Jul 23, 2015 at 1:16 AM, haosdent  wrote:
> > Hi, @Alex Clemmer  I try to build it on OS X 10.10
> >
> > ```
> > mkdir build-cmake
> > cmake ..
> > make
> > ```
> >
> > But have this error:
> > ```
> > CMake Error: The following variables are used in this project, but they
> are
> > set to NOTFOUND.
> > Please set them or make sure they are set and tested correctly in the
> CMake
> > files:
> > LIBRT_LIBRARIES
> > linked by target "tests" in directory
> > /Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests
> >
> > -- Configuring incomplete, errors occurred!
> > ```
> >
> > Any steps I wrong here?
> >
> > On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio 
> > wrote:
> >
> >> This is really cool!
> >> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion only
> >> support cmake, so I definitely have a stake in this working :)
> >>
> >> Please keep us posted on progress, I'll definitely try and give it a
> spin
> >> on Ubuntu and OSX.
> >> Thanks for doing it!
> >>
> >> *Marco Massenzio*
> >> *Distributed Systems Engineer*
> >>
> >> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer <
> clemmer.alexan...@gmail.com
> >> >
> >> wrote:
> >>
> >> > On Wed, Jul 22, 2015 at 3:47 PM, Vinod Kone 
> wrote:
> >> > > This is exciting! Thanks for sharing the progress Alex.
> >> > >
> >> > > Mind sending us instructions on how to build/test with cmake for
> noobs
> >> > like
> >> > > me?
> >> >
> >> > Ah, rats, I knew I was forgetting something.
> >> >
> >> > It actually looks pretty much like the autotools build system:
> >> >
> >> > 1. Make sure you have all the "normal" system dependencies installed
> >> > (like APR, etc.)
> >> > 2. Make sure you have CMake 2.8 or later installed on your machine.
> >> > (On Ubuntu this looks like: `sudo apt-get install cmake`)
> >> > 3. Go to the root of your Mesos source tree and do something like the
> >> > following. Note that you will never have to run bootstrap or
> >> > configure, so you should _only_ have to run the following commands.
> >> >
> >> > mkdir build-cmake
> >> > cmake ..
> >> > make
> >> >
> >> > 4. Watch as it builds, and hopefully doesn't explode!
> >> >
> >> > Finally to run tests, you can do `make test ARGS="-V"`. They run
> >> > without ANSI colors right now, which is not ideal, but we know it's an
> >> > issue.
> >> >
> >> >
> >> > --
> >> > Alex
> >> >
> >> > Theory is the first term in the Taylor series of practice. -- Thomas M
> >> > Cover (1992)
> >> >
> >>
> >
> >
> >
> > --
> > Best Regards,
> > Haosdent Huang
>
>
>
> --
> Alex
>
> Theory is the first term in the Taylor series of practice. -- Thomas M
> Cover (1992)
>



-- 
Best Regards,
Haosdent Huang


Deprecation/Removal of /master/shutdown endpoint

2015-07-23 Thread Jörg Schad
Hi,
just as a short reminder: With 0.23 we deprecated the /master/shutdown in
favor of the more consistent /master/teardown endpoint. See MESOS-2697 for
details.

With Mesos 0.24 we will remove the /master/shutdown endpoint completely.

Thanks!
Joerg


Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread Alex Clemmer
I've put up a pair of fixes, tested on OS X 10.10. They are here:

(1) https://reviews.apache.org/r/36740/
(2) https://reviews.apache.org/r/36741/

This should resolve the issues, and thanks again for the bug report.

On Thu, Jul 23, 2015 at 3:32 AM, haosdent  wrote:
> Sure, I use OS X 10.10. Seems OS X don't have librt, don't add rt when the
> operate system is OSX?
>
> On Thu, Jul 23, 2015 at 6:22 PM, Alex Clemmer 
> wrote:
>
>> Thanks for reporting the issue! I appreciate it.
>>
>> This code is trying to find librt, which provides the POSIX.1b
>> Realtime Extension (i.e., things like message passing, async I/O,
>> mmap'd files, etc.). Assuming you're running some flavor of Linux,
>> this _should_ exist on your system already, and `find_library` is the
>> CMake-standard function to find it, so it is not immediately clear to
>> me what went wrong here.
>>
>> Do you mind if I ask what system you are running?
>>
>> On Thu, Jul 23, 2015 at 1:16 AM, haosdent  wrote:
>> > Hi, @Alex Clemmer  I try to build it on OS X 10.10
>> >
>> > ```
>> > mkdir build-cmake
>> > cmake ..
>> > make
>> > ```
>> >
>> > But have this error:
>> > ```
>> > CMake Error: The following variables are used in this project, but they
>> are
>> > set to NOTFOUND.
>> > Please set them or make sure they are set and tested correctly in the
>> CMake
>> > files:
>> > LIBRT_LIBRARIES
>> > linked by target "tests" in directory
>> > /Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests
>> >
>> > -- Configuring incomplete, errors occurred!
>> > ```
>> >
>> > Any steps I wrong here?
>> >
>> > On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio 
>> > wrote:
>> >
>> >> This is really cool!
>> >> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion only
>> >> support cmake, so I definitely have a stake in this working :)
>> >>
>> >> Please keep us posted on progress, I'll definitely try and give it a
>> spin
>> >> on Ubuntu and OSX.
>> >> Thanks for doing it!
>> >>
>> >> *Marco Massenzio*
>> >> *Distributed Systems Engineer*
>> >>
>> >> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer <
>> clemmer.alexan...@gmail.com
>> >> >
>> >> wrote:
>> >>
>> >> > On Wed, Jul 22, 2015 at 3:47 PM, Vinod Kone 
>> wrote:
>> >> > > This is exciting! Thanks for sharing the progress Alex.
>> >> > >
>> >> > > Mind sending us instructions on how to build/test with cmake for
>> noobs
>> >> > like
>> >> > > me?
>> >> >
>> >> > Ah, rats, I knew I was forgetting something.
>> >> >
>> >> > It actually looks pretty much like the autotools build system:
>> >> >
>> >> > 1. Make sure you have all the "normal" system dependencies installed
>> >> > (like APR, etc.)
>> >> > 2. Make sure you have CMake 2.8 or later installed on your machine.
>> >> > (On Ubuntu this looks like: `sudo apt-get install cmake`)
>> >> > 3. Go to the root of your Mesos source tree and do something like the
>> >> > following. Note that you will never have to run bootstrap or
>> >> > configure, so you should _only_ have to run the following commands.
>> >> >
>> >> > mkdir build-cmake
>> >> > cmake ..
>> >> > make
>> >> >
>> >> > 4. Watch as it builds, and hopefully doesn't explode!
>> >> >
>> >> > Finally to run tests, you can do `make test ARGS="-V"`. They run
>> >> > without ANSI colors right now, which is not ideal, but we know it's an
>> >> > issue.
>> >> >
>> >> >
>> >> > --
>> >> > Alex
>> >> >
>> >> > Theory is the first term in the Taylor series of practice. -- Thomas M
>> >> > Cover (1992)
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> > Haosdent Huang
>>
>>
>>
>> --
>> Alex
>>
>> Theory is the first term in the Taylor series of practice. -- Thomas M
>> Cover (1992)
>>
>
>
>
> --
> Best Regards,
> Haosdent Huang



-- 
Alex

Theory is the first term in the Taylor series of practice. -- Thomas M
Cover (1992)


Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread Vinod Kone
The one thing I found odd while testing was that some errors when running
'cmake' do not result in a non-zero exit status.
For example, when I tested with an older version of GCC it gave a warning
about C++11 not being supported but went ahead otherwise.

-- Performing Test COMPILER_SUPPORTS_CXX11 - Failed

*--
Thecompiler/usr/bin/c++doesnotsupportthe`-std=c++11`flag.PleaseuseadifferentC++compiler.*

-- Looking for include file pthread.h

-- Looking for include file pthread.h - found

-- Looking for pthread_create

-- Looking for pthread_create - not found

-- Looking for pthread_create in pthreads

-- Looking for pthread_create in pthreads - not found

-- Looking for pthread_create in pthread

-- Looking for pthread_create in pthread - found

-- Found Threads: TRUE

-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")

-- Found APR headers: /usr/include/apr-1

-- Found APR library: /usr/lib64/libapr-1.so

-- Found APRUTIL headers: /usr/include/apr-1

-- Found APRUTIL library: /usr/lib64/libaprutil-1.so

-- Found SVN lib: /usr/lib64/libsvn_client-1.so

-- Found SVN lib: /usr/lib64/libsvn_delta-1.so

-- Found SVN lib: /usr/lib64/libsvn_diff-1.so

-- Found SVN lib: /usr/lib64/libsvn_fs-1.so

-- Found SVN lib: /usr/lib64/libsvn_fs_base-1.so




On Thu, Jul 23, 2015 at 12:07 PM, Alex Clemmer 
wrote:

> I've put up a pair of fixes, tested on OS X 10.10. They are here:
>
> (1) https://reviews.apache.org/r/36740/
> (2) https://reviews.apache.org/r/36741/
>
> This should resolve the issues, and thanks again for the bug report.
>
> On Thu, Jul 23, 2015 at 3:32 AM, haosdent  wrote:
> > Sure, I use OS X 10.10. Seems OS X don't have librt, don't add rt when
> the
> > operate system is OSX?
> >
> > On Thu, Jul 23, 2015 at 6:22 PM, Alex Clemmer <
> clemmer.alexan...@gmail.com>
> > wrote:
> >
> >> Thanks for reporting the issue! I appreciate it.
> >>
> >> This code is trying to find librt, which provides the POSIX.1b
> >> Realtime Extension (i.e., things like message passing, async I/O,
> >> mmap'd files, etc.). Assuming you're running some flavor of Linux,
> >> this _should_ exist on your system already, and `find_library` is the
> >> CMake-standard function to find it, so it is not immediately clear to
> >> me what went wrong here.
> >>
> >> Do you mind if I ask what system you are running?
> >>
> >> On Thu, Jul 23, 2015 at 1:16 AM, haosdent  wrote:
> >> > Hi, @Alex Clemmer  I try to build it on OS X 10.10
> >> >
> >> > ```
> >> > mkdir build-cmake
> >> > cmake ..
> >> > make
> >> > ```
> >> >
> >> > But have this error:
> >> > ```
> >> > CMake Error: The following variables are used in this project, but
> they
> >> are
> >> > set to NOTFOUND.
> >> > Please set them or make sure they are set and tested correctly in the
> >> CMake
> >> > files:
> >> > LIBRT_LIBRARIES
> >> > linked by target "tests" in directory
> >> > /Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests
> >> >
> >> > -- Configuring incomplete, errors occurred!
> >> > ```
> >> >
> >> > Any steps I wrong here?
> >> >
> >> > On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio <
> ma...@mesosphere.io>
> >> > wrote:
> >> >
> >> >> This is really cool!
> >> >> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion
> only
> >> >> support cmake, so I definitely have a stake in this working :)
> >> >>
> >> >> Please keep us posted on progress, I'll definitely try and give it a
> >> spin
> >> >> on Ubuntu and OSX.
> >> >> Thanks for doing it!
> >> >>
> >> >> *Marco Massenzio*
> >> >> *Distributed Systems Engineer*
> >> >>
> >> >> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer <
> >> clemmer.alexan...@gmail.com
> >> >> >
> >> >> wrote:
> >> >>
> >> >> > On Wed, Jul 22, 2015 at 3:47 PM, Vinod Kone 
> >> wrote:
> >> >> > > This is exciting! Thanks for sharing the progress Alex.
> >> >> > >
> >> >> > > Mind sending us instructions on how to build/test with cmake for
> >> noobs
> >> >> > like
> >> >> > > me?
> >> >> >
> >> >> > Ah, rats, I knew I was forgetting something.
> >> >> >
> >> >> > It actually looks pretty much like the autotools build system:
> >> >> >
> >> >> > 1. Make sure you have all the "normal" system dependencies
> installed
> >> >> > (like APR, etc.)
> >> >> > 2. Make sure you have CMake 2.8 or later installed on your machine.
> >> >> > (On Ubuntu this looks like: `sudo apt-get install cmake`)
> >> >> > 3. Go to the root of your Mesos source tree and do something like
> the
> >> >> > following. Note that you will never have to run bootstrap or
> >> >> > configure, so you should _only_ have to run the following commands.
> >> >> >
> >> >> > mkdir build-cmake
> >> >> > cmake ..
> >> >> > make
> >> >> >
> >> >> > 4. Watch as it builds, and hopefully doesn't explode!
> >> >> >
> >> >> > Finally to run tests, you can do `make test ARGS="-V"`. They run
> >> >> > without ANSI colors right now, which is not ideal, but we know
> it's an
> >> >> > issue.
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Alex
> >> >> >
> >> >> > Theory i

Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread Alex Clemmer
We can easily change that to be a FATAL_ERROR or a WARNING. I
recommend being at parity with autotools -- am I correct in assuming
that it errors out?

On Thu, Jul 23, 2015 at 12:12 PM, Vinod Kone  wrote:
> The one thing I found odd while testing was that some errors when running
> 'cmake' do not result in a non-zero exit status.
> For example, when I tested with an older version of GCC it gave a warning
> about C++11 not being supported but went ahead otherwise.
>
> -- Performing Test COMPILER_SUPPORTS_CXX11 - Failed
>
> *--
> Thecompiler/usr/bin/c++doesnotsupportthe`-std=c++11`flag.PleaseuseadifferentC++compiler.*
>
> -- Looking for include file pthread.h
>
> -- Looking for include file pthread.h - found
>
> -- Looking for pthread_create
>
> -- Looking for pthread_create - not found
>
> -- Looking for pthread_create in pthreads
>
> -- Looking for pthread_create in pthreads - not found
>
> -- Looking for pthread_create in pthread
>
> -- Looking for pthread_create in pthread - found
>
> -- Found Threads: TRUE
>
> -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
>
> -- Found APR headers: /usr/include/apr-1
>
> -- Found APR library: /usr/lib64/libapr-1.so
>
> -- Found APRUTIL headers: /usr/include/apr-1
>
> -- Found APRUTIL library: /usr/lib64/libaprutil-1.so
>
> -- Found SVN lib: /usr/lib64/libsvn_client-1.so
>
> -- Found SVN lib: /usr/lib64/libsvn_delta-1.so
>
> -- Found SVN lib: /usr/lib64/libsvn_diff-1.so
>
> -- Found SVN lib: /usr/lib64/libsvn_fs-1.so
>
> -- Found SVN lib: /usr/lib64/libsvn_fs_base-1.so
>
>
>
>
> On Thu, Jul 23, 2015 at 12:07 PM, Alex Clemmer 
> wrote:
>
>> I've put up a pair of fixes, tested on OS X 10.10. They are here:
>>
>> (1) https://reviews.apache.org/r/36740/
>> (2) https://reviews.apache.org/r/36741/
>>
>> This should resolve the issues, and thanks again for the bug report.
>>
>> On Thu, Jul 23, 2015 at 3:32 AM, haosdent  wrote:
>> > Sure, I use OS X 10.10. Seems OS X don't have librt, don't add rt when
>> the
>> > operate system is OSX?
>> >
>> > On Thu, Jul 23, 2015 at 6:22 PM, Alex Clemmer <
>> clemmer.alexan...@gmail.com>
>> > wrote:
>> >
>> >> Thanks for reporting the issue! I appreciate it.
>> >>
>> >> This code is trying to find librt, which provides the POSIX.1b
>> >> Realtime Extension (i.e., things like message passing, async I/O,
>> >> mmap'd files, etc.). Assuming you're running some flavor of Linux,
>> >> this _should_ exist on your system already, and `find_library` is the
>> >> CMake-standard function to find it, so it is not immediately clear to
>> >> me what went wrong here.
>> >>
>> >> Do you mind if I ask what system you are running?
>> >>
>> >> On Thu, Jul 23, 2015 at 1:16 AM, haosdent  wrote:
>> >> > Hi, @Alex Clemmer  I try to build it on OS X 10.10
>> >> >
>> >> > ```
>> >> > mkdir build-cmake
>> >> > cmake ..
>> >> > make
>> >> > ```
>> >> >
>> >> > But have this error:
>> >> > ```
>> >> > CMake Error: The following variables are used in this project, but
>> they
>> >> are
>> >> > set to NOTFOUND.
>> >> > Please set them or make sure they are set and tested correctly in the
>> >> CMake
>> >> > files:
>> >> > LIBRT_LIBRARIES
>> >> > linked by target "tests" in directory
>> >> > /Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests
>> >> >
>> >> > -- Configuring incomplete, errors occurred!
>> >> > ```
>> >> >
>> >> > Any steps I wrong here?
>> >> >
>> >> > On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio <
>> ma...@mesosphere.io>
>> >> > wrote:
>> >> >
>> >> >> This is really cool!
>> >> >> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion
>> only
>> >> >> support cmake, so I definitely have a stake in this working :)
>> >> >>
>> >> >> Please keep us posted on progress, I'll definitely try and give it a
>> >> spin
>> >> >> on Ubuntu and OSX.
>> >> >> Thanks for doing it!
>> >> >>
>> >> >> *Marco Massenzio*
>> >> >> *Distributed Systems Engineer*
>> >> >>
>> >> >> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer <
>> >> clemmer.alexan...@gmail.com
>> >> >> >
>> >> >> wrote:
>> >> >>
>> >> >> > On Wed, Jul 22, 2015 at 3:47 PM, Vinod Kone 
>> >> wrote:
>> >> >> > > This is exciting! Thanks for sharing the progress Alex.
>> >> >> > >
>> >> >> > > Mind sending us instructions on how to build/test with cmake for
>> >> noobs
>> >> >> > like
>> >> >> > > me?
>> >> >> >
>> >> >> > Ah, rats, I knew I was forgetting something.
>> >> >> >
>> >> >> > It actually looks pretty much like the autotools build system:
>> >> >> >
>> >> >> > 1. Make sure you have all the "normal" system dependencies
>> installed
>> >> >> > (like APR, etc.)
>> >> >> > 2. Make sure you have CMake 2.8 or later installed on your machine.
>> >> >> > (On Ubuntu this looks like: `sudo apt-get install cmake`)
>> >> >> > 3. Go to the root of your Mesos source tree and do something like
>> the
>> >> >> > following. Note that you will never have to run bootstrap or
>> >> >> > configure, so you should _only_ have to run the following commands.
>> >> >> >
>> >> >> > 

Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread Vinod Kone
yup.

checking for C++ compiler version... 4.1.2

checking for C++ compiler vendor... (cached) gnu

configure: error: GCC 4.8 or higher required (found 4.1.2)

[vinod@smfd-atr-11-sr1 build-cmake]$ echo $?

1

On Thu, Jul 23, 2015 at 12:17 PM, Alex Clemmer 
wrote:

> We can easily change that to be a FATAL_ERROR or a WARNING. I
> recommend being at parity with autotools -- am I correct in assuming
> that it errors out?
>
> On Thu, Jul 23, 2015 at 12:12 PM, Vinod Kone  wrote:
> > The one thing I found odd while testing was that some errors when running
> > 'cmake' do not result in a non-zero exit status.
> > For example, when I tested with an older version of GCC it gave a warning
> > about C++11 not being supported but went ahead otherwise.
> >
> > -- Performing Test COMPILER_SUPPORTS_CXX11 - Failed
> >
> > *--
> >
> Thecompiler/usr/bin/c++doesnotsupportthe`-std=c++11`flag.PleaseuseadifferentC++compiler.*
> >
> > -- Looking for include file pthread.h
> >
> > -- Looking for include file pthread.h - found
> >
> > -- Looking for pthread_create
> >
> > -- Looking for pthread_create - not found
> >
> > -- Looking for pthread_create in pthreads
> >
> > -- Looking for pthread_create in pthreads - not found
> >
> > -- Looking for pthread_create in pthread
> >
> > -- Looking for pthread_create in pthread - found
> >
> > -- Found Threads: TRUE
> >
> > -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
> >
> > -- Found APR headers: /usr/include/apr-1
> >
> > -- Found APR library: /usr/lib64/libapr-1.so
> >
> > -- Found APRUTIL headers: /usr/include/apr-1
> >
> > -- Found APRUTIL library: /usr/lib64/libaprutil-1.so
> >
> > -- Found SVN lib: /usr/lib64/libsvn_client-1.so
> >
> > -- Found SVN lib: /usr/lib64/libsvn_delta-1.so
> >
> > -- Found SVN lib: /usr/lib64/libsvn_diff-1.so
> >
> > -- Found SVN lib: /usr/lib64/libsvn_fs-1.so
> >
> > -- Found SVN lib: /usr/lib64/libsvn_fs_base-1.so
> >
> >
> >
> >
> > On Thu, Jul 23, 2015 at 12:07 PM, Alex Clemmer <
> clemmer.alexan...@gmail.com>
> > wrote:
> >
> >> I've put up a pair of fixes, tested on OS X 10.10. They are here:
> >>
> >> (1) https://reviews.apache.org/r/36740/
> >> (2) https://reviews.apache.org/r/36741/
> >>
> >> This should resolve the issues, and thanks again for the bug report.
> >>
> >> On Thu, Jul 23, 2015 at 3:32 AM, haosdent  wrote:
> >> > Sure, I use OS X 10.10. Seems OS X don't have librt, don't add rt when
> >> the
> >> > operate system is OSX?
> >> >
> >> > On Thu, Jul 23, 2015 at 6:22 PM, Alex Clemmer <
> >> clemmer.alexan...@gmail.com>
> >> > wrote:
> >> >
> >> >> Thanks for reporting the issue! I appreciate it.
> >> >>
> >> >> This code is trying to find librt, which provides the POSIX.1b
> >> >> Realtime Extension (i.e., things like message passing, async I/O,
> >> >> mmap'd files, etc.). Assuming you're running some flavor of Linux,
> >> >> this _should_ exist on your system already, and `find_library` is the
> >> >> CMake-standard function to find it, so it is not immediately clear to
> >> >> me what went wrong here.
> >> >>
> >> >> Do you mind if I ask what system you are running?
> >> >>
> >> >> On Thu, Jul 23, 2015 at 1:16 AM, haosdent 
> wrote:
> >> >> > Hi, @Alex Clemmer  I try to build it on OS X 10.10
> >> >> >
> >> >> > ```
> >> >> > mkdir build-cmake
> >> >> > cmake ..
> >> >> > make
> >> >> > ```
> >> >> >
> >> >> > But have this error:
> >> >> > ```
> >> >> > CMake Error: The following variables are used in this project, but
> >> they
> >> >> are
> >> >> > set to NOTFOUND.
> >> >> > Please set them or make sure they are set and tested correctly in
> the
> >> >> CMake
> >> >> > files:
> >> >> > LIBRT_LIBRARIES
> >> >> > linked by target "tests" in directory
> >> >> > /Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests
> >> >> >
> >> >> > -- Configuring incomplete, errors occurred!
> >> >> > ```
> >> >> >
> >> >> > Any steps I wrong here?
> >> >> >
> >> >> > On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio <
> >> ma...@mesosphere.io>
> >> >> > wrote:
> >> >> >
> >> >> >> This is really cool!
> >> >> >> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion
> >> only
> >> >> >> support cmake, so I definitely have a stake in this working :)
> >> >> >>
> >> >> >> Please keep us posted on progress, I'll definitely try and give
> it a
> >> >> spin
> >> >> >> on Ubuntu and OSX.
> >> >> >> Thanks for doing it!
> >> >> >>
> >> >> >> *Marco Massenzio*
> >> >> >> *Distributed Systems Engineer*
> >> >> >>
> >> >> >> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer <
> >> >> clemmer.alexan...@gmail.com
> >> >> >> >
> >> >> >> wrote:
> >> >> >>
> >> >> >> > On Wed, Jul 22, 2015 at 3:47 PM, Vinod Kone <
> vinodk...@gmail.com>
> >> >> wrote:
> >> >> >> > > This is exciting! Thanks for sharing the progress Alex.
> >> >> >> > >
> >> >> >> > > Mind sending us instructions on how to build/test with cmake
> for
> >> >> noobs
> >> >> >> > like
> >> >> >> > > me?
> >> >> >> >
> >> >> >> > Ah, rats, I knew I was forgetting som

Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread Alex Clemmer
A fix is up for review here[1]. Thanks again for your feedback, this
is very valuable!

[1] https://reviews.apache.org/r/36743/

On Thu, Jul 23, 2015 at 12:18 PM, Vinod Kone  wrote:
> yup.
>
> checking for C++ compiler version... 4.1.2
>
> checking for C++ compiler vendor... (cached) gnu
>
> configure: error: GCC 4.8 or higher required (found 4.1.2)
>
> [vinod@smfd-atr-11-sr1 build-cmake]$ echo $?
>
> 1
>
> On Thu, Jul 23, 2015 at 12:17 PM, Alex Clemmer 
> wrote:
>
>> We can easily change that to be a FATAL_ERROR or a WARNING. I
>> recommend being at parity with autotools -- am I correct in assuming
>> that it errors out?
>>
>> On Thu, Jul 23, 2015 at 12:12 PM, Vinod Kone  wrote:
>> > The one thing I found odd while testing was that some errors when running
>> > 'cmake' do not result in a non-zero exit status.
>> > For example, when I tested with an older version of GCC it gave a warning
>> > about C++11 not being supported but went ahead otherwise.
>> >
>> > -- Performing Test COMPILER_SUPPORTS_CXX11 - Failed
>> >
>> > *--
>> >
>> Thecompiler/usr/bin/c++doesnotsupportthe`-std=c++11`flag.PleaseuseadifferentC++compiler.*
>> >
>> > -- Looking for include file pthread.h
>> >
>> > -- Looking for include file pthread.h - found
>> >
>> > -- Looking for pthread_create
>> >
>> > -- Looking for pthread_create - not found
>> >
>> > -- Looking for pthread_create in pthreads
>> >
>> > -- Looking for pthread_create in pthreads - not found
>> >
>> > -- Looking for pthread_create in pthread
>> >
>> > -- Looking for pthread_create in pthread - found
>> >
>> > -- Found Threads: TRUE
>> >
>> > -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
>> >
>> > -- Found APR headers: /usr/include/apr-1
>> >
>> > -- Found APR library: /usr/lib64/libapr-1.so
>> >
>> > -- Found APRUTIL headers: /usr/include/apr-1
>> >
>> > -- Found APRUTIL library: /usr/lib64/libaprutil-1.so
>> >
>> > -- Found SVN lib: /usr/lib64/libsvn_client-1.so
>> >
>> > -- Found SVN lib: /usr/lib64/libsvn_delta-1.so
>> >
>> > -- Found SVN lib: /usr/lib64/libsvn_diff-1.so
>> >
>> > -- Found SVN lib: /usr/lib64/libsvn_fs-1.so
>> >
>> > -- Found SVN lib: /usr/lib64/libsvn_fs_base-1.so
>> >
>> >
>> >
>> >
>> > On Thu, Jul 23, 2015 at 12:07 PM, Alex Clemmer <
>> clemmer.alexan...@gmail.com>
>> > wrote:
>> >
>> >> I've put up a pair of fixes, tested on OS X 10.10. They are here:
>> >>
>> >> (1) https://reviews.apache.org/r/36740/
>> >> (2) https://reviews.apache.org/r/36741/
>> >>
>> >> This should resolve the issues, and thanks again for the bug report.
>> >>
>> >> On Thu, Jul 23, 2015 at 3:32 AM, haosdent  wrote:
>> >> > Sure, I use OS X 10.10. Seems OS X don't have librt, don't add rt when
>> >> the
>> >> > operate system is OSX?
>> >> >
>> >> > On Thu, Jul 23, 2015 at 6:22 PM, Alex Clemmer <
>> >> clemmer.alexan...@gmail.com>
>> >> > wrote:
>> >> >
>> >> >> Thanks for reporting the issue! I appreciate it.
>> >> >>
>> >> >> This code is trying to find librt, which provides the POSIX.1b
>> >> >> Realtime Extension (i.e., things like message passing, async I/O,
>> >> >> mmap'd files, etc.). Assuming you're running some flavor of Linux,
>> >> >> this _should_ exist on your system already, and `find_library` is the
>> >> >> CMake-standard function to find it, so it is not immediately clear to
>> >> >> me what went wrong here.
>> >> >>
>> >> >> Do you mind if I ask what system you are running?
>> >> >>
>> >> >> On Thu, Jul 23, 2015 at 1:16 AM, haosdent 
>> wrote:
>> >> >> > Hi, @Alex Clemmer  I try to build it on OS X 10.10
>> >> >> >
>> >> >> > ```
>> >> >> > mkdir build-cmake
>> >> >> > cmake ..
>> >> >> > make
>> >> >> > ```
>> >> >> >
>> >> >> > But have this error:
>> >> >> > ```
>> >> >> > CMake Error: The following variables are used in this project, but
>> >> they
>> >> >> are
>> >> >> > set to NOTFOUND.
>> >> >> > Please set them or make sure they are set and tested correctly in
>> the
>> >> >> CMake
>> >> >> > files:
>> >> >> > LIBRT_LIBRARIES
>> >> >> > linked by target "tests" in directory
>> >> >> > /Users/haosdent/workspace/cpp/mesos/3rdparty/libprocess/src/tests
>> >> >> >
>> >> >> > -- Configuring incomplete, errors occurred!
>> >> >> > ```
>> >> >> >
>> >> >> > Any steps I wrong here?
>> >> >> >
>> >> >> > On Thu, Jul 23, 2015 at 11:27 AM, Marco Massenzio <
>> >> ma...@mesosphere.io>
>> >> >> > wrote:
>> >> >> >
>> >> >> >> This is really cool!
>> >> >> >> Eclipse CDT is becoming a bit tiresome to use, but JetLabs' CLion
>> >> only
>> >> >> >> support cmake, so I definitely have a stake in this working :)
>> >> >> >>
>> >> >> >> Please keep us posted on progress, I'll definitely try and give
>> it a
>> >> >> spin
>> >> >> >> on Ubuntu and OSX.
>> >> >> >> Thanks for doing it!
>> >> >> >>
>> >> >> >> *Marco Massenzio*
>> >> >> >> *Distributed Systems Engineer*
>> >> >> >>
>> >> >> >> On Wed, Jul 22, 2015 at 6:06 PM, Alex Clemmer <
>> >> >> clemmer.alexan...@gmail.com
>> >> >> >> >
>> >> >> >> wrote:
>> >> >> >>
>> >> >> >> > On Wed, Jul 22, 2015

Re: Introducing a CMake-based build system for Mesos

2015-07-23 Thread Benjamin Mahler
Cool, hoping that we also explore speeding up the tests by running them in
parallel (although I realize that automake already has a parallel test
runner).

On Wed, Jul 22, 2015 at 2:12 PM, Alex Clemmer 
wrote:

> Hey folks.
>
> For some time there has been vestigial interest in a CMake[1]-based
> alternative to the autotools-based build system that Mesos currently
> depends on (cf. MESOS-898[2]). In the near future we expect to start
> thinking about supporting little-known platforms such as "Windows",
> (where a fully cross-platform build system is table stakes).
>
> To facilitate this, we implemented and recently committed an
> experimental MVP CMake-based build system that allows us to build the
> process library, as well as the tests for the process and stout
> libraries. Currently we have only seriously tested that this works
> Linux (specifically, we have asked CMake to compile the build spec to
> a standard make/gcc combination, much like autotools), but we expect
> this to anchor our thoughts on cross-platform support as we continue
> to think about our real x-plat story.
>
> The community can track completed and outstanding the work on MESOS-898[2].
>
> In the immediate term, we're hoping the community will help us work
> out the kinks by voicing their questions, concerns, proposing changes
> to our plan, or even (hopefully) attempting to build on their favorite
> flavor of Linux, and reporting bugs or irregularities.
>
> Finally, to get the ball rolling, I'd like to end with some FAQs:
>
> Q: Will autotools be deprecated soon?
> A: EMPHATIC NO. The CMake-based build system is an experimental work
> that we expect to inform the Mesos community's thoughts as we start to
> think about more robustly expanding support other platforms. If there
> are serious benefits, then the community may choose to standardize on
> this solution in the future, but that is a discussion to have far down
> the road.
>
> Q: Can I use this now?
> A: NO. You can use it to build the process library, the process
> library tests, and the stout tests. You cannot yet use it to
> completely build Mesos. That's intentional -- before we get too far
> down the road, we are hoping to get some early feedback.
>
> Q: How does CMake help the goal of cross-platform support?
> A: CMake seamlessly compiles to a variety of toolchains and build
> systems. This includes both Linux favorites like gcc and make, but
> also more exotic options like Eclipse, or even Visual Studio and MSVC.
> Additionally, CMake has fairly robust function and macro systems,
> which allows us to do things like support finding or building
> third-party dependencies on very heterogeneous systems
>
> Thanks a lot, and we look forward to hearing your feedback!
>
> [1] http://www.cmake.org/
> [2] https://issues.apache.org/jira/browse/MESOS-898
>
>
> --
> Alex
>
> Theory is the first term in the Taylor series of practice. -- Thomas M
> Cover (1992)
>


[Design Doc] Mesos Cluster Maintenance

2015-07-23 Thread Artem Harutyunyan
Hi,

Below is the link [0] to the latest iteration of the Mesos Cluster
Maintenance design doc. It is a work in progress, especially the API
part. We will finalize that part once we flesh out the design,
semantics and overall system architecture.

Please take a look at the document and let us know what you think. We
greatly appreciate your feedback!

Cheers,
Artem.

[0] - 
https://docs.google.com/document/d/16k0lVwpSGVOyxPSyXKmGC-gbNmRlisNEe4p-fAUSojk/edit?usp=sharing


Request to adding me to a contributors list

2015-07-23 Thread Jihun Kang
Hello,

I recently created and worked on jira issues, MESOS-2216, MESOS-3084, and
MESOS-3085.
And I would liked to assign myself on these issues.
Could anyone add me to a contributors list?

Thanks and best regards,
Jihun.


Re: Request to adding me to a contributors list

2015-07-23 Thread Marco Massenzio
Hi Jihun,

I've added you to the contributors list, welcome to Mesos!
(and thanks for working on those issues).

*Marco Massenzio*
*Distributed Systems Engineer*

On Thu, Jul 23, 2015 at 8:37 PM, Jihun Kang  wrote:

> Hello,
>
> I recently created and worked on jira issues, MESOS-2216, MESOS-3084, and
> MESOS-3085.
> And I would liked to assign myself on these issues.
> Could anyone add me to a contributors list?
>
> Thanks and best regards,
> Jihun.
>