Closed kunaltyagi closed 2 years ago
@kunaltyagi I have exactly the same issue. I tried on Alpine and on Debian, all the same.
I think the issue is in the dependent library googlemock or googletest, but so far I wasn't able to get around it. I tried upstepping to gcc 11 as well, as suggested on the google mock issue list, but no results.
FYI
Disabling the tests will make the build successfully complete.
# cmake -DCMAKE_BUILD_TYPE=Release \
-DJAEGERTRACING_PLUGIN=ON \
-DBUILD_TESTING=OFF \
-DHUNTER_CONFIGURATION_TYPES=Release \
..
# make -j3
# mv libjaegertracing_plugin.so /libjaegertracing_plugin.so
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
mkdir build && cd build && cmake ..
make
Expected behavior No error in build
Screenshots Not needed
Version (please complete the following information):
What troubleshooting steps did you try? Couldn't get anything to compile
Additional context
Compiler error and details
``` $ cmake --version cmake version 3.21.3 CMake suite maintained and supported by Kitware (kitware.com/cmake). ``` ``` $ gcc --version gcc (GCC) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ``` ``` $ cmake .. && make -j8 -- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/miniconda3/envs/ros1/bin/x86_64-conda-linux-gnu-cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/miniconda3/envs/ros1/bin/x86_64-conda-linux-gnu-c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- [hunter] Calculating Toolchain-SHA1 -- [hunter] Calculating Config-SHA1 -- [hunter] HUNTER_ROOT: /home/kt/.hunter -- [hunter] [ Hunter-ID: d45d77d | Toolchain-ID: c10d4f1 | Config-ID: 3b7ee27 ] -- [hunter] THRIFT_ROOT: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Install (ver.: 0.12.0-p0) -- Boost version: 1.72.0 -- Boost version: 1.72.0 -- [hunter] OPENTRACING-CPP_ROOT: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Install (ver.: 1.6.0) -- [hunter] NLOHMANN_JSON_ROOT: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Install (ver.: 3.7.0) -- Found nlohmann_json: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.7.0") -- [hunter] YAML-CPP_ROOT: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Install (ver.: 0.6.2-0f9a586-p1) -- [hunter] GTEST_ROOT: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Install (ver.: 1.8.0-hunter-p11) -- [hunter] Building GTest loading initial cache file /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/cache.cmake loading initial cache file /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/args.cmake -- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Check for working C compiler: /opt/miniconda3/envs/ros1/bin/x86_64-conda-linux-gnu-cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /opt/miniconda3/envs/ros1/bin/x86_64-conda-linux-gnu-c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Build [ 6%] Creating directories for 'GTest-Release' [ 12%] Performing download step (download, verify and extract) for 'GTest-Release' -- verifying file... file='/home/kt/.hunter/_Base/Download/GTest/1.8.0-hunter-p11/76c6aec/1.8.0-hunter-p11.tar.gz' -- File already exists and hash match (skip download): file='/home/kt/.hunter/_Base/Download/GTest/1.8.0-hunter-p11/76c6aec/1.8.0-hunter-p11.tar.gz' SHA1='76c6aec038f7d7258bf5c4f45c4817b34039d285' -- extracting... src='/home/kt/.hunter/_Base/Download/GTest/1.8.0-hunter-p11/76c6aec/1.8.0-hunter-p11.tar.gz' dst='/home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Source' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [ 18%] No update step for 'GTest-Release' [ 25%] No patch step for 'GTest-Release' [ 31%] Performing configure step for 'GTest-Release' loading initial cache file /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/cache.cmake loading initial cache file /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/args.cmake -- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Check for working C compiler: /opt/miniconda3/envs/ros1/bin/x86_64-conda-linux-gnu-cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /opt/miniconda3/envs/ros1/bin/x86_64-conda-linux-gnu-c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: /opt/miniconda3/envs/ros1/bin/python (found version "3.8.12") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Build/GTest-Release-prefix/src/GTest-Release-build [ 37%] Performing build step for 'GTest-Release' [ 45%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o [ 45%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o [ 45%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/__/googletest/src/gtest-all.cc.o [ 45%] Building CXX object googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o [ 45%] Building CXX object googlemock/CMakeFiles/gmock.dir/__/googletest/src/gtest-all.cc.o [ 54%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o In file included from /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Source/googlemock/include/gmock/gmock-spec-builders.h:75, from /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Source/googlemock/include/gmock/gmock-generated-function-mockers.h:43, from /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Source/googlemock/include/gmock/gmock.h:61, from /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Source/googlemock/src/gmock_main.cc:33: /home/kt/.hunter/_Base/d45d77d/c10d4f1/3b7ee27/Build/GTest/Source/googlemock/include/gmock/gmock-matchers.h: In instantiation of 'testing::PolymorphicMatcher