Lastest (Jun 27 2011) mesos doesn't compile on Mac OS X - Snow Leopard
----------------------------------------------------------------------
Key: MESOS-23
URL: https://issues.apache.org/jira/browse/MESOS-23
Project: Mesos
Issue Type: Bug
Components: build
Environment: Mac OS X - Snow Leopard - 10.6.8
Reporter: Bill Zhao
Priority: Blocker
I have the following setup:
1. Java environment
~$ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
2. Xcode installed
Install the latest Xcode
3. swig, swig-java, swig-python
swig @2.0.3_0
swig-java @2.0.3_0
swig-python @2.0.3_0
swig version 2.0.3_0 released on 2011-03-29
swig version 2.0.4_0 released on 2011-05-21
I have tried both version of swig, but still see the same problem when I
compile. Matie told me this should be a swig issue.
Here is the error message:
billz@dhcp-44-175: ~/mesos$ swig -version
SWIG Version 2.0.3
Compiled with /usr/bin/g++-4.2 [i386-apple-darwin10.7.0]
Configured options: +pcre
Please see http://www.swig.org for reporting bugs and further information
billz@dhcp-44-175: ~/mesos$ make
make -C third_party/libprocess
make -C third_party/glog-0.3.1
make[2]: Nothing to be done for `all'.
make -C third_party/gmock-1.5.0
Making all in gtest
mkdir -p "./fused-src"
chmod -R u+w "./fused-src"
rm -f "./fused-src/gtest/gtest-all.cc"
rm -f "./fused-src/gtest/gtest.h"
"./scripts/fuse_gtest_files.py" "./fused-src"
./scripts/fuse_gtest_files.py:63: DeprecationWarning: the sets module is
deprecated
import sets
cp -f "./src/gtest_main.cc" "./fused-src/gtest/"
make[3]: Nothing to be done for `all-am'.
make -C third_party/libev-3.8
make all-am
make[3]: Nothing to be done for `all-am'.
make -C third_party/ry-http-parser-1c3624a http_parser_g.o
make[2]: `http_parser_g.o' is up to date.
make -C third_party/protobuf-2.3.0
make all-recursive
Making all in .
make[3]: Nothing to be done for `all-am'.
Making all in src
make all-am
make[4]: Nothing to be done for `all-am'.
make -C third_party/glog-0.3.1
make[1]: Nothing to be done for `all'.
make -C third_party/gmock-1.5.0
Making all in gtest
mkdir -p "./fused-src"
chmod -R u+w "./fused-src"
rm -f "./fused-src/gtest/gtest-all.cc"
rm -f "./fused-src/gtest/gtest.h"
"./scripts/fuse_gtest_files.py" "./fused-src"
./scripts/fuse_gtest_files.py:63: DeprecationWarning: the sets module is
deprecated
import sets
cp -f "./src/gtest_main.cc" "./fused-src/gtest/"
make[2]: Nothing to be done for `all-am'.
make -C third_party/zookeeper-3.3.1/src/c
make all-am
make[2]: Nothing to be done for `all-am'.
make -C src
g++ -c -O2 -fno-strict-aliasing -fPIC -D_XOPEN_SOURCE -g -I. -I. -I../include
-I../include -I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/libprocess/include
-I../third_party/zookeeper-3.3.1/src/c/include
-I../third_party/zookeeper-3.3.1/src/c/generated -MMD -MP
-DBUILD_DATE="\"$(date '+%Y-%m-%d %H:%M:%S')\"" -DBUILD_USER="\"$USER\""
-DBUILD_FLAGS="\"-O2 -fno-strict-aliasing -fPIC -D_XOPEN_SOURCE -g -I. -I.
-I../include -I../include -I../third_party/boost-1.37.0
-I../third_party/libprocess/include -MMD -MP -O2 -fno-strict-aliasing -fPIC
-D_XOPEN_SOURCE -g -I. -I. -I../include -I../include
-I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/libprocess/include
-I../third_party/zookeeper-3.3.1/src/c/include
-I../third_party/zookeeper-3.3.1/src/c/generated -MMD -MP\"" -o common/build.o
common/build.cpp
g++ -O2 -fno-strict-aliasing -fPIC -D_XOPEN_SOURCE -g -I. -I. -I../include
-I../include -I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/libprocess/include
-I../third_party/zookeeper-3.3.1/src/c/include
-I../third_party/zookeeper-3.3.1/src/c/generated -MMD -MP -shared -o
../lib/libmesos.dylib sched/sched.o local/local.o master/master.o
master/slaves_manager.o master/allocator_factory.o master/simple_allocator.o
slave/slave.o slave/isolation_module.o slave/process_based_isolation_module.o
slave/reaper.o launcher/launcher.o exec/exec.o mesos.pb.o
messages/messages.pb.o common/build.o common/fatal.o common/lock.o
detector/detector.o detector/url_processor.o configurator/configurator.o
common/string_utils.o common/logging.o common/date_utils.o common/tokenize.o
common/resources.o common/zookeeper.o
-L../third_party/protobuf-2.3.0/src/.libs -L../third_party/glog-0.3.1/.libs
-L../third_party/libprocess
-L../third_party/libprocess/third_party/libev-3.8/.libs
-L../third_party/zookeeper-3.3.1/src/c/.libs -lprotobuf -lglog -lprocess -lev
-lpthread -ldl -lzookeeper_mt
ar rcs ../lib/libmesos_sched.a sched/sched.o local/local.o master/master.o
master/slaves_manager.o master/allocator_factory.o master/simple_allocator.o
slave/slave.o slave/isolation_module.o slave/process_based_isolation_module.o
slave/reaper.o launcher/launcher.o mesos.pb.o messages/messages.pb.o
common/build.o common/fatal.o common/lock.o detector/detector.o
detector/url_processor.o configurator/configurator.o common/string_utils.o
common/logging.o common/date_utils.o common/tokenize.o common/resources.o
common/zookeeper.o
ar rcs ../lib/libmesos_exec.a exec/exec.o mesos.pb.o messages/messages.pb.o
common/build.o common/fatal.o common/lock.o detector/detector.o
detector/url_processor.o configurator/configurator.o common/string_utils.o
common/logging.o common/date_utils.o common/tokenize.o common/resources.o
common/zookeeper.o
g++ -O2 -fno-strict-aliasing -fPIC -D_XOPEN_SOURCE -g -I. -I. -I../include
-I../include -I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/libprocess/include
-I../third_party/zookeeper-3.3.1/src/c/include
-I../third_party/zookeeper-3.3.1/src/c/generated -MMD -MP -o
../bin/mesos-master master/main.cpp master/master.o master/slaves_manager.o
master/allocator_factory.o master/simple_allocator.o master/webui.o
webui/master/swig/master_wrap.o common/fatal.o common/lock.o
detector/detector.o detector/url_processor.o configurator/configurator.o
common/string_utils.o common/logging.o common/date_utils.o common/tokenize.o
common/resources.o common/zookeeper.o common/build.o mesos.pb.o
messages/messages.pb.o -L../third_party/protobuf-2.3.0/src/.libs
-L../third_party/glog-0.3.1/.libs -L../third_party/libprocess
-L../third_party/libprocess/third_party/libev-3.8/.libs
-L../third_party/zookeeper-3.3.1/src/c/.libs -u _PyMac_Error
/System/Library/Frameworks/Python.framework/Versions/2.6/Python -lpython2.6
-lprotobuf -lglog -lprocess -lev -lpthread -ldl -lzookeeper_mt
g++ -c -O2 -fno-strict-aliasing -fPIC -D_XOPEN_SOURCE -g -I. -I. -I../include
-I../include -I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/libprocess/include
-I../third_party/zookeeper-3.3.1/src/c/include
-I../third_party/zookeeper-3.3.1/src/c/generated -MMD -MP
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -o
webui/slave/swig/slave_wrap.o webui/slave/swig/slave_wrap.cpp
In file included from
/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:8,
from webui/slave/swig/slave_wrap.cpp:150:
/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyconfig.h:1058:1:
warning: "_XOPEN_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
webui/slave/swig/slave_wrap.cpp: In function
'std::vector<mesos::internal::slave::state::Framework*,
std::allocator<mesos::internal::slave::state::Framework*> >*
std_vector_Sl_mesos_internal_slave_state_Framework_Sm__Sg____getitem____SWIG_0(std::vector<mesos::internal::slave::state::Framework*,
std::allocator<mesos::internal::slave::state::Framework*> >*, PySliceObject*)':
webui/slave/swig/slave_wrap.cpp:4883: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
webui/slave/swig/slave_wrap.cpp: In function 'void
std_vector_Sl_mesos_internal_slave_state_Framework_Sm__Sg____setitem____SWIG_0(std::vector<mesos::internal::slave::state::Framework*,
std::allocator<mesos::internal::slave::state::Framework*> >*, PySliceObject*,
const std::vector<mesos::internal::slave::state::Framework*,
std::allocator<mesos::internal::slave::state::Framework*> >&)':
webui/slave/swig/slave_wrap.cpp:4892: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
webui/slave/swig/slave_wrap.cpp: In function 'void
std_vector_Sl_mesos_internal_slave_state_Framework_Sm__Sg____setitem____SWIG_1(std::vector<mesos::internal::slave::state::Framework*,
std::allocator<mesos::internal::slave::state::Framework*> >*, PySliceObject*)':
webui/slave/swig/slave_wrap.cpp:4901: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
webui/slave/swig/slave_wrap.cpp: In function 'void
std_vector_Sl_mesos_internal_slave_state_Framework_Sm__Sg____delitem____SWIG_1(std::vector<mesos::internal::slave::state::Framework*,
std::allocator<mesos::internal::slave::state::Framework*> >*, PySliceObject*)':
webui/slave/swig/slave_wrap.cpp:4910: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
webui/slave/swig/slave_wrap.cpp: In function
'std::vector<mesos::internal::slave::state::Task*,
std::allocator<mesos::internal::slave::state::Task*> >*
std_vector_Sl_mesos_internal_slave_state_Task_Sm__Sg____getitem____SWIG_0(std::vector<mesos::internal::slave::state::Task*,
std::allocator<mesos::internal::slave::state::Task*> >*, PySliceObject*)':
webui/slave/swig/slave_wrap.cpp:5031: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
webui/slave/swig/slave_wrap.cpp: In function 'void
std_vector_Sl_mesos_internal_slave_state_Task_Sm__Sg____setitem____SWIG_0(std::vector<mesos::internal::slave::state::Task*,
std::allocator<mesos::internal::slave::state::Task*> >*, PySliceObject*, const
std::vector<mesos::internal::slave::state::Task*,
std::allocator<mesos::internal::slave::state::Task*> >&)':
webui/slave/swig/slave_wrap.cpp:5040: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
webui/slave/swig/slave_wrap.cpp: In function 'void
std_vector_Sl_mesos_internal_slave_state_Task_Sm__Sg____setitem____SWIG_1(std::vector<mesos::internal::slave::state::Task*,
std::allocator<mesos::internal::slave::state::Task*> >*, PySliceObject*)':
webui/slave/swig/slave_wrap.cpp:5049: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
webui/slave/swig/slave_wrap.cpp: In function 'void
std_vector_Sl_mesos_internal_slave_state_Task_Sm__Sg____delitem____SWIG_1(std::vector<mesos::internal::slave::state::Task*,
std::allocator<mesos::internal::slave::state::Task*> >*, PySliceObject*)':
webui/slave/swig/slave_wrap.cpp:5058: error: 'SWIGPY_SLICE_ARG' was not
declared in this scope
make[1]: *** [webui/slave/swig/slave_wrap.o] Error 1
make: *** [src] Error 2
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira