You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2018/01/25 15:56:11 UTC

[1/3] mesos git commit: Reverted usage of the -isystem flag for includes.

Repository: mesos
Updated Branches:
  refs/heads/master 2b3423894 -> e932ed591


Reverted usage of the -isystem flag for includes.

This flag break the build of mesos against system libraries
installed under /usr, because it generates a command line
of `-isystem /usr/include`, which is explicitly not supported
by gcc. See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129

Review: https://reviews.apache.org/r/62447/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/361ed4a0
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/361ed4a0
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/361ed4a0

Branch: refs/heads/master
Commit: 361ed4a0e2f6617fa76d83449cfdd2df82a2f543
Parents: 2b34238
Author: Benno Evers <be...@mesosphere.com>
Authored: Thu Jan 25 11:22:47 2018 +0100
Committer: Benjamin Bannier <bb...@apache.org>
Committed: Thu Jan 25 16:18:06 2018 +0100

----------------------------------------------------------------------
 3rdparty/CMakeLists.txt | 12 ++++----
 configure.ac            | 72 ++++++++++++++++++--------------------------
 docs/cmake-examples.md  |  4 +--
 m4/libnl3.m4            |  4 +--
 src/Makefile.am         | 17 ++---------
 5 files changed, 43 insertions(+), 66 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/361ed4a0/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index 579aed8..da60570 100644
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -178,7 +178,7 @@ endfunction()
 EXTERNAL(boost ${BOOST_VERSION} ${CMAKE_CURRENT_BINARY_DIR})
 add_library(boost INTERFACE)
 add_dependencies(boost ${BOOST_TARGET})
-target_include_directories(boost SYSTEM INTERFACE ${BOOST_ROOT})
+target_include_directories(boost INTERFACE ${BOOST_ROOT})
 
 ExternalProject_Add(
   ${BOOST_TARGET}
@@ -196,7 +196,7 @@ ExternalProject_Add(
 EXTERNAL(concurrentqueue ${CONCURRENTQUEUE_VERSION} ${CMAKE_CURRENT_BINARY_DIR})
 add_library(concurrentqueue INTERFACE)
 add_dependencies(concurrentqueue ${CONCURRENTQUEUE_TARGET})
-target_include_directories(concurrentqueue SYSTEM INTERFACE ${CONCURRENTQUEUE_ROOT})
+target_include_directories(concurrentqueue INTERFACE ${CONCURRENTQUEUE_ROOT})
 
 ExternalProject_Add(
   ${CONCURRENTQUEUE_TARGET}
@@ -251,7 +251,7 @@ endif ()
 EXTERNAL(elfio ${ELFIO_VERSION} ${CMAKE_CURRENT_BINARY_DIR})
 add_library(elfio INTERFACE)
 add_dependencies(elfio ${ELFIO_TARGET})
-target_include_directories(elfio SYSTEM INTERFACE ${ELFIO_ROOT})
+target_include_directories(elfio INTERFACE ${ELFIO_ROOT})
 
 ExternalProject_Add(
   ${ELFIO_TARGET}
@@ -336,7 +336,7 @@ ExternalProject_Add(
 EXTERNAL(picojson ${PICOJSON_VERSION} ${CMAKE_CURRENT_BINARY_DIR})
 add_library(picojson INTERFACE)
 add_dependencies(picojson ${PICOJSON_TARGET})
-target_include_directories(picojson SYSTEM INTERFACE ${PICOJSON_ROOT})
+target_include_directories(picojson INTERFACE ${PICOJSON_ROOT})
 
 # Enable the INT64 support for PicoJSON.
 # NOTE: PicoJson requires __STDC_FORMAT_MACROS to be defined before importing
@@ -364,7 +364,7 @@ ExternalProject_Add(
 EXTERNAL(nvml ${NVML_VERSION} ${CMAKE_CURRENT_BINARY_DIR})
 add_library(nvml INTERFACE)
 add_dependencies(nvml ${NVML_TARGET})
-target_include_directories(nvml SYSTEM INTERFACE ${NVML_ROOT})
+target_include_directories(nvml INTERFACE ${NVML_ROOT})
 
 ExternalProject_Add(
   ${NVML_TARGET}
@@ -547,7 +547,7 @@ if (NOT WIN32)
   # executable, but we're looking for the library.
   find_package(Svn REQUIRED)
   add_library(svn INTERFACE)
-  target_include_directories(svn SYSTEM INTERFACE ${SVN_INCLUDE_DIR})
+  target_include_directories(svn INTERFACE ${SVN_INCLUDE_DIR})
 
   # `FindSvn` returns finds three separate libraries.
   foreach (lib ${SVN_LIBS})

http://git-wip-us.apache.org/repos/asf/mesos/blob/361ed4a0/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index b48c80d..30fbadc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -808,11 +808,11 @@ fi
 # suffixes. We include /include/apr-1 because we include <apr*>
 # headers directly.
 if test -n "`echo $with_apr`" ; then
-    CPPFLAGS="-isystem ${with_apr}/include/apr-1 \
-              -isystem ${with_apr}/include/apr-1.0 $CPPFLAGS"
+    CPPFLAGS="-I${with_apr}/include/apr-1 \
+              -I${with_apr}/include/apr-1.0 $CPPFLAGS"
     LDFLAGS="-L${with_apr}/lib $LDFLAGS"
 else
-    CPPFLAGS="-isystem /usr/include/apr-1 -isystem /usr/include/apr-1.0	\
+    CPPFLAGS="-I/usr/include/apr-1 -I/usr/include/apr-1.0	\
       $CPPFLAGS"
 fi
 
@@ -828,18 +828,8 @@ libapr-1 is required for mesos to build.
 -------------------------------------------------------------------
 ])])
 
-
-# We use "-isystem" instead of "-I" to add Boost to the include search
-# path. This disables compiler warnings inside Boost headers since we
-# can't easily fix them. See MESOS-3799.
-#
-# Note that the use of "-isystem" modifies header lookup order; the
-# preprocessor will first look for headers in *all* paths given with
-# "-I" and only then look into "-isystem" paths. This means that all
-# prefixes potentially containing Boost headers should be added with
-# "-isystem" as well.
 if test -n "`echo $with_boost`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_boost}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_boost}/include"
 fi
 
 # Check if user has asked us to use a preinstalled Boost, or if they
@@ -871,7 +861,7 @@ fi
 AM_CONDITIONAL([WITH_BUNDLED_BOOST], [test "x$with_bundled_boost" = "xyes"])
 
 if test -n "`echo $with_concurrentqueue`"; then
-  CPPFLAGS="-isystem ${with_concurrentqueue} $CPPFLAGS"
+  CPPFLAGS="-I${with_concurrentqueue} $CPPFLAGS"
 fi
 
 
@@ -909,7 +899,7 @@ AM_CONDITIONAL([WITH_BUNDLED_CONCURRENTQUEUE],
 # the CPPFLAGS and LDFLAGS with respective /include and /lib path
 # suffixes.
 if test -n "`echo $with_curl`" ; then
-    CPPFLAGS="-isystem ${with_curl}/include $CPPFLAGS"
+    CPPFLAGS="-I${with_curl}/include $CPPFLAGS"
     LDFLAGS="-L${with_curl}/lib $LDFLAGS"
 fi
 
@@ -931,7 +921,7 @@ if test "x$without_bundled_elfio" = "xyes" || \
     if test "$with_elfio" = "${with_elfio#/}"; then
       AC_MSG_ERROR([The path passed to --with-elfio must be absolute.])
     fi
-     CPPFLAGS="-isystem ${with_elfio} $CPPFLAGS"
+     CPPFLAGS="-I${with_elfio} $CPPFLAGS"
   fi
 
   AC_CHECK_HEADERS([elfio/elfio.h], [],
@@ -953,7 +943,7 @@ AM_CONDITIONAL([WITH_BUNDLED_ELFIO], [test "x$with_bundled_elfio" = "xyes"])
 # while extending it by /include and to LDFLAGS while extending it by
 # /lib.
 if test -n "`echo $with_glog`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_glog}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_glog}/include"
   LDFLAGS="$LDFLAGS -L${with_glog}/lib"
 fi
 
@@ -995,12 +985,12 @@ GMOCKSRC="gmock-all.cc"
 GTESTSRC="gtest-all.cc"
 
 if test -n "`echo $with_gmock`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_gmock} -isystem ${with_gmock}/include \
-    -isystem ${with_gmock}/src -isystem ${with_gmock}/gtest \
-    -isystem ${with_gmock}/gtest/include -isystem ${with_gmock}/gtest/src"
+  CPPFLAGS="$CPPFLAGS -I${with_gmock} -I${with_gmock}/include \
+    -I${with_gmock}/src -I${with_gmock}/gtest \
+    -I${with_gmock}/gtest/include -I${with_gmock}/gtest/src"
 
 elif test "x$enable_bundled" != "xyes"; then
-  CPPFLAGS="$CPPFLAGS -isystem /usr/src/gmock"
+  CPPFLAGS="$CPPFLAGS -I/usr/src/gmock"
   # On system installations the deps are handled separately.
   # So insert a placeholder for substitution.
   GTESTSRC="stdio.h"
@@ -1049,7 +1039,7 @@ AC_SUBST([GTESTSRC])
 
 
 if test -n "`echo $with_http_parser`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_http_parser}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_http_parser}/include"
   LDFLAGS="$LDFLAGS -L${with_http_parser}/lib"
 fi
 
@@ -1211,8 +1201,8 @@ __EOF__
     if test "$OS_NAME" = "darwin"; then
       while true; do # Loop until sucessful (via break) or exhausted options.
         m4_foreach([java_cppflags],
-                   [["-isystem $JAVA_HOME/include -isystem $JAVA_HOME/include/$OS_NAME"],
-                    ["-isystem /System/Library/Frameworks/JavaVM.framework/Headers"]],
+                   [["-I$JAVA_HOME/include -I$JAVA_HOME/include/$OS_NAME"],
+                    ["-I/System/Library/Frameworks/JavaVM.framework/Headers"]],
                    [JAVA_CPPFLAGS=java_cppflags
                     TRY_LINK_JNI([break])])
         # Exhausted options.
@@ -1230,7 +1220,7 @@ __EOF__
     else
       while true; do # Loop until sucessful (via break) or exhausted options.
         m4_foreach([java_cppflags],
-                   [["-isystem $JAVA_HOME/include -isystem $JAVA_HOME/include/$OS_NAME"]],
+                   [["-I$JAVA_HOME/include -I$JAVA_HOME/include/$OS_NAME"]],
                    [JAVA_CPPFLAGS=java_cppflags
                     TRY_LINK_JNI([break])])
         # Exhausted options.
@@ -1294,7 +1284,7 @@ AM_CONDITIONAL([HAS_JAVA], [test "x$has_java" = "xyes"])
 # CPPFLAGS while extending it by /include and to LDFLAGS while
 # extending it by /lib.
 if test -n "`echo $with_leveldb`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_leveldb}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_leveldb}/include"
   LDFLAGS="$LDFLAGS -L${with_leveldb}/lib"
 fi
 
@@ -1343,7 +1333,7 @@ if test -z "`echo $with_libevent`" &&
 fi
 
 if test -n "`echo $with_libevent`"; then
-  CPPFLAGS="-isystem ${with_libevent}/include $CPPFLAGS"
+  CPPFLAGS="-I${with_libevent}/include $CPPFLAGS"
   LDFLAGS="-L${with_libevent}/lib $LDFLAGS"
 fi
 
@@ -1415,7 +1405,6 @@ AM_CONDITIONAL([WITH_BUNDLED_LIBPROCESS], [test "x$with_bundled_libprocess" = "x
 
 # Perform necessary configuration for port mapping isolator.
 if test "x$enable_port_mapping_isolator" = "xyes"; then
-
   # Check for OS support.
   AS_IF([test "$OS_NAME" = "linux"],
         [],
@@ -1472,7 +1461,7 @@ if test "x$without_bundled_nvml" = "xyes" || \
     if test "$with_nvml" = "${with_nvml#/}"; then
       AC_MSG_ERROR([The path passed to --with-nvml must be absolute.])
     fi
-     CPPFLAGS="-isystem ${with_nvml} $CPPFLAGS"
+     CPPFLAGS="-I${with_nvml} $CPPFLAGS"
   fi
 
   AC_CHECK_HEADERS([nvidia/gdk/nvml.h], [],
@@ -1495,7 +1484,7 @@ AM_CONDITIONAL([WITH_BUNDLED_NVML],
 # CPPFLAGS while extending it by /include and to LDFLAGS while
 # extending it by /lib.
 if test -n "`echo $with_protobuf`"; then
-  PROTOBUF_CPPFLAGS="-isystem ${with_protobuf}/include"
+  PROTOBUF_CPPFLAGS="-I${with_protobuf}/include"
   PROTOBUF_LINKERFLAGS="-L${with_protobuf}/lib"
 
   CPPFLAGS="$PROTOBUF_CPPFLAGS $CPPFLAGS"
@@ -1572,7 +1561,6 @@ else
   PROTOBUF_JAR="\${MESOS_BUILD_DIR}/src/java/target/protobuf-java-3.5.0.jar"
 fi
 
-
 AM_CONDITIONAL([WITH_BUNDLED_PROTOBUF],
                [test "x$with_bundled_protobuf" = "xyes"])
 
@@ -1583,7 +1571,7 @@ AC_SUBST([PROTOCOMPILER])
 
 
 if test -n "`echo $with_libev`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_libev}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_libev}/include"
   LDFLAGS="$LDFLAGS -L${with_libev}/lib"
 fi
 
@@ -1629,7 +1617,7 @@ fi
 
 
 if test -n "`echo $with_picojson`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_picojson}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_picojson}/include"
 fi
 
 # Check if user has asked us to use a preinstalled picojson, or if
@@ -1665,7 +1653,7 @@ AM_CONDITIONAL([WITH_BUNDLED_PICOJSON], [test "x$with_bundled_picojson" = "xyes"
 # the CPPFLAGS and LDFLAGS with respective /include and /lib path
 # suffixes.
 if test -n "`echo $with_sasl`" ; then
-  CPPFLAGS="-isystem ${with_sasl}/include $CPPFLAGS"
+  CPPFLAGS="-I${with_sasl}/include $CPPFLAGS"
   LDFLAGS="-L${with_sasl}/lib $LDFLAGS"
 fi
 
@@ -1759,7 +1747,7 @@ if test -z "`echo $with_ssl`" &&
 fi
 
 if test -n "`echo $with_ssl`"; then
-  SSL_CPPFLAGS="-isystem ${with_ssl}/include"
+  SSL_CPPFLAGS="-I${with_ssl}/include"
   SSL_LINKERFLAGS="-L${with_ssl}/lib"
 
   CPPFLAGS="$SSL_CPPFLAGS $CPPFLAGS"
@@ -1862,10 +1850,10 @@ if test -z "`echo $with_svn`" &&
 fi
 
 if test -n "`echo $with_svn`"; then
-  CPPFLAGS="-isystem ${with_svn}/include/subversion-1 $CPPFLAGS"
+  CPPFLAGS="-I${with_svn}/include/subversion-1 $CPPFLAGS"
   LDFLAGS="-L${with_svn}/lib $LDFLAGS"
 else
-  CPPFLAGS="-isystem /usr/include/subversion-1 $CPPFLAGS"
+  CPPFLAGS="-I/usr/include/subversion-1 $CPPFLAGS"
 fi
 
 AC_CHECK_HEADERS([svn_version.h],
@@ -1943,7 +1931,7 @@ AM_CONDITIONAL([ENABLE_XFS_DISK_ISOLATOR], [test "x$enable_xfs_disk_isolator" =
 # the CPPFLAGS and LDFLAGS with respective /include and /lib path
 # suffixes.
 if test -n "`echo $with_zlib`" ; then
-  ZLIB_CPPFLAGS="-isystem ${with_zlib}/include"
+  ZLIB_CPPFLAGS="-I${with_zlib}/include"
   ZLIB_LINKERFLAGS="-L${with_zlib}/lib"
 
   CPPFLAGS="$ZLIB_CPPFLAGS $CPPFLAGS"
@@ -1982,7 +1970,7 @@ location of protobuf used by grpc by providing a prefix path via
     ])
   fi
 
-  CPPFLAGS="$CPPFLAGS -isystem ${with_grpc}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_grpc}/include"
   LDFLAGS="$LDFLAGS -L${with_grpc}/lib"
 fi
 
@@ -2066,10 +2054,10 @@ AC_SUBST([GRPC_CXX_PLUGIN])
 # NOTE: The reason we append /include/zookeeper is because in mesos,
 # we include <zookeeper.h> rather than <zookeeper/zookeeper.h>.
 if test -n "`echo $with_zookeeper`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_zookeeper}/include/zookeeper"
+  CPPFLAGS="$CPPFLAGS -I${with_zookeeper}/include/zookeeper"
   LDFLAGS="$LDFLAGS -L${with_zookeeper}/lib"
 elif test "x$enable_bundled" != "xyes"; then
-  CPPFLAGS="$CPPFLAGS -isystem /usr/include/zookeeper"
+  CPPFLAGS="$CPPFLAGS -I/usr/include/zookeeper"
 fi
 
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/361ed4a0/docs/cmake-examples.md
----------------------------------------------------------------------
diff --git a/docs/cmake-examples.md b/docs/cmake-examples.md
index e7274a4..74abfcc 100644
--- a/docs/cmake-examples.md
+++ b/docs/cmake-examples.md
@@ -81,7 +81,7 @@ third-party dependency exists.
 EXTERNAL(boost ${BOOST_VERSION} ${CMAKE_CURRENT_BINARY_DIR})
 add_library(boost INTERFACE)
 add_dependencies(boost ${BOOST_TARGET})
-target_include_directories(boost SYSTEM INTERFACE ${BOOST_ROOT})
+target_include_directories(boost INTERFACE ${BOOST_ROOT})
 ...
 ```
 
@@ -96,7 +96,7 @@ target, usable like any other library. We use `add_dependencies(boost
 ${BOOST_TARGET})` to add a manual dependency on the `ExternalProject_Add` step;
 this is necessary as CMake is lazy and won't execute code unless it must (say,
 because of a dependency). The final part of creating this header-only library in
-our build system is `target_include_directories(boost SYSTEM INTERFACE
+our build system is `target_include_directories(boost INTERFACE
 ${BOOST_ROOT})`, which sets the `BOOST_ROOT` folder (the destination of the
 extracted headers) as the include interface for the `boost` target. All
 dependencies on Boost will now automatically include this folder during

http://git-wip-us.apache.org/repos/asf/mesos/blob/361ed4a0/m4/libnl3.m4
----------------------------------------------------------------------
diff --git a/m4/libnl3.m4 b/m4/libnl3.m4
index 238ac6e..e64ba49 100644
--- a/m4/libnl3.m4
+++ b/m4/libnl3.m4
@@ -46,10 +46,10 @@ AC_ARG_WITH([nl],
 # this macro is used.
 AS_IF([test x$ac_mesos_have_libnl3 = x], [
   AS_IF([test -n "$with_nl"], [
-    CPPFLAGS="-isystem ${with_nl}/include/libnl3 $CPPFLAGS"
+    CPPFLAGS="-I${with_nl}/include/libnl3 $CPPFLAGS"
     LDFLAGS="-L${with_nl}/lib $LDFLAGS"
   ], [
-    CPPFLAGS="-isystem /usr/include/libnl3 $CPPFLAGS"
+    CPPFLAGS="-I/usr/include/libnl3 $CPPFLAGS"
   ])
 ])
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/361ed4a0/src/Makefile.am
----------------------------------------------------------------------
diff --git a/src/Makefile.am b/src/Makefile.am
index fb2961e..f30b038 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -150,17 +150,11 @@ MESOS_CPPFLAGS += -DPICOJSON_USE_INT64
 MESOS_CPPFLAGS += -D__STDC_FORMAT_MACROS
 
 if WITH_BUNDLED_BOOST
-# We use "-isystem" instead of "-I" to add Boost to the include search
-# path. This disables compiler warnings inside Boost headers since we
-# can't easily fix them. See MESOS-3799.
-MESOS_CPPFLAGS += -isystem ../$(BOOST)
+MESOS_CPPFLAGS += -I../$(BOOST)
 endif
 
 if WITH_BUNDLED_CONCURRENTQUEUE
-# We use "-isystem" instead of "-I" to add concurrentqueue to the include
-# search path. This disables compiler warnings inside concurrentqueue
-# headers since we don't own the library.
-MESOS_CPPFLAGS += -isystem ../$(CONCURRENTQUEUE)
+MESOS_CPPFLAGS += -I../$(CONCURRENTQUEUE)
 endif
 
 if WITH_BUNDLED_ELFIO
@@ -2597,12 +2591,7 @@ mesos_tests_CPPFLAGS = $(MESOS_CPPFLAGS)
 mesos_tests_CPPFLAGS += -DSOURCE_DIR=\"$(abs_top_srcdir)\"
 mesos_tests_CPPFLAGS += -DBUILD_DIR=\"$(abs_top_builddir)\"
 mesos_tests_CPPFLAGS += -I../$(GTEST)/include
-
-# We use "-isystem" instead of "-I" to add googlemock to the include
-# search path. This disables compiler warnings inside googlemock
-# headers since we can't easily fix them.
-mesos_tests_CPPFLAGS += -isystem ../$(GMOCK)/include
-
+mesos_tests_CPPFLAGS += -I../$(GMOCK)/include
 mesos_tests_CPPFLAGS += -DTESTLIBEXECDIR=\"$(testlibexecdir)\"
 mesos_tests_CPPFLAGS += -DSBINDIR=\"$(sbindir)\"
 


[3/3] mesos git commit: Reverted usage of the -isystem flag for includes in stout.

Posted by bb...@apache.org.
Reverted usage of the -isystem flag for includes in stout.

This flag break the build of mesos against system libraries
installed under /usr, because it generates a command line
of `-isystem /usr/include`, which is explicitly not supported
by gcc. See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129

Review: https://reviews.apache.org/r/65290/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e932ed59
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e932ed59
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e932ed59

Branch: refs/heads/master
Commit: e932ed591e74ce3570753375f28f063552331bfe
Parents: 069b466
Author: Benno Evers <be...@mesosphere.com>
Authored: Thu Jan 25 11:23:02 2018 +0100
Committer: Benjamin Bannier <bb...@apache.org>
Committed: Thu Jan 25 16:18:10 2018 +0100

----------------------------------------------------------------------
 3rdparty/stout/Makefile.am  | 5 +----
 3rdparty/stout/configure.ac | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e932ed59/3rdparty/stout/Makefile.am
----------------------------------------------------------------------
diff --git a/3rdparty/stout/Makefile.am b/3rdparty/stout/Makefile.am
index 313e4fe..ef22a02 100644
--- a/3rdparty/stout/Makefile.am
+++ b/3rdparty/stout/Makefile.am
@@ -64,11 +64,8 @@ BUNDLED_DEPS = # Initialize BUNDLED_DEPS so we can add to it.
 %-stamp:
 	@cd $(BUNDLED_DIR) && $(MAKE) $(AM_MAKEFLAGS) $(@:$(BUNDLED_DIR)/%=%)
 
-# We use "-isystem" instead of "-I" to add Boost to the include search
-# path. This disables compiler warnings inside Boost headers since we
-# can't easily fix them. See MESOS-3799.
 if WITH_BUNDLED_BOOST
-BOOST_INCLUDE_FLAGS = -isystem $(BOOST)
+BOOST_INCLUDE_FLAGS = -I$(BOOST)
 BUNDLED_DEPS += $(BOOST)-stamp
 endif
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/e932ed59/3rdparty/stout/configure.ac
----------------------------------------------------------------------
diff --git a/3rdparty/stout/configure.ac b/3rdparty/stout/configure.ac
index 6db2287..5a8c023 100644
--- a/3rdparty/stout/configure.ac
+++ b/3rdparty/stout/configure.ac
@@ -280,11 +280,8 @@ libapr-1 is required for stout tests to build.
 ])])
 
 
-# We use "-isystem" instead of "-I" to add Boost to the include search
-# path. This disables compiler warnings inside Boost headers since we
-# can't easily fix them. See MESOS-3799.
 if test -n "`echo $with_boost`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_boost}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_boost}/include"
 fi
 
 # Check if user has asked us to use a preinstalled Boost, or if they


[2/3] mesos git commit: Reverted usage of the -isystem flag for includes in libprocess.

Posted by bb...@apache.org.
Reverted usage of the -isystem flag for includes in libprocess.

This flag break the build of mesos against system libraries
installed under /usr, because it generates a command line
of `-isystem /usr/include`, which is explicitly not supported
by gcc. See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129

Review: https://reviews.apache.org/r/65289/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/069b466f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/069b466f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/069b466f

Branch: refs/heads/master
Commit: 069b466fd1993386febc60e488369936ae731dd6
Parents: 361ed4a
Author: Benno Evers <be...@mesosphere.com>
Authored: Thu Jan 25 11:22:57 2018 +0100
Committer: Benjamin Bannier <bb...@apache.org>
Committed: Thu Jan 25 16:18:08 2018 +0100

----------------------------------------------------------------------
 3rdparty/libprocess/Makefile.am  |  7 ++-----
 3rdparty/libprocess/configure.ac | 18 ++++++------------
 2 files changed, 8 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/069b466f/3rdparty/libprocess/Makefile.am
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/Makefile.am b/3rdparty/libprocess/Makefile.am
index ba9e781..3071b7c 100644
--- a/3rdparty/libprocess/Makefile.am
+++ b/3rdparty/libprocess/Makefile.am
@@ -74,12 +74,12 @@ BUNDLED_DEPS = # Initialize BUNDLED_DEPENDENCIES so we can add to it.
 	@cd $(BUNDLED_DIR) && $(MAKE) $(AM_MAKEFLAGS) $(@:$(BUNDLED_DIR)/%=%)
 
 if WITH_BUNDLED_BOOST
-BOOST_INCLUDE_FLAGS = -isystem $(BOOST)
+BOOST_INCLUDE_FLAGS = -I$(BOOST)
 BUNDLED_DEPS += $(BOOST)-stamp
 endif
 
 if WITH_BUNDLED_CONCURRENTQUEUE
-CONCURRENTQUEUE_INCLUDE_FLAGS = -isystem $(CONCURRENTQUEUE)
+CONCURRENTQUEUE_INCLUDE_FLAGS = -I$(CONCURRENTQUEUE)
 BUNDLED_DEPS += $(CONCURRENTQUEUE)-stamp
 endif
 
@@ -235,9 +235,6 @@ libprocess_la_SOURCES +=	\
 endif
 
 
-# We use "-isystem" instead of "-I" to add Boost to the include search
-# path. This disables compiler warnings inside Boost headers since we
-# can't easily fix them. See MESOS-3799.
 libprocess_la_CPPFLAGS =			\
   -DBUILD_DIR=\"$(LIBPROCESS_BUILD_DIR)\"	\
   -I$(srcdir)/include				\

http://git-wip-us.apache.org/repos/asf/mesos/blob/069b466f/3rdparty/libprocess/configure.ac
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/configure.ac b/3rdparty/libprocess/configure.ac
index 1069d57..69ec9b9 100644
--- a/3rdparty/libprocess/configure.ac
+++ b/3rdparty/libprocess/configure.ac
@@ -516,11 +516,8 @@ libapr-1 is required for libprocess to build.
 ])])
 
 
-# We use "-isystem" instead of "-I" to add Boost to the include search
-# path. This disables compiler warnings inside Boost headers since we
-# can't easily fix them. See MESOS-3799.
 if test -n "`echo $with_boost`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_boost}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_boost}/include"
 fi
 
 # Check if user has asked us to use a preinstalled Boost, or if they
@@ -552,11 +549,8 @@ fi
 AM_CONDITIONAL([WITH_BUNDLED_BOOST], [test "x$with_bundled_boost" = "xyes"])
 
 
-# We use "-isystem" instead of "-I" to add concurrentqueue to the include
-# search path. This disables compiler warnings inside concurrentqueue
-# headers since we don't own the library.
 if test -n "`echo $with_concurrentqueue`"; then
-  CPPFLAGS="$CPPFLAGS -isystem ${with_concurrentqueue}"
+  CPPFLAGS="$CPPFLAGS -I${with_concurrentqueue}"
 fi
 
 # Check if user has asked us to use a preinstalled concurrentqueue,
@@ -889,7 +883,7 @@ AM_CONDITIONAL([WITH_BUNDLED_PICOJSON], [test "x$with_bundled_picojson" = "xyes"
 
 
 if test -n "`echo $with_protobuf`"; then
-  PROTOBUF_CPPFLAGS="-isystem ${with_protobuf}/include"
+  PROTOBUF_CPPFLAGS="-I${with_protobuf}/include"
   PROTOBUF_LINKERFLAGS="-L${with_protobuf}/lib"
 
   CPPFLAGS="$PROTOBUF_CPPFLAGS $CPPFLAGS"
@@ -969,7 +963,7 @@ if test -z "`echo $with_ssl`" &&
 fi
 
 if test -n "`echo $with_ssl`"; then
-  SSL_CPPFLAGS="-isystem ${with_ssl}/include"
+  SSL_CPPFLAGS="-I${with_ssl}/include"
   SSL_LINKERFLAGS="-L${with_ssl}/lib"
 
   CPPFLAGS="$SSL_CPPFLAGS $CPPFLAGS"
@@ -1111,7 +1105,7 @@ libsubversion-1 is required for libprocess to build.
 # the CPPFLAGS and LDFLAGS with respective /include and /lib path
 # suffixes.
 if test -n "`echo $with_zlib`" ; then
-  ZLIB_CPPFLAGS="-isystem ${with_zlib}/include"
+  ZLIB_CPPFLAGS="-I${with_zlib}/include"
   ZLIB_LINKERFLAGS="-L${with_zlib}/lib"
 
   CPPFLAGS="$ZLIB_CPPFLAGS $CPPFLAGS"
@@ -1150,7 +1144,7 @@ location of protobuf used by grpc by providing a prefix path via
     ])
   fi
 
-  CPPFLAGS="$CPPFLAGS -isystem ${with_grpc}/include"
+  CPPFLAGS="$CPPFLAGS -I${with_grpc}/include"
   LDFLAGS="$LDFLAGS -L${with_grpc}/lib"
 fi