You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Adam Cecile (JIRA)" <ji...@apache.org> on 2017/06/20 18:55:00 UTC
[jira] [Created] (MESOS-7699) "stdlib.h: No such file or directory"
when building with GCC 6 (Debian stable freshly released)
Adam Cecile created MESOS-7699:
----------------------------------
Summary: "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)