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

Test build failure due to comparison between signed and unsigned integers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.26.0
    • None
    • 1

    Description

      Compilation fails on OpenSUSE Tumbleweed (Linux 4.1.6, gcc 5.1.1, glibc 2.22) with the following errors:

      In file included from ../../src/tests/values_tests.cpp:22:0: 
      ../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include/gtest/gtest.h: In instantiatio
      n of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, 
      const T1&, const T2&) [with T1 = int; T2 = long unsigned int]’: 
      ../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include/gtest/gtest.h:1484:23:   requi
      red from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_litera
      l>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = long un
      signed int; bool lhs_is_null_literal = false]’ 
      ../../src/tests/values_tests.cpp:287:3:   required from here 
      ../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] 
        if (expected == actual) { 
                     ^ 
       CXX      tests/containerizer/mesos_tests-provisioner_docker_tests.o 
      ^CMakefile:6779: recipe for target 'tests/mesos_tests-values_tests.o' failed 
      make[3]: *** [tests/mesos_tests-values_tests.o] Interrupt
      

      Attachments

        Activity

          People

            karya Kapil Arya
            karya Kapil Arya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: