Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7699

"stdlib.h: No such file or directory" when building with GCC 6 (Debian stable freshly released)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.6.0
    • build
    • Mesosphere Sprint 66, Mesosphere Sprint 67, Mesosphere Sprint 68, Mesosphere Sprint 73
    • 8

    Description

      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.

      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.
      -------------------------------------------------------------------
      

      Attachments

        Issue Links

          Activity

            People

              bennoe Benno Evers
              acecile Adam Cecile
              Benjamin Bannier Benjamin Bannier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: