[
https://issues.apache.org/jira/browse/MESOS-7699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056336#comment-16056336
]
Adam Cecile commented on MESOS-7699:
------------------------------------
Yep, I guess that could help...
Sadly, there's other issue with GCC 6 with bundled stout and libprocess.
Here's a first batch:
{noformat}
./../stout/include/stout/json.hpp:261:30: error: no matching function for call
to 'boost::variant<boost::recursive_wrapper<JSON::Null>,
boost::recursive_wrapper<JSON::String>, boost::recursive_wrapper<JSON::Number>,
boost::recursive_wrapper<JSON::Object>, boost::recursive_wrapper<JSON::Array>,
boost::recursive_wrapper<JSON::Boolean> >::variant(const
std::__cxx11::basic_string<char>&)'
: internal::Variant(value) {}
^
In file included from /usr/include/boost/variant.hpp:17:0,
from ./../stout/include/stout/json.hpp:35,
from ./include/process/http.hpp:38,
from ./include/process/event.hpp:19,
from ./include/process/process.hpp:24,
from ./include/process/dispatch.hpp:20,
from ./include/process/deferred.hpp:18,
from ./include/process/defer.hpp:19,
from src/process.cpp:66:
{noformat}
{noformat}
/usr/include/boost/variant/variant.hpp:1782:5: error: no type named 'type' in
'struct boost::enable_if<boost::mpl::and_<boost::is_rvalue_reference<const
std::__cxx11::basic_string<char>&>, boost::mpl::not_<boost::is_const<const
std::__cxx11::basic_string<char>&> >, boost::mpl::not_<boost::is_same<const
std::__cxx11::basic_string<char>&,
boost::variant<boost::recursive_wrapper<JSON::Null>,
boost::recursive_wrapper<JSON::String>, boost::recursive_wrapper<JSON::Number>,
boost::recursive_wrapper<JSON::Object>, boost::recursive_wrapper<JSON::Array>,
boost::recursive_wrapper<JSON::Boolean> > > >,
boost::detail::variant::is_variant_constructible_from<const
std::__cxx11::basic_string<char>&, boost::mpl::l_item<mpl_::long_<6l>,
boost::recursive_wrapper<JSON::Null>, boost::mpl::l_item<mpl_::long_<5l>,
boost::recursive_wrapper<JSON::String>, boost::mpl::l_item<mpl_::long_<4l>,
boost::recursive_wrapper<JSON::Number>, boost::mpl::l_item<mpl_::long_<3l>,
boost::recursive_wrapper<JSON::Object>, boost::mpl::l_item<mpl_::long_<2l>,
boost::recursive_wrapper<JSON::Array>, boost::mpl::l_item<mpl_::long_<1l>,
boost::recursive_wrapper<JSON::Boolean>, boost::mpl::l_end> > > > > > >,
mpl_::bool_<true> >, void>'
{noformat}
{noformat}
/usr/include/boost/variant/variant.hpp:1768:5: error: no type named 'type' in
'struct
boost::enable_if<boost::mpl::and_<boost::mpl::not_<boost::is_const<const
std::__cxx11::basic_string<char> > >, boost::mpl::not_<boost::is_same<const
std::__cxx11::basic_string<char>,
boost::variant<boost::recursive_wrapper<JSON::Null>,
boost::recursive_wrapper<JSON::String>, boost::recursive_wrapper<JSON::Number>,
boost::recursive_wrapper<JSON::Object>, boost::recursive_wrapper<JSON::Array>,
boost::recursive_wrapper<JSON::Boolean> > > >,
boost::detail::variant::is_variant_constructible_from<const
std::__cxx11::basic_string<char>&, boost::mpl::l_item<mpl_::long_<6l>,
boost::recursive_wrapper<JSON::Null>, boost::mpl::l_item<mpl_::long_<5l>,
boost::recursive_wrapper<JSON::String>, boost::mpl::l_item<mpl_::long_<4l>,
boost::recursive_wrapper<JSON::Number>, boost::mpl::l_item<mpl_::long_<3l>,
boost::recursive_wrapper<JSON::Object>, boost::mpl::l_item<mpl_::long_<2l>,
boost::recursive_wrapper<JSON::Array>, boost::mpl::l_item<mpl_::long_<1l>,
boost::recursive_wrapper<JSON::Boolean>, boost::mpl::l_end> > > > > > >,
mpl_::bool_<true>, mpl_::bool_<true> >, void>'
./../stout/include/stout/json.hpp: In instantiation of
'JSON::Value::Value(const T&, typename
boost::disable_if<boost::is_arithmetic<From>, int>::type) [with T =
std::__cxx11::basic_string<char>; typename
boost::disable_if<boost::is_arithmetic<From>, int>::type = int]':
{noformat}
{noformat}
/usr/include/boost/variant/variant.hpp:1758:5: error: no type named 'type' in
'struct
boost::enable_if<boost::mpl::and_<boost::mpl::not_<boost::is_same<std::__cxx11::basic_string<char>,
boost::variant<boost::recursive_wrapper<JSON::Null>,
boost::recursive_wrapper<JSON::String>, boost::recursive_wrapper<JSON::Number>,
boost::recursive_wrapper<JSON::Object>, boost::recursive_wrapper<JSON::Array>,
boost::recursive_wrapper<JSON::Boolean> > > >,
boost::detail::variant::is_variant_constructible_from<const
std::__cxx11::basic_string<char>&, boost::mpl::l_item<mpl_::long_<6l>,
boost::recursive_wrapper<JSON::Null>, boost::mpl::l_item<mpl_::long_<5l>,
boost::recursive_wrapper<JSON::String>, boost::mpl::l_item<mpl_::long_<4l>,
boost::recursive_wrapper<JSON::Number>, boost::mpl::l_item<mpl_::long_<3l>,
boost::recursive_wrapper<JSON::Object>, boost::mpl::l_item<mpl_::long_<2l>,
boost::recursive_wrapper<JSON::Array>, boost::mpl::l_item<mpl_::long_<1l>,
boost::recursive_wrapper<JSON::Boolean>, boost::mpl::l_end> > > > > > >,
mpl_::bool_<true>, mpl_::bool_<true>, mpl_::bool_<true> >, void>'
In file included from /usr/include/boost/variant.hpp:17:0,
from ./../stout/include/stout/json.hpp:35,
from ./include/process/http.hpp:38,
from ./include/process/event.hpp:19,
from ./include/process/process.hpp:24,
from ./include/process/dispatch.hpp:20,
from ./include/process/deferred.hpp:18,
from ./include/process/defer.hpp:19,
from src/process.cpp:66:
{noformat}
Sadly I got no C++ kill and it looks looks like chinese to me. But I'm there,
available for testing if you need some feedbacks...
Regards, Adam.
> "stdlib.h: No such file or directory" when building with GCC 6 (Debian stable
> freshly released)
> -----------------------------------------------------------------------------------------------
>
> Key: MESOS-7699
> URL: https://issues.apache.org/jira/browse/MESOS-7699
> Project: Mesos
> Issue Type: Bug
> Components: build
> Affects Versions: 1.2.0
> Reporter: Adam Cecile
>
> Hi,
> It seems the issue comes from a workaround added a while ago:
> https://reviews.apache.org/r/40326/
> https://reviews.apache.org/r/40327/
> When building with external libraries it turns out creating build commands
> line with -isystem /usr/include which is clearly stated as being wrong,
> according to GCC guys:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
> I'll do some testing by reverting all -isystem to -I and I'll let it know if
> it gets built.
> Regards, Adam.
> {noformat}
> configure:21642: result: no
> configure:21642: checking glog/logging.h presence
> configure:21642: g++ -E -I/usr/include -I/usr/include/apr-1
> -I/usr/include/apr-1.0 -Wdate-time -D_FORTIFY_SOURCE=2 -isystem /usr/include
> -I/usr/include conftest.cpp
> In file included from /usr/include/c++/6/ext/string_conversions.h:41:0,
> from /usr/include/c++/6/bits/basic_string.h:5417,
> from /usr/include/c++/6/string:52,
> from /usr/include/c++/6/bits/locale_classes.h:40,
> from /usr/include/c++/6/bits/ios_base.h:41,
> from /usr/include/c++/6/ios:42,
> from /usr/include/c++/6/ostream:38,
> from /usr/include/glog/logging.h:43,
> from conftest.cpp:32:
> /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or
> directory
> #include_next <stdlib.h>
> ^
> compilation terminated.
> configure:21642: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "mesos"
> | #define PACKAGE_TARNAME "mesos"
> | #define PACKAGE_VERSION "1.2.0"
> | #define PACKAGE_STRING "mesos 1.2.0"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL ""
> | #define PACKAGE "mesos"
> | #define VERSION "1.2.0"
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define HAVE_CXX11 1
> | #define HAVE_PTHREAD_PRIO_INHERIT 1
> | #define HAVE_PTHREAD 1
> | #define HAVE_LIBZ 1
> | #define HAVE_FTS_H 1
> | #define HAVE_APR_POOLS_H 1
> | #define HAVE_LIBAPR_1 1
> | #define HAVE_BOOST_VERSION_HPP 1
> | #define HAVE_LIBCURL 1
> | /* end confdefs.h. */
> | #include <glog/logging.h>
> configure:21642: result: no
> configure:21642: checking for glog/logging.h
> configure:21642: result: no
> configure:21674: error: cannot find glog
> -------------------------------------------------------------------
> You have requested the use of a non-bundled glog but no suitable
> glog could be found.
> You may want specify the location of glog by providing a prefix
> path via --with-glog=DIR, or check that the path you provided is
> correct if you're already doing this.
> -------------------------------------------------------------------
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)