Hey there,

At the moment some patching is required to build with GCC 4.8.  The patch
you need is available here:

https://github.com/airbnb/mesos/commit/e690596ccc41cb21236a54fc9665c8619a0399e5


On Wed, Sep 11, 2013 at 4:19 AM, Humpty Dumpty <[email protected]>wrote:

> Hi,
> I am trying to build from source
>
> http://www.apache.org/dyn/mirrors/mirrors.cgi/mesos/0.13.0/
>
>
> gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu1)
>
>
> But getting errors in
>
> make check
>
> Its compilation errors in boost and protocol buffer libraries.
>
>
> Can you please suggest how to build mesos.
>
> Which version of gcc libraries i need. Website says g++ 4.1 or higher i got
> 4.8
>
>
> I downloaded 0.13 version today from website and following instructions
> given on getting started page.
>
> Steps followed
>
> I am just trying to take help from official build
>
>
> https://builds.apache.org/view/M-R/view/Mesos/job/Mesos-Trunk-Ubuntu-Build-In-Src-Set-JAVA_HOME/1375/consoleText
>
>
>
> Extract to directory
>
> ./bootstrap
>
> mkdir build
>
> cd build
>
> ../configure
>
> GLOG_v=1 MESOS_VERBOSE=1
>
> make check
>
> After this i start getting errors in console
>
>
> [----------] Global test environment tear-down
> [==========] 69 tests from 15 test cases ran. (105 ms total)
> [  PASSED  ] 69 tests.
>
> [----------] Global test environment tear-down
> [==========] 46 tests from 7 test cases ran. (82 ms total)
> [  PASSED  ] 46 tests.
>
>   YOU HAVE 1 DISABLED TEST
>
> *Protobuf errors*
>
> ./google/protobuf/stubs/strutil.h:307:25: warning: typedef
> ‘sizeof_int64_is_not_sizeof_long_long’ locally defined but not used
> [-Wunused-local-typedefs]
>                          sizeof_int64_is_not_sizeof_long_long);
>                          ^
> ./google/protobuf/stubs/common.h:377:11: note: in definition of macro
> ‘GOOGLE_COMPILE_ASSERT’
>            msg[bool(expr) ? 1 : -1]
>            ^
> ./google/protobuf/stubs/strutil.h: In function ‘google::protobuf::uint64
> google::protobuf::strtou64(const char*, char**, int)’:
> ./google/protobuf/stubs/strutil.h:313:25: warning: typedef
> ‘sizeof_uint64_is_not_sizeof_long_long’ locally defined but not used
> [-Wunused-local-typedefs]
>                          sizeof_uint64_is_not_sizeof_long_long);
>                          ^
> ./google/protobuf/stubs/common.h:377:11: note: in definition of macro
> ‘GOOGLE_COMPILE_ASSERT’
>            msg[bool(expr) ? 1 : -1]
>            ^
>
> *Boost related
> *
> *Messages from *
>
>
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/math/policies/policy.hpp:
> In function 'int boost::math::policies::detail::digits_imp(const true_&)':
>
> ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/static_assert.hpp:125:21:
> error: typedef 'boost_static_assert_typedef_822' locally defined but not
> used [-Werror=unused-local-typedefs]
>           BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
>                      ^
>
>
> *And in end it fails wiht this message*
>
> cc1plus: all warnings being treated as errors
> make[2]: *** [sched/libmesos_no_3rdparty_la-sched.lo] Error 1
> make[2]: Leaving directory
> `/home/jagat/development/tools/mesos-0.13.0/build/src'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory
> `/home/jagat/development/tools/mesos-0.13.0/build/src'
> make: *** [check-recursive] Error 1
>
>
>
>
>
>
>
>
>
>
>
>
> Thanks
>

Reply via email to