You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use cmake 3.23, gcc 11.2.1, gtest 1.11 on centos 7.x.
I compile like mkdir bld; cd bld; cmake ..; make -j12 install, but I get errors as follows.
In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/signalhandler_unittest.cc:35:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type; did you mean ‘GLOG_NO_EXPORT’? 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~ | GLOG_NO_EXPORTIn file included from /root/workspace/docker_env/glog/src/signalhandler_unittest.cc:35:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~make[2]: *** [CMakeFiles/signalhandler_unittest.dir/build.make:76: CMakeFiles/signalhandler_unittest.dir/src/signalhandler_unittest.cc.o] Error 1make[1]: *** [CMakeFiles/Makefile2:1127: CMakeFiles/signalhandler_unittest.dir/all] Error 2make[1]: *** Waiting for unfinished jobs....In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/stacktrace_unittest.cc:30:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type; did you mean ‘GLOG_NO_EXPORT’? 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~ | GLOG_NO_EXPORTIn file included from /root/workspace/docker_env/glog/src/stacktrace_unittest.cc:30:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /root/workspace/docker_env/glog/src/stacktrace_unittest.cc:37:/root/workspace/docker_env/glog/src/stacktrace.h:57:1: error: ‘GLOG_EXPORT’ does not name a type; did you mean ‘GLOG_NO_EXPORT’? 57 | GLOG_EXPORT int GetStackTrace(void** result, int max_depth, int skip_count); | ^~~~~~~~~~~ | GLOG_NO_EXPORT/root/workspace/docker_env/glog/src/stacktrace_unittest.cc: In function ‘void CheckStackTraceLeaf()’:/root/workspace/docker_env/glog/src/stacktrace_unittest.cc:128:10: error: ‘GetStackTrace’ was not declared in this scope; did you mean ‘CheckStackTrace’? 128 | size = GetStackTrace(stack, STACK_LEN, 0); | ^~~~~~~~~~~~~ | CheckStackTracemake[2]: *** [CMakeFiles/stacktrace_unittest.dir/build.make:76: CMakeFiles/stacktrace_unittest.dir/src/stacktrace_unittest.cc.o] Error 1make[1]: *** [CMakeFiles/Makefile2:1075: CMakeFiles/stacktrace_unittest.dir/all] Error 2[ 54%] Built target glogIn file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/symbolize_unittest.cc:38:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: note: the macro ‘GLOG_EXPORT’ had not yet been definedIn file included from /root/workspace/docker_env/glog/src/symbolize_unittest.cc:39:/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/googletest.h:38, from /root/workspace/docker_env/glog/src/symbolize_unittest.cc:39:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /root/workspace/docker_env/glog/src/symbolize_unittest.cc:39:/root/workspace/docker_env/glog/src/googletest.h:71:8: error: ‘GLOG_EXPORT’ does not name a type 71 | extern GLOG_EXPORT void (*g_logging_fail_func)(); | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:71:8: note: the macro ‘GLOG_EXPORT’ had not yet been defined/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/utilities_unittest.cc:31:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: note: the macro ‘GLOG_EXPORT’ had not yet been definedIn file included from /root/workspace/docker_env/glog/src/utilities_unittest.cc:32:/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/utilities_unittest.cc:31:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/demangle_unittest.cc:34:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: note: the macro ‘GLOG_EXPORT’ had not yet been definedIn file included from /root/workspace/docker_env/glog/src/demangle_unittest.cc:41:/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/demangle_unittest.cc:34:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities_unittest.cc:32:/root/workspace/docker_env/glog/src/googletest.h:71:8: error: ‘GLOG_EXPORT’ does not name a type 71 | extern GLOG_EXPORT void (*g_logging_fail_func)(); | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:71:8: note: the macro ‘GLOG_EXPORT’ had not yet been defined/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/mock-log.h:39, from /root/workspace/docker_env/glog/src/mock-log_unittest.cc:34:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type; did you mean ‘GLOG_NO_EXPORT’? 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~ | GLOG_NO_EXPORTIn file included from /root/workspace/docker_env/glog/src/demangle_unittest.cc:40:/root/workspace/docker_env/glog/src/demangle.h:81:18: error: expected initializer before ‘Demangle’ 81 | bool GLOG_EXPORT Demangle(const char *mangled, char *out, size_t out_size); | ^~~~~~~~/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: note: the macro ‘GLOG_EXPORT’ had not yet been definedIn file included from /root/workspace/docker_env/glog/src/logging_unittest.cc:61:/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /root/workspace/docker_env/glog/src/mock-log.h:39, from /root/workspace/docker_env/glog/src/mock-log_unittest.cc:34:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /root/workspace/docker_env/glog/src/demangle_unittest.cc:41:/root/workspace/docker_env/glog/src/googletest.h:71:8: error: ‘GLOG_EXPORT’ does not name a type 71 | extern GLOG_EXPORT void (*g_logging_fail_func)(); | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:71:8: note: the macro ‘GLOG_EXPORT’ had not yet been defined/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/stl_logging_unittest.cc:61:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: note: the macro ‘GLOG_EXPORT’ had not yet been definedIn file included from /root/workspace/docker_env/glog/src/stl_logging_unittest.cc:63:/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /thirdparty/include/glog/logging.h:589, from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:32:/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: error: ‘GLOG_EXPORT’ does not name a type 70 | extern GLOG_EXPORT const char* const LogSeverityNames[NUM_SEVERITIES]; | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/glog/log_severity.h:70:8: note: the macro ‘GLOG_EXPORT’ had not yet been definedIn file included from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:61:/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:32:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /root/workspace/docker_env/glog/src/logging_unittest.cc:61:/root/workspace/docker_env/glog/src/googletest.h:71:8: error: ‘GLOG_EXPORT’ does not name a type 71 | extern GLOG_EXPORT void (*g_logging_fail_func)(); | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:71:8: note: the macro ‘GLOG_EXPORT’ had not yet been defined/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/googletest.h:38, from /root/workspace/docker_env/glog/src/stl_logging_unittest.cc:63:/root/workspace/docker_env/glog/src/utilities.h:150:1: error: ‘WallTime’ does not name a type 150 | WallTime WallTime_Now(); | ^~~~~~~~In file included from /root/workspace/docker_env/glog/src/stl_logging_unittest.cc:63:/root/workspace/docker_env/glog/src/googletest.h:71:8: error: ‘GLOG_EXPORT’ does not name a type 71 | extern GLOG_EXPORT void (*g_logging_fail_func)(); | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:71:8: note: the macro ‘GLOG_EXPORT’ had not yet been defined/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:61:/root/workspace/docker_env/glog/src/googletest.h:71:8: error: ‘GLOG_EXPORT’ does not name a type 71 | extern GLOG_EXPORT void (*g_logging_fail_func)(); | ^~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:71:8: note: the macro ‘GLOG_EXPORT’ had not yet been defined/root/workspace/docker_env/glog/src/googletest.h:76: note: it was later defined here 76 | #define GLOG_EXPORT |In file included from /root/workspace/docker_env/glog/src/utilities_unittest.cc:32:/root/workspace/docker_env/glog/src/utilities_unittest.cc: In member function ‘virtual void utilities_InitGoogleLoggingDeathTest_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/utilities_unittest.cc:50:3: note: in expansion of macro ‘ASSERT_DEATH’ 50 | ASSERT_DEATH(InitGoogleLogging("foobar"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc: In function ‘const char* DemangleIt(const char*)’:/root/workspace/docker_env/glog/src/demangle_unittest.cc:58:7: error: ‘Demangle’ was not declared in this scope; did you mean ‘demangled’? 58 | if (Demangle(mangled, demangled, sizeof(demangled))) { | ^~~~~~~~ | demangledIn file included from /thirdparty/include/gtest/gtest.h:62, from /root/workspace/docker_env/glog/src/googletest.h:113, from /root/workspace/docker_env/glog/src/demangle_unittest.cc:41:/root/workspace/docker_env/glog/src/demangle_unittest.cc: In member function ‘virtual void Demangle_CornerCases_Test::TestBody()’:/root/workspace/docker_env/glog/src/demangle_unittest.cc:89:15: error: ‘Demangle’ was not declared in this scope; did you mean ‘demangled’? 89 | EXPECT_TRUE(Demangle(mangled, tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:92:15: error: ‘Demangle’ was not declared in this scope; did you mean ‘demangled’? 92 | EXPECT_TRUE(Demangle(mangled, tmp, size - 1)); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:94:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘demangled’? 94 | EXPECT_FALSE(Demangle(mangled, tmp, size - 2)); // Not enough. | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:95:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘demangled’? 95 | EXPECT_FALSE(Demangle(mangled, tmp, 1)); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:96:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘demangled’? 96 | EXPECT_FALSE(Demangle(mangled, tmp, 0)); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:97:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘demangled’? 97 | EXPECT_FALSE(Demangle(mangled, NULL, 0)); // Should not cause SEGV. | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc: In member function ‘virtual void Demangle_Clones_Test::TestBody()’:/root/workspace/docker_env/glog/src/demangle_unittest.cc:106:15: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 106 | EXPECT_TRUE(Demangle("_ZL3Foov", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:108:15: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 108 | EXPECT_TRUE(Demangle("_ZL3Foov.clone.3", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:110:15: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 110 | EXPECT_TRUE(Demangle("_ZL3Foov.constprop.80", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:112:15: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 112 | EXPECT_TRUE(Demangle("_ZL3Foov.isra.18", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:114:15: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 114 | EXPECT_TRUE(Demangle("_ZL3Foov.isra.2.constprop.18", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:117:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 117 | EXPECT_FALSE(Demangle("_ZL3Foov.clo", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:119:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 119 | EXPECT_FALSE(Demangle("_ZL3Foov.clone.", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:121:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 121 | EXPECT_FALSE(Demangle("_ZL3Foov.clone.foo", tmp, sizeof(tmp))); | ^~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc:123:16: error: ‘Demangle’ was not declared in this scope; did you mean ‘DemangleIt’? 123 | EXPECT_FALSE(Demangle("_ZL3Foov.isra.2.constprop.", tmp, sizeof(tmp))); | ^~~~~~~~make[2]: *** [CMakeFiles/symbolize_unittest.dir/build.make:76: CMakeFiles/symbolize_unittest.dir/src/symbolize_unittest.cc.o] Error 1make[1]: *** [CMakeFiles/Makefile2:1023: CMakeFiles/symbolize_unittest.dir/all] Error 2/root/workspace/docker_env/glog/src/mock-log_unittest.cc: In member function ‘virtual void {anonymous}::ScopedMockLogTest_InterceptsLog_Test::TestBody()’:/root/workspace/docker_env/glog/src/mock-log_unittest.cc:55:17: error: cannot declare variable ‘log’ to be of abstract type ‘google::glog_testing::ScopedMockLog’ 55 | ScopedMockLog log; | ^~~In file included from /root/workspace/docker_env/glog/src/mock-log_unittest.cc:34:/root/workspace/docker_env/glog/src/mock-log.h:68:7: note: because the following virtual functions are pure within ‘google::glog_testing::ScopedMockLog’: 68 | class ScopedMockLog : public GOOGLE_NAMESPACE::LogSink { | ^~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/mock-log.h:39, from /root/workspace/docker_env/glog/src/mock-log_unittest.cc:34:/thirdparty/include/glog/logging.h:1730:16: note: ‘virtual void google::LogSink::send(google::LogSeverity, const char*, const char*, int, const tm*, const char*, size_t)’ 1730 | virtual void send(LogSeverity severity, const char* full_filename, | ^~~~/root/workspace/docker_env/glog/src/mock-log_unittest.cc: In member function ‘virtual void {anonymous}::ScopedMockLogTest_LogDuringIntercept_Test::TestBody()’:/root/workspace/docker_env/glog/src/mock-log_unittest.cc:88:17: error: cannot declare variable ‘log’ to be of abstract type ‘google::glog_testing::ScopedMockLog’ 88 | ScopedMockLog log; | ^~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In function ‘int main(int, char**)’:/root/workspace/docker_env/glog/src/logging_unittest.cc:245:3: error: ‘FLAGS_logtostdout’ was not declared in this scope; did you mean ‘FLAGS_logtostderr’? 245 | FLAGS_logtostdout = true; | ^~~~~~~~~~~~~~~~~ | FLAGS_logtostderrIn file included from /root/workspace/docker_env/glog/src/logging_unittest.cc:61:/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void DeathNoAllocNewHook_logging_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:342:3: note: in expansion of macro ‘ASSERT_DEATH’ 342 | ASSERT_DEATH({ | ^~~~~~~~~~~~make[2]: *** [CMakeFiles/utilities_unittest.dir/build.make:76: CMakeFiles/utilities_unittest.dir/src/utilities_unittest.cc.o] Error 1make[1]: *** [CMakeFiles/Makefile2:1101: CMakeFiles/utilities_unittest.dir/all] Error 2/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void DeathRawCHECK_logging_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:498:3: note: in expansion of macro ‘ASSERT_DEATH’ 498 | ASSERT_DEATH(RAW_CHECK(false, "failure 1"), | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:250:37: note: in expansion of macro ‘ASSERT_DEATH’ 250 | #define ASSERT_DEBUG_DEATH(fn, msg) ASSERT_DEATH(fn, msg) | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:500:3: note: in expansion of macro ‘ASSERT_DEBUG_DEATH’ 500 | ASSERT_DEBUG_DEATH(RAW_DCHECK(1 == 2, "failure 2"), | ^~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void TestLogSinkImpl::send(google::LogSeverity, const char*, const char*, int, const LogMessageTime&, const char*, size_t)’:/root/workspace/docker_env/glog/src/logging_unittest.cc:545:15: error: no matching function for call to ‘TestLogSinkImpl::ToString(google::LogSeverity&, const char*&, int&, const LogMessageTime&, const char*&, size_t&)’ 545 | ToString(severity, base_filename, line, logmsgtime, message, message_len)); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/thirdparty/include/glog/logging.h:1752:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t, google::int32)’ 1752 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1752:22: note: candidate expects 7 arguments, 6 provided/thirdparty/include/glog/logging.h:1758:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t)’ 1758 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1759:50: note: no known conversion for argument 4 from ‘const LogMessageTime’ to ‘const tm*’ 1759 | const struct ::tm* tm_time, | ~~~~~~~~~~~~~~~~~~~^~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In function ‘void TestLogSink()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:550:19: error: cannot declare variable ‘sink’ to be of abstract type ‘TestLogSinkImpl’ 550 | TestLogSinkImpl sink; | ^~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:537:7: note: because the following virtual functions are pure within ‘TestLogSinkImpl’: 537 | class TestLogSinkImpl : public LogSink { | ^~~~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/thirdparty/include/glog/logging.h:1730:16: note: ‘virtual void google::LogSink::send(google::LogSeverity, const char*, const char*, int, const tm*, const char*, size_t)’ 1730 | virtual void send(LogSeverity severity, const char* full_filename, | ^~~~In file included from /root/workspace/docker_env/glog/src/logging_unittest.cc:61:/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void DeathSTREQ_logging_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:649:3: note: in expansion of macro ‘ASSERT_DEATH’ 649 | ASSERT_DEATH(CHECK_STREQ(NULL, "this"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:650:3: note: in expansion of macro ‘ASSERT_DEATH’ 650 | ASSERT_DEATH(CHECK_STREQ("this", "siht"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:651:3: note: in expansion of macro ‘ASSERT_DEATH’ 651 | ASSERT_DEATH(CHECK_STRCASEEQ(NULL, "siht"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:652:3: note: in expansion of macro ‘ASSERT_DEATH’ 652 | ASSERT_DEATH(CHECK_STRCASEEQ("this", "siht"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:653:3: note: in expansion of macro ‘ASSERT_DEATH’ 653 | ASSERT_DEATH(CHECK_STRNE(NULL, NULL), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/demangle_unittest.cc: In function ‘const char* DemangleIt(const char*)’:/root/workspace/docker_env/glog/src/demangle_unittest.cc:63:1: warning: control reaches end of non-void function [-Wreturn-type] 63 | } | ^/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:654:3: note: in expansion of macro ‘ASSERT_DEATH’ 654 | ASSERT_DEATH(CHECK_STRNE("this", "this"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:655:3: note: in expansion of macro ‘ASSERT_DEATH’ 655 | ASSERT_DEATH(CHECK_STREQ((string("a")+"b").c_str(), "abc"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void DeathCheckNN_Simple_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:670:3: note: in expansion of macro ‘ASSERT_DEATH’ 670 | ASSERT_DEATH(CHECK_NOTNULL(static_cast<void *>(NULL)), ""); | ^~~~~~~~~~~~make[2]: *** [CMakeFiles/demangle_unittest.dir/build.make:76: CMakeFiles/demangle_unittest.dir/src/demangle_unittest.cc.o] Error 1make[1]: *** [CMakeFiles/Makefile2:1049: CMakeFiles/demangle_unittest.dir/all] Error 2/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void TestWaitingLogSink::send(google::LogSeverity, const char*, const char*, int, const LogMessageTime&, const char*, size_t)’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1263:30: error: no matching function for call to ‘TestWaitingLogSink::ToString(google::LogSeverity&, const char*&, int&, const LogMessageTime&, const char*&, size_t&)’ 1263 | writer_.Buffer(ToString(severity, base_filename, line, | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1264 | logmsgtime, message, message_len)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/thirdparty/include/glog/logging.h:1752:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t, google::int32)’ 1752 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1752:22: note: candidate expects 7 arguments, 6 provided/thirdparty/include/glog/logging.h:1758:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t)’ 1758 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1759:50: note: no known conversion for argument 4 from ‘const LogMessageTime’ to ‘const tm*’ 1759 | const struct ::tm* tm_time, | ~~~~~~~~~~~~~~~~~~~^~~~~~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In function ‘void TestLogSinkWaitTillSent()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1285:24: error: cannot declare variable ‘sink’ to be of abstract type ‘TestWaitingLogSink’ 1285 | { TestWaitingLogSink sink; | ^~~~/root/workspace/docker_env/glog/src/logging_unittest.cc:1240:7: note: because the following virtual functions are pure within ‘TestWaitingLogSink’: 1240 | class TestWaitingLogSink : public LogSink { | ^~~~~~~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/thirdparty/include/glog/logging.h:1730:16: note: ‘virtual void google::LogSink::send(google::LogSeverity, const char*, const char*, int, const tm*, const char*, size_t)’ 1730 | virtual void send(LogSeverity severity, const char* full_filename, | ^~~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void DVLog_Basic_Test::TestBody()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1339:17: error: cannot declare variable ‘log’ to be of abstract type ‘google::glog_testing::ScopedMockLog’ 1339 | ScopedMockLog log; | ^~~In file included from /root/workspace/docker_env/glog/src/logging_unittest.cc:72:/root/workspace/docker_env/glog/src/mock-log.h:68:7: note: because the following virtual functions are pure within ‘google::glog_testing::ScopedMockLog’: 68 | class ScopedMockLog : public GOOGLE_NAMESPACE::LogSink { | ^~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/thirdparty/include/glog/logging.h:1730:16: note: ‘virtual void google::LogSink::send(google::LogSeverity, const char*, const char*, int, const tm*, const char*, size_t)’ 1730 | virtual void send(LogSeverity severity, const char* full_filename, | ^~~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void DVLog_V0_Test::TestBody()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1353:17: error: cannot declare variable ‘log’ to be of abstract type ‘google::glog_testing::ScopedMockLog’ 1353 | ScopedMockLog log; | ^~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void LogAtLevel_Basic_Test::TestBody()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1363:17: error: cannot declare variable ‘log’ to be of abstract type ‘google::glog_testing::ScopedMockLog’ 1363 | ScopedMockLog log; | ^~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void TestExitOnDFatal_ToBeOrNotToBe_Test::TestBody()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1387:19: error: cannot declare variable ‘log’ to be of abstract type ‘google::glog_testing::ScopedMockLog’ 1387 | ScopedMockLog log; | ^~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void LogBacktraceAt_DoesNotBacktraceWhenDisabled_Test::TestBody()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1424:29: error: cannot declare variable ‘log’ to be of abstract type ‘testing::StrictMock<google::glog_testing::ScopedMockLog>’ 1424 | StrictMock<ScopedMockLog> log; | ^~~In file included from /thirdparty/include/gmock/gmock.h:65, from /root/workspace/docker_env/glog/src/logging_unittest.cc:71:/thirdparty/include/gmock/gmock-nice-strict.h:217:39: note: because the following virtual functions are pure within ‘testing::StrictMock<google::glog_testing::ScopedMockLog>’: 217 | class GTEST_INTERNAL_EMPTY_BASE_CLASS StrictMock | ^~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_unittest.cc:33:/thirdparty/include/glog/logging.h:1730:16: note: ‘virtual void google::LogSink::send(google::LogSeverity, const char*, const char*, int, const tm*, const char*, size_t)’ 1730 | virtual void send(LogSeverity severity, const char* full_filename, | ^~~~/root/workspace/docker_env/glog/src/logging_unittest.cc: In member function ‘virtual void LogBacktraceAt_DoesBacktraceAtRightLineWhenEnabled_Test::TestBody()’:/root/workspace/docker_env/glog/src/logging_unittest.cc:1435:29: error: cannot declare variable ‘log’ to be of abstract type ‘testing::StrictMock<google::glog_testing::ScopedMockLog>’ 1435 | StrictMock<ScopedMockLog> log; | ^~~In file included from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:61:/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In member function ‘virtual void DeathNoAllocNewHook_logging_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:349:3: note: in expansion of macro ‘ASSERT_DEATH’ 349 | ASSERT_DEATH({ | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In member function ‘virtual void DeathRawCHECK_logging_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:487:3: note: in expansion of macro ‘ASSERT_DEATH’ 487 | ASSERT_DEATH(RAW_CHECK(false, "failure 1"), | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:250:37: note: in expansion of macro ‘ASSERT_DEATH’ 250 | #define ASSERT_DEBUG_DEATH(fn, msg) ASSERT_DEATH(fn, msg) | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:489:3: note: in expansion of macro ‘ASSERT_DEBUG_DEATH’ 489 | ASSERT_DEBUG_DEATH(RAW_DCHECK(1 == 2, "failure 2"), | ^~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In member function ‘virtual void TestLogSinkImpl::send(google::LogSeverity, const char*, const char*, int, const LogMessageTime&, const char*, size_t)’:/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:534:15: error: no matching function for call to ‘TestLogSinkImpl::ToString(google::LogSeverity&, const char*&, int&, const LogMessageTime&, const char*&, size_t&)’ 534 | ToString(severity, base_filename, line, logmsgtime, message, message_len)); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:32:/thirdparty/include/glog/logging.h:1752:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t, google::int32)’ 1752 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1752:22: note: candidate expects 7 arguments, 6 provided/thirdparty/include/glog/logging.h:1758:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t)’ 1758 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1759:50: note: no known conversion for argument 4 from ‘const LogMessageTime’ to ‘const tm*’ 1759 | const struct ::tm* tm_time, | ~~~~~~~~~~~~~~~~~~~^~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In function ‘void TestLogSink()’:/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:539:19: error: cannot declare variable ‘sink’ to be of abstract type ‘TestLogSinkImpl’ 539 | TestLogSinkImpl sink; | ^~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:526:7: note: because the following virtual functions are pure within ‘TestLogSinkImpl’: 526 | class TestLogSinkImpl : public LogSink { | ^~~~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:32:/thirdparty/include/glog/logging.h:1730:16: note: ‘virtual void google::LogSink::send(google::LogSeverity, const char*, const char*, int, const tm*, const char*, size_t)’ 1730 | virtual void send(LogSeverity severity, const char* full_filename, | ^~~~In file included from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:61:/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In member function ‘virtual void DeathSTREQ_logging_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:638:3: note: in expansion of macro ‘ASSERT_DEATH’ 638 | ASSERT_DEATH(CHECK_STREQ(NULL, "this"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:639:3: note: in expansion of macro ‘ASSERT_DEATH’ 639 | ASSERT_DEATH(CHECK_STREQ("this", "siht"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:640:3: note: in expansion of macro ‘ASSERT_DEATH’ 640 | ASSERT_DEATH(CHECK_STRCASEEQ(NULL, "siht"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:641:3: note: in expansion of macro ‘ASSERT_DEATH’ 641 | ASSERT_DEATH(CHECK_STRCASEEQ("this", "siht"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:642:3: note: in expansion of macro ‘ASSERT_DEATH’ 642 | ASSERT_DEATH(CHECK_STRNE(NULL, NULL), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:643:3: note: in expansion of macro ‘ASSERT_DEATH’ 643 | ASSERT_DEATH(CHECK_STRNE("this", "this"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:644:3: note: in expansion of macro ‘ASSERT_DEATH’ 644 | ASSERT_DEATH(CHECK_STREQ((string("a")+"b").c_str(), "abc"), ""); | ^~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In member function ‘virtual void DeathCheckNN_Simple_Test::TestBody()’:/root/workspace/docker_env/glog/src/googletest.h:235:44: error: ‘g_logging_fail_func’ was not declared in this scope; did you mean ‘original_logging_fail_func’? 235 | void (*original_logging_fail_func)() = g_logging_fail_func; \ | ^~~~~~~~~~~~~~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:659:3: note: in expansion of macro ‘ASSERT_DEATH’ 659 | ASSERT_DEATH(CHECK_NOTNULL(static_cast<void *>(NULL)), ""); | ^~~~~~~~~~~~make[2]: *** [CMakeFiles/stl_logging_unittest.dir/build.make:76: CMakeFiles/stl_logging_unittest.dir/src/stl_logging_unittest.cc.o] Error 1make[1]: *** [CMakeFiles/Makefile2:997: CMakeFiles/stl_logging_unittest.dir/all] Error 2/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In member function ‘virtual void TestWaitingLogSink::send(google::LogSeverity, const char*, const char*, int, const LogMessageTime&, const char*, size_t)’:/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:1159:30: error: no matching function for call to ‘TestWaitingLogSink::ToString(google::LogSeverity&, const char*&, int&, const LogMessageTime&, const char*&, size_t&)’ 1159 | writer_.Buffer(ToString(severity, base_filename, line, | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1160 | logmsgtime, message, message_len)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~In file included from /root/workspace/docker_env/glog/src/utilities.h:59, from /root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:32:/thirdparty/include/glog/logging.h:1752:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t, google::int32)’ 1752 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1752:22: note: candidate expects 7 arguments, 6 provided/thirdparty/include/glog/logging.h:1758:22: note: candidate: ‘static std::string google::LogSink::ToString(google::LogSeverity, const char*, int, const tm*, const char*, size_t)’ 1758 | static std::string ToString(LogSeverity severity, const char* file, int line, | ^~~~~~~~/thirdparty/include/glog/logging.h:1759:50: note: no known conversion for argument 4 from ‘const LogMessageTime’ to ‘const tm*’ 1759 | const struct ::tm* tm_time, | ~~~~~~~~~~~~~~~~~~~^~~~~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc: In function ‘void TestLogSinkWaitTillSent()’:/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:1178:24: error: cannot declare variable ‘sink’ to be of abstract type ‘TestWaitingLogSink’ 1178 | { TestWaitingLogSink sink; | ^~~~/root/workspace/docker_env/glog/src/logging_custom_prefix_unittest.cc:1136:7: note: because the following virtual functions are pure within ‘TestWaitingLogSink’: 1136 | class TestWaitingLogSink : public LogSink {
The text was updated successfully, but these errors were encountered:
It looks like you have another version of glog installed under /thirdparty/ whose headers take precedence over local ones:
In file included from /thirdparty/include/glog/logging.h:589,
from /root/workspace/docker_env/glog/src/utilities.h:59,
Could please try changing every occurrence of <glog/header.h> to "glog/header.h" and see if this fixes the issue for you? You can run sed to update the includes as follows:
I use cmake 3.23, gcc 11.2.1, gtest 1.11 on centos 7.x.
I compile like
mkdir bld; cd bld; cmake ..; make -j12 install
, but I get errors as follows.The text was updated successfully, but these errors were encountered: