Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4844

fault_injection_tool build failure on some platforms

    XMLWordPrintableJSON

Details

    Description

      On some platforms cmake build for fault-injection-tool complains about not able to find the threads library. Eventually this leads to failure when doing the make.

      root@ccycloud:~/ozone/tools/fault-injection-service/Build# ~/cmake-3.14.0-Linux-x86_64/bin/cmake ../
      -- The C compiler identification is GNU 5.4.0
      -- The CXX compiler identification is GNU 5.4.0
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Warning (dev) at /root/.local/lib/cmake/protobuf/protobuf-options.cmake:6 (option):
        Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
        --help-policy CMP0077" for policy details.  Use the cmake_policy command to
        set the policy and suppress this warning.
      
      
        For compatibility with older versions of CMake, option is clearing the
        normal variable 'protobuf_MODULE_COMPATIBLE'.
      Call Stack (most recent call first):
        /root/.local/lib/cmake/protobuf/protobuf-config.cmake:2 (include)
        CMakeLists.txt:37 (find_package)
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      
      -- Using protobuf 
      -- Using gRPC 1.35.0
      -- Configuring done
      CMake Warning (dev) at CMakeLists.txt:85 (add_executable):
        Policy CMP0028 is not set: Double colon in target name means ALIAS or
        IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
      
      
        Target "failure_injector_svc_server" links to target "Threads::Threads" but
        the target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      
      CMake Warning (dev) at CMakeLists.txt:85 (add_executable):
        Policy CMP0028 is not set: Double colon in target name means ALIAS or
        IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
      
      
        Target "failure_injector_svc_server" links to target "Threads::Threads" but
        the target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      
      CMake Warning (dev) at CMakeLists.txt:85 (add_executable):
        Policy CMP0028 is not set: Double colon in target name means ALIAS or
        IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
      
      
        Target "failure_injector_svc_server" links to target "Threads::Threads" but
        the target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      
      CMake Warning (dev) at CMakeLists.txt:96 (add_executable):
        Policy CMP0028 is not set: Double colon in target name means ALIAS or
        IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
      
      
        Target "failure_injector_svc_client" links to target "Threads::Threads" but
        the target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      
      CMake Warning (dev) at CMakeLists.txt:96 (add_executable):
        Policy CMP0028 is not set: Double colon in target name means ALIAS or
        IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
      
      
        Target "failure_injector_svc_client" links to target "Threads::Threads" but
        the target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      
      CMake Warning (dev) at CMakeLists.txt:96 (add_executable):
        Policy CMP0028 is not set: Double colon in target name means ALIAS or
        IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
        Use the cmake_policy command to set the policy and suppress this warning.
      
      
        Target "failure_injector_svc_client" links to target "Threads::Threads" but
        the target was not found.  Perhaps a find_package() call is missing for an
        IMPORTED target, or an ALIAS target is missing?
      This warning is for project developers.  Use -Wno-dev to suppress it.
      
      
      -- Generating done
      -- Build files have been written to: /root/ozone/tools/fault-injection-service/Build
      root@ccycloud:~/ozone/tools/fault-injection-service/Build# 
      

      Attachments

        Issue Links

          Activity

            People

              ppogde Prashant Pogde
              ppogde Prashant Pogde
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: