Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1434

7.2.0.ER1 RHEL 7 C++ client build fails with unrecognized command line option ‘-Wimplicit-fallthrough=0’

    XMLWordPrintable

Details

    Description

      With the ER1 build I get the an error when running the following commands:

      cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DHR_USE_SYSTEM_PROTOBUF=ON -DHOTROD_PREBUILT_LIB_DIR=/usr/lib64 -DHOTROD_JBOSS_HOME=/home/jboss/jboss-datagrid-${JDG_VERSION}-server ${JDG_CLIENT_SRC_DIR}
      cmake --build ${JDG_CLIENT_SRC_DIR}/build --config RelWithDebInfo --target build_test
      

      This is the error:

      ...
      [ 11%] Building CXX object CMakeFiles/queryTest.dir/test/QueryTest.cpp.o
      /usr/bin/c++   -DHR_PROTO_EXPORT=" " -I/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/include -I/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/src -I/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/build -I/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/build/gtest/src/gtest/googletest/include -I/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/build/gtest/src/gtest/googlemock/include -I/usr/lib64/../include -I/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/build/test/query_proto -I/usr/lib64/../include/infinispan/hotrod -I/usr/lib/jvm/java-1.8.0/include -I/usr/lib/jvm/java-1.8.0/include/linux    -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11  -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers -Woverloaded-virtual -Wno-variadic-macros -Wno-error=shadow -Wno-error=unused-parameter -Wno-unused-parameter -Wimplicit-fallthrough=0 -o CMakeFiles/queryTest.dir/test/QueryTest.cpp.o -c /artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/test/QueryTest.cpp
      c++: error: unrecognized command line option ‘-Wimplicit-fallthrough=0’
      gmake[3]: *** [CMakeFiles/queryTest.dir/test/QueryTest.cpp.o] Error 1
      gmake[3]: Leaving directory `/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/build'
      gmake[2]: *** [CMakeFiles/queryTest.dir/all] Error 2
      gmake[2]: Leaving directory `/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/build'
      gmake[1]: *** [CMakeFiles/build_test.dir/rule] Error 2
      gmake[1]: Leaving directory `/artifacts/jdg-cpp-client-JDG_7.2.0.ER1-BOTH/rhel7/build'
      gmake: *** [build_test] Error 2
      

      Removing the instances of -Wimplicit-fallthrough=0 from the CMakeLists.txt file is sufficient to fix this issue, but I need to verify that this doesn't cause any other issues with vrigamon@redhat.com.

      Attachments

        Activity

          People

            vrigamon@redhat.com Vittorio Rigamonti
            rhn-support-afield Alan Field
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: