I successfully build mesos by referring
https://issues.apache.org/jira/browse/MESOS-791
homebrew's gcc 4.7 worked fine.

$ brew tap homebrew/version
$ brew install gcc47
$ cd mesos
$ ./bootstrap
$ mkdir build
$ cd build
$ CC=gcc-4.7 CXX=g++-4.7 ../configure
$ make

Thanks,
--
Shingo Omura
everpe...@gmail.com
http://everpeace.github.io/


2013/10/31 OMURA, Shingo <everpe...@gmail.com>:
> Hi mesos developers.
>
> I tried to build master branch on github's mesos (apache/mesos)
> after upgrading to Mavericks.
> However build failed as you see below. (full make output is attached.)
>
> make seems to be failed on compiling glog.  I think this may relate to
> glog's issue 121:
> https://code.google.com/p/google-glog/issues/detail?id=121
>
> Could someone tell me some work around??
>
> Thanks,
>
> -(~/Documents/githubs/everpeace/mesos/build)-
> $ sw_vers
> ProductName: Mac OS X
> ProductVersion: 10.9
> BuildVersion: 13A603
>
> $ uname -a
> Darwin everpeaces-iMac.local 13.0.0 Darwin Kernel Version 13.0.0: Thu
> Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
>
> $ xcodebuild -version
> Xcode 5.0.1
> Build version 5A2053
>
> $ make
> Making all in .
> make[1]: Nothing to be done for `all-am'.
> Making all in 3rdparty
> /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
> Making all in libprocess
> Making all in 3rdparty
> .. snip ..
> libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings
> -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -g -O2
> -D_THREAD_SAFE -o symbolize_unittest
> symbolize_unittest-symbolize_unittest.o -Wl,-bind_at_load
> ./.libs/libglog.a -lpthread
> g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -D_THREAD_SAFE     -Wall
> -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
> -DNO_FRAME_POINTER  -g -O2 -MT
> stl_logging_unittest-stl_logging_unittest.o -MD -MP -MF
> .deps/stl_logging_unittest-stl_logging_unittest.Tpo -c -o
> stl_logging_unittest-stl_logging_unittest.o `test -f
> 'src/stl_logging_unittest.cc' || echo './'`src/stl_logging_unittest.cc
> In file included from src/stl_logging_unittest.cc:34:
> In file included from ./src/glog/stl_logging.h:54:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ext/hash_set:202:2:
> warning: Use of the header <ext/hash_set> is deprecated.  Migrate to
> <unordered_set> [-W#warnings]
> #warning Use of the header <ext/hash_set> is deprecated.  Migrate to
> <unordered_set>
>  ^
> In file included from src/stl_logging_unittest.cc:34:
> In file included from ./src/glog/stl_logging.h:55:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ext/hash_map:209:2:
> warning: Use of the header <ext/hash_map> is deprecated.  Migrate to
> <unordered_map> [-W#warnings]
> #warning Use of the header <ext/hash_map> is deprecated.  Migrate to
> <unordered_map>
>  ^
> In file included from src/stl_logging_unittest.cc:34:
> ./src/glog/stl_logging.h:56:11: fatal error: 'ext/slist' file not found
> # include <ext/slist>
>           ^
> 2 warnings and 1 error generated.
> make[7]: *** [stl_logging_unittest-stl_logging_unittest.o] Error 1
> make[6]: *** [glog-0.3.3/libglog.la] Error 2
> make[5]: *** [all-recursive] Error 1
> make[4]: *** [all] Error 2
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1
>
> --
> Shingo Omura
> everpe...@gmail.com
> http://everpeace.github.io/

Reply via email to