[ 
https://issues.apache.org/jira/browse/MESOS-6901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15816926#comment-15816926
 ] 

haosdent commented on MESOS-6901:
---------------------------------

[~klueska] We have discussions in slack before. This should be caused by 
[~frankscholten] didn't perform {{./bootstrap}} again after he change compiler. 
[~frankscholten] May you mind close this ticket if it works for you now?

> Master build fails with g++ 4.8.5, g++ 4.9.4 and clang 3.8.0 on Ubuntu 16.04
> ----------------------------------------------------------------------------
>
>                 Key: MESOS-6901
>                 URL: https://issues.apache.org/jira/browse/MESOS-6901
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.1.0
>            Reporter: Frank Scholten
>            Assignee: Kevin Klues
>
> When building with g++ 4.8.5 the configure script fails:
> {code}
> checking whether we can build usable Python eggs... cc1plus: warning: command 
> line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ 
> [enabled by default]
> g++: error: unrecognized command line option '-Wdate-time'
> g++: error: unrecognized command line option '-fstack-protector-strong'
> error: command 'g++' failed with exit status 1
> configure: error: no
> -------------------------------------------------------------------
> It appears we were unable to build a usable native Python egg.
> There are two possible workarounds for this issue:
>     1. Disable python bindings by configuring with --disable-python.
>     2. Use an alternative Python installation that was built using
>        the same build setup as Mesos.
> -------------------------------------------------------------------
> {code}
> When building with g++ 4.9.4 the build fails with a segmentation fault:
> {code}
> mv -f slave/containerizer/mesos/.deps/libmesos_no_3rdparty_la-utils.Tpo 
> slave/containerizer/mesos/.deps/libmesos_no_3rdparty_la-utils.Plo
> /bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DPACKAGE_NAME=\"mesos\" 
> -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"1.2.0\" 
> -DPACKAGE_STRING=\"mesos\ 1.2.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" 
> -DPACKAGE=\"mesos\" -DVERSION=\"1.2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_CXX11=1 
> -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_FTS_H=1 
> -DHAVE_APR_POOLS_H=1 -DHAVE_LIBAPR_1=1 -DHAVE_LIBCURL=1 -DMESOS_HAS_JAVA=1 
> -DHAVE_LIBSASL2=1 -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 
> -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBZ=1 
> -DHAVE_PYTHON=\"2.7\" -DMESOS_HAS_PYTHON=1 -I. -I../../src   -Werror 
> -DLIBDIR=\"/usr/lib\" -DPKGLIBEXECDIR=\"/usr/libexec/mesos\" 
> -DPKGDATADIR=\"/usr/share/mesos\" -DPKGMODULEDIR=\"/usr/lib/mesos/modules\" 
> -I../../include -I../include -I../include/mesos -DPICOJSON_USE_INT64 
> -D__STDC_FORMAT_MACROS -isystem ../3rdparty/boost-1.53.0 
> -I../3rdparty/elfio-3.2 -I../3rdparty/glog-0.3.3/src 
> -I../3rdparty/leveldb-1.4/include -I../../3rdparty/libprocess/include 
> -I../3rdparty/nvml-352.79 -I../3rdparty/picojson-1.3.0 
> -I../3rdparty/protobuf-2.6.1/src -I../../3rdparty/stout/include 
> -I../3rdparty/zookeeper-3.4.8/src/c/include 
> -I../3rdparty/zookeeper-3.4.8/src/c/generated -DHAS_AUTHENTICATION=1 
> -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0  
> -pthread -Wall -Wsign-compare -Wformat-security -fstack-protector-strong 
> -fPIC -fPIE -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized 
> -std=c++11 -MT 
> slave/containerizer/mesos/io/libmesos_no_3rdparty_la-switchboard.lo -MD -MP 
> -MF 
> slave/containerizer/mesos/io/.deps/libmesos_no_3rdparty_la-switchboard.Tpo -c 
> -o slave/containerizer/mesos/io/libmesos_no_3rdparty_la-switchboard.lo `test 
> -f 'slave/containerizer/mesos/io/switchboard.cpp' || echo 
> '../../src/'`slave/containerizer/mesos/io/switchboard.cpp
> libtool: compile:  g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" 
> -DPACKAGE_VERSION=\"1.2.0\" "-DPACKAGE_STRING=\"mesos 1.2.0\"" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" 
> -DVERSION=\"1.2.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
> -DLT_OBJDIR=\".libs/\" -DHAVE_CXX11=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 
> -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_FTS_H=1 -DHAVE_APR_POOLS_H=1 
> -DHAVE_LIBAPR_1=1 -DHAVE_LIBCURL=1 -DMESOS_HAS_JAVA=1 -DHAVE_LIBSASL2=1 
> -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 -DHAVE_SVN_DELTA_H=1 
> -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBZ=1 -DHAVE_PYTHON=\"2.7\" 
> -DMESOS_HAS_PYTHON=1 -I. -I../../src -Werror -DLIBDIR=\"/usr/lib\" 
> -DPKGLIBEXECDIR=\"/usr/libexec/mesos\" -DPKGDATADIR=\"/usr/share/mesos\" 
> -DPKGMODULEDIR=\"/usr/lib/mesos/modules\" -I../../include -I../include 
> -I../include/mesos -DPICOJSON_USE_INT64 -D__STDC_FORMAT_MACROS -isystem 
> ../3rdparty/boost-1.53.0 -I../3rdparty/elfio-3.2 -I../3rdparty/glog-0.3.3/src 
> -I../3rdparty/leveldb-1.4/include -I../../3rdparty/libprocess/include 
> -I../3rdparty/nvml-352.79 -I../3rdparty/picojson-1.3.0 
> -I../3rdparty/protobuf-2.6.1/src -I../../3rdparty/stout/include 
> -I../3rdparty/zookeeper-3.4.8/src/c/include 
> -I../3rdparty/zookeeper-3.4.8/src/c/generated -DHAS_AUTHENTICATION=1 
> -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 
> -pthread -Wall -Wsign-compare -Wformat-security -fstack-protector-strong 
> -fPIC -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 -MT 
> slave/containerizer/mesos/io/libmesos_no_3rdparty_la-switchboard.lo -MD -MP 
> -MF 
> slave/containerizer/mesos/io/.deps/libmesos_no_3rdparty_la-switchboard.Tpo -c 
> ../../src/slave/containerizer/mesos/io/switchboard.cpp  -fPIC -DPIC -o 
> slave/containerizer/mesos/io/.libs/libmesos_no_3rdparty_la-switchboard.o
> In file included from ../3rdparty/boost-1.53.0/boost/throw_exception.hpp:43:0,
>                  from ../3rdparty/boost-1.53.0/boost/lexical_cast.hpp:38,
>                  from ../../3rdparty/stout/include/stout/numify.hpp:19,
>                  from ../../3rdparty/stout/include/stout/ip.hpp:56,
>                  from 
> ../../3rdparty/libprocess/include/process/address.hpp:37,
>                  from 
> ../../src/slave/containerizer/mesos/io/switchboard.cpp:25:
> ../3rdparty/boost-1.53.0/boost/exception/exception.hpp:217:13: internal 
> compiler error: Segmentation fault
>              }
>              ^
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
> The bug is not reproducible, so it is likely a hardware or OS problem.
> {code}
> Finally, when building with clang the configure script also fails
> {code}
> cc1plus: warning: unrecognized command line option 
> "-Wno-unused-local-typedef" [enabled by default]
> configure: error: no
> -------------------------------------------------------------------
> It appears we were unable to build a usable native Python egg.
> There are two possible workarounds for this issue:
>     1. Disable python bindings by configuring with --disable-python.
>     2. Use an alternative Python installation that was built using
>        the same build setup as Mesos.
> -------------------------------------------------------------------
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to