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

Neil Conway commented on MESOS-3998:
------------------------------------

Following the devtoolset-3 installation instructions 
(https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/), I end up 
with gcc 4.9.2:

{noformat}
$ scl enable devtoolset-3 bash
$ gcc --version
gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
{noformat}

But either way, works for me :)

> resource test failure
> ---------------------
>
>                 Key: MESOS-3998
>                 URL: https://issues.apache.org/jira/browse/MESOS-3998
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>            Reporter: David Robinson
>            Assignee: Neil Conway
>
> Encountered this test failure when building mesos on CentOS 7 via 
> [devtoolset-3|https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/].
> {code}
> DEBUG: In file included from tests/resources_tests.cpp:23:0:
> DEBUG: 
> ../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include/gtest/gtest.h: In 
> instantiation of 'testing::AssertionResult 
> testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const 
> T2&) [with T1 = int; T2 = long unsigned int]':
> DEBUG: 
> ../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include/gtest/gtest.h:1485:30:
>    required from 'static testing::AssertionResult 
> testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const 
> char*, const T1&, const T2&) [with T1 = int; T2 = long unsigned int; bool 
> lhs_is_null_literal = false]'
> DEBUG: tests/resources_tests.cpp:219:5:   required from here
> DEBUG: 
> ../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include/gtest/gtest.h:1448:16:
>  error: comparison between signed and unsigned integer expressions 
> [-Werror=sign-compare]
> DEBUG:    if (expected == actual) {
> DEBUG:                 ^
> DEBUG: g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" 
> -DPACKAGE_VERSION=\"0.26.0-rc1\" -DPACKAGE_STRING=\"mesos\ 0.26.0-rc1\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" 
> -DVERSION=\"0.26.0-rc1\" -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_PTHREAD_PRIO_INHERIT=1 
> -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_APR_POOLS_H=1 
> -DHAVE_LIBAPR_1=1 -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 
> -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBSASL2=1 
> -DHAVE_LIBNL_3=1 -DHAVE_NETLINK_NETLINK_H=1 -DHAVE_LIBNL_ROUTE_3=1 
> -DHAVE_NETLINK_ROUTE_LINK_VETH_H=1 -DHAVE_LIBNL_IDIAG_3=1 
> -DWITH_NETWORK_ISOLATOR=1 -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" 
> -DMESOS_HAS_PYTHON=1 -I.   -Wall -Werror -DLIBDIR=\"/usr/local/lib64\" 
> -DPKGLIBEXECDIR=\"/usr/local/libexec/mesos\" 
> -DPKGDATADIR=\"/usr/local/share/mesos\" -I../include 
> -I../3rdparty/libprocess/include 
> -I../3rdparty/libprocess/3rdparty/stout/include -I../include 
> -I../include/mesos -I../3rdparty/libprocess/3rdparty/boost-1.53.0 
> -I../3rdparty/libprocess/3rdparty/picojson-1.3.0 -DPICOJSON_USE_INT64 
> -D__STDC_FORMAT_MACROS -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src 
> -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src 
> -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src 
> -I../3rdparty/leveldb/include -I../3rdparty/zookeeper-3.4.5/src/c/include 
> -I../3rdparty/zookeeper-3.4.5/src/c/generated 
> -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src 
> -DSOURCE_DIR=\"/builddir/build/BUILD/mesos-0.26.0\" 
> -DBUILD_DIR=\"/builddir/build/BUILD/mesos-0.26.0\" 
> -I../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include 
> -I../3rdparty/libprocess/3rdparty/gmock-1.7.0/include 
> -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91-2.6.2.1.el7_1.x86_64/include 
> -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91-2.6.2.1.el7_1.x86_64/include/linux 
> -DZOOKEEPER_VERSION=\"3.4.5\" -I/usr/include/libnl3 
> -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0  
> -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   
> -m64 -mtune=generic -Wno-unused-local-typedefs -Wno-maybe-uninitialized 
> -std=c++11 -c -o tests/mesos_tests-scheduler_driver_tests.o `test -f 
> 'tests/scheduler_driver_tests.cpp' || echo 
> './'`tests/scheduler_driver_tests.cpp
> DEBUG: g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" 
> -DPACKAGE_VERSION=\"0.26.0-rc1\" -DPACKAGE_STRING=\"mesos\ 0.26.0-rc1\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" 
> -DVERSION=\"0.26.0-rc1\" -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_PTHREAD_PRIO_INHERIT=1 
> -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_APR_POOLS_H=1 
> -DHAVE_LIBAPR_1=1 -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 
> -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBSASL2=1 
> -DHAVE_LIBNL_3=1 -DHAVE_NETLINK_NETLINK_H=1 -DHAVE_LIBNL_ROUTE_3=1 
> -DHAVE_NETLINK_ROUTE_LINK_VETH_H=1 -DHAVE_LIBNL_IDIAG_3=1 
> -DWITH_NETWORK_ISOLATOR=1 -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" 
> -DMESOS_HAS_PYTHON=1 -I.   -Wall -Werror -DLIBDIR=\"/usr/local/lib64\" 
> -DPKGLIBEXECDIR=\"/usr/local/libexec/mesos\" 
> -DPKGDATADIR=\"/usr/local/share/mesos\" -I../include 
> -I../3rdparty/libprocess/include 
> -I../3rdparty/libprocess/3rdparty/stout/include -I../include 
> -I../include/mesos -I../3rdparty/libprocess/3rdparty/boost-1.53.0 
> -I../3rdparty/libprocess/3rdparty/picojson-1.3.0 -DPICOJSON_USE_INT64 
> -D__STDC_FORMAT_MACROS -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src 
> -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src 
> -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src 
> -I../3rdparty/leveldb/include -I../3rdparty/zookeeper-3.4.5/src/c/include 
> -I../3rdparty/zookeeper-3.4.5/src/c/generated 
> -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src 
> -DSOURCE_DIR=\"/builddir/build/BUILD/mesos-0.26.0\" 
> -DBUILD_DIR=\"/builddir/build/BUILD/mesos-0.26.0\" 
> -I../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include 
> -I../3rdparty/libprocess/3rdparty/gmock-1.7.0/include 
> -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91-2.6.2.1.el7_1.x86_64/include 
> -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91-2.6.2.1.el7_1.x86_64/include/linux 
> -DZOOKEEPER_VERSION=\"3.4.5\" -I/usr/include/libnl3 
> -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0  
> -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   
> -m64 -mtune=generic -Wno-unused-local-typedefs -Wno-maybe-uninitialized 
> -std=c++11 -c -o tests/mesos_tests-scheduler_event_call_tests.o `test -f 
> 'tests/scheduler_event_call_tests.cpp' || echo 
> './'`tests/scheduler_event_call_tests.cpp
> DEBUG: cc1plus: all warnings being treated as errors
> {code}
> Comparison code
> {code}
>   Resources portResources(resourcesTry.get());
>   auto ports = portResources.begin();
>   EXPECT_EQ(Value::RANGES, ports->type());
>   EXPECT_EQ(2, ports->ranges().range_size());
>   // Do not specify the ordering of ranges, only check the values.
>   if (10000 != ports->ranges().range(0).begin()) {
>     EXPECT_EQ(30000u, ports->ranges().range(0).begin());
>     EXPECT_EQ(10000u, ports->ranges().range(1).begin());
>   } else {
>     EXPECT_EQ(30000u, ports->ranges().range(1).begin());
>   }
> {code}



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

Reply via email to