AymenSekhri / CyanOS

Coding an operating system to keep my sanity during the quarantine.
MIT License
67 stars 8 forks source link

and some new error for make time #18

Closed 0x7ffffff closed 1 year ago

0x7ffffff commented 1 year ago

~/Documents/CyanOS$ make [ 1%] Creating directories for 'test' [ 2%] No download step for 'test' [ 3%] No update step for 'test' [ 4%] No patch step for 'test' [ 5%] Performing configure step for 'test' -- The C compiler identification is GNU 11.3.0 -- The CXX compiler identification is GNU 11.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - 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: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at googletest/CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Found PythonInterp: /usr/bin/python3.10 (found version "3.10.6") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /home/alpha0x7f/Documents/CyanOS/test/src/test-build [ 6%] Performing build step for 'test' [ 3%] Building CXX object googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o In file included from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h:40, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/gtest.h:62, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-all.cc:38: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-port.h: In function ‘char testing::internal::posix::StrDup(const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-port.h:2029:47: error: ‘strdup’ was not declared in this scope; did you mean ‘StrDup’? 2029 | inline char StrDup(const char src) { return strdup(src); } | ^~ | StrDup /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-port.h: In function ‘const char testing::internal::posix::StrError(int)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-port.h:2083:50: error: ‘strerror’ was not declared in this scope; did you mean ‘StrError’? 2083 | inline const char StrError(int errnum) { return strerror(errnum); } | ^~~~ | StrError In file included from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h:68, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/gtest.h:62, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-all.cc:38: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-type-util.h: In function ‘std::string testing::internal::CanonicalizeForStdLibVersioning(std::string)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-type-util.h:57:20: error: ‘strlen’ was not declared in this scope 57 | if (s.compare(0, strlen(prefix), prefix) == 0) { | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-type-util.h:44:1: note: ‘strlen’ is defined in header ‘’; did you forget to ‘#include ’? 43 | # include +++ |+#include 44 | # elif defined(__HP_aCC) In file included from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/gtest.h:62, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-all.cc:38: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h: In function ‘const char testing::internal::SkipComma(const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h:643:23: error: ‘strchr’ was not declared in this scope 643 | const char comma = strchr(str, ','); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h:69:1: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? 68 | #include "gtest/internal/gtest-type-util.h" +++ |+#include 69 | /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h: In function ‘std::string testing::internal::GetPrefixUntilComma(const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h:654:23: error: ‘strchr’ was not declared in this scope 654 | const char comma = strchr(str, ','); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/internal/gtest-internal.h:654:23: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? In file included from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:38, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-all.cc:41: /home/alpha0x7f/Documents/CyanOS/test/../src/libraries/stdlib/math.h: At global scope: /home/alpha0x7f/Documents/CyanOS/test/../src/libraries/stdlib/math.h:4:8: error: ambiguating new declaration of ‘size_t abs(int)’ 4 | size_t abs(int num); | ^~~ In file included from /usr/include/c++/11/cstdlib:75, from /usr/include/c++/11/bits/stl_algo.h:59, from /usr/include/c++/11/string:52, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/bits/unique_ptr.h:42, from /usr/include/c++/11/memory:76, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/include/gtest/gtest.h:57, from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-all.cc:38: /usr/include/stdlib.h:848:12: note: old declaration ‘int abs(int)’ 848 | extern int abs (int x) THROW attribute ((const)) __wur; | ^~~ In file included from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-all.cc:41: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In function ‘bool testing::GetDefaultFailFast()’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:221:12: error: ‘strcmp’ was not declared in this scope 221 | return strcmp(testbridge_test_runner_fail_fast, "1") == 0; | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:126:1: note: ‘strcmp’ is defined in header ‘’; did you forget to ‘#include ’? 125 | #include "src/gtest-internal-inl.h" +++ |+#include 126 | /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In static member function ‘static std::string testing::internal::UnitTestOptions::GetOutputFormat()’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:617:29: error: ‘strchr’ was not declared in this scope 617 | const char const colon = strchr(gtest_output_flag, ':'); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:617:29: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In static member function ‘static std::string testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile()’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:633:29: error: ‘strchr’ was not declared in this scope 633 | const char const colon = strchr(gtest_output_flag, ':'); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:633:29: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In static member function ‘static bool testing::internal::UnitTestOptions::MatchesFilter(const string&, const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:687:19: error: ‘strchr’ was not declared in this scope 687 | cur_pattern = strchr(cur_pattern, ':'); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:687:19: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In static member function ‘static bool testing::internal::UnitTestOptions::FilterMatchesTest(const string&, const string&)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:708:28: error: ‘strchr’ was not declared in this scope 708 | const char const dash = strchr(p, '-'); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:708:28: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In function ‘testing::AssertionResult testing::internal::HasOneFailure(const char, const char, const char, const testing::TestPartResultArray&, testing::TestPartResult::Type, const string&)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:856:7: error: ‘strstr’ was not declared in this scope 856 | if (strstr(r.message(), substr.c_str()) == nullptr) { | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:856:7: note: ‘strstr’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In static member function ‘static bool testing::internal::String::CStringEquals(const char, const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:1095:10: error: ‘strcmp’ was not declared in this scope 1095 | return strcmp(lhs, rhs) == 0; | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:1095:10: note: ‘strcmp’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In function ‘testing::AssertionResult testing::internal::DoubleNearPredFormat(const char, const char, const char, double, double, double)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:1555:23: error: ‘fabs’ was not declared in this scope; did you mean ‘labs’? 1555 | const double diff = fabs(val1 - val2); | ^~~~ | labs /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In function ‘bool testing::{anonymous}::IsSubstringPred(const char, const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:1745:10: error: ‘strstr’ was not declared in this scope 1745 | return strstr(haystack, needle) != nullptr; | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:1745:10: note: ‘strstr’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In static member function ‘static void testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection(std::ostream, const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4119:38: error: ‘strstr’ was not declared in this scope 4119 | const char const next_segment = strstr(segment, "]]>"); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4119:38: note: ‘strstr’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4124:32: error: ‘strlen’ was not declared in this scope 4124 | segment = next_segment + strlen("]]>"); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4124:32: note: ‘strlen’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In static member function ‘static std::string testing::internal::StreamingListener::UrlEncode(const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4750:18: error: ‘strlen’ was not declared in this scope 4750 | result.reserve(strlen(str) + 1); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4750:18: note: ‘strlen’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In member function ‘void testing::internal::StreamingListener::SocketWriter::MakeConnection()’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4772:3: error: ‘memset’ was not declared in this scope 4772 | memset(&hints, 0, sizeof(hints)); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:4772:3: note: ‘memset’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In member function ‘bool testing::internal::TestSuiteNameIs::operator()(const testing::TestSuite) const’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:5554:12: error: ‘strcmp’ was not declared in this scope 5554 | strcmp(testsuite->name(), name.c_str()) == 0; | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:5554:12: note: ‘strcmp’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In function ‘bool testing::internal::SkipPrefix(const char*, const char*)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6121:29: error: ‘strlen’ was not declared in this scope 6121 | const size_t prefix_len = strlen(prefix); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6121:29: note: ‘strlen’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6122:7: error: ‘strncmp’ was not declared in this scope 6122 | if (strncmp(pstr, prefix, prefix_len) == 0) { | ^~~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6122:7: note: ‘strncmp’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In function ‘const char testing::internal::ParseFlagValue(const char, const char, bool)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6142:7: error: ‘strncmp’ was not declared in this scope 6142 | if (strncmp(str, flag_str.c_str(), flag_len) != 0) return nullptr; | ^~~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6142:7: note: ‘strncmp’ is defined in header ‘’; did you forget to ‘#include ’? /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc: In function ‘void testing::internal::PrintColorEncoded(const char)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6248:21: error: ‘strchr’ was not declared in this scope 6248 | const char p = strchr(str, '@'); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest.cc:6248:21: note: ‘strchr’ is defined in header ‘’; did you forget to ‘#include ’? In file included from /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-all.cc:42: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-death-test.cc: In function ‘pid_t testing::internal::ExecDeathTestSpawnChild(char const*, int)’: /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-death-test.cc:1360:3: error: ‘memset’ was not declared in this scope 1360 | memset(&ignore_sigprof_action, 0, sizeof(ignore_sigprof_action)); | ^~ /home/alpha0x7f/Documents/CyanOS/test/googletest/googletest/src/gtest-death-test.cc:49:1: note: ‘memset’ is defined in header ‘’; did you forget to ‘#include ’? 48 | # include +++ |+#include 49 |