Skip to content

gtest does not build with rt-toolbox 2024.1 #10

@hefloryd

Description

@hefloryd
In file included from build/_deps/googletest-src/googletest/include/gtest/internal/gtest-port.h:416,
                 from build/_deps/googletest-src/googletest/include/gtest/gtest-message.h:57,
                 from build/_deps/googletest-src/googletest/include/gtest/gtest-assertion-result.h:46,
                 from build/_deps/googletest-src/googletest/include/gtest/gtest.h:64,
                 from build/_deps/googletest-src/googletest/src/gtest-all.cc:38:
/opt/rt-tools/compilers/arm-eabi/arm-eabi/include/regex.h:99:45: error: expected primary-expression before '__restrict'
   99 |                         size_t, regmatch_t [__restrict], int);
      |                                             ^~~~~~~~~~
/opt/rt-tools/compilers/arm-eabi/arm-eabi/include/regex.h:99:45: error: expected ']' before '__restrict'
   99 |                         size_t, regmatch_t [__restrict], int);
      |                                             ^~~~~~~~~~
      |                                             ]
/opt/rt-tools/compilers/arm-eabi/arm-eabi/include/regex.h:99:45: error: expected ')' before '__restrict'
   99 |                         size_t, regmatch_t [__restrict], int);
      |                                             ^~~~~~~~~~
      |                                             )
/opt/rt-tools/compilers/arm-eabi/arm-eabi/include/regex.h:98:16: note: to match this '('
   98 | int     regexec(const regex_t *__restrict, const char *__restrict,
      |                ^
/opt/rt-tools/compilers/arm-eabi/arm-eabi/include/regex.h:99:55: error: expected initializer before ']' token
   99 |                         size_t, regmatch_t [__restrict], int);
      |                                                       ^
In file included from build/_deps/googletest-src/googletest/src/gtest-all.cc:43:
build/_deps/googletest-src/googletest/src/gtest-filepath.cc: In static member function 'static testing::internal::FilePath testing::internal::FilePath::GetCurrentDir()':
build/_deps/googletest-src/googletest/src/gtest-filepath.cc:57:25: error: '_POSIX_PATH_MAX' was not declared in this scope
   57 | #define GTEST_PATH_MAX_ _POSIX_PATH_MAX
      |                         ^~~~~~~~~~~~~~~
build/_deps/googletest-src/googletest/src/gtest-filepath.cc:109:12: note: in expansion of macro 'GTEST_PATH_MAX_'
  109 |   char cwd[GTEST_PATH_MAX_ + 1] = {'\0'};
      |            ^~~~~~~~~~~~~~~
build/_deps/googletest-src/googletest/src/gtest-filepath.cc:110:25: error: 'cwd' was not declared in this scope
  110 |   char* result = getcwd(cwd, sizeof(cwd));
      |                         ^~~
In file included from build/_deps/googletest-src/googletest/src/gtest-all.cc:45:
build/_deps/googletest-src/googletest/src/gtest-port.cc: In static member function 'static bool testing::internal::RE::FullMatch(const char*, const testing::internal::RE&)':
build/_deps/googletest-src/googletest/src/gtest-port.cc:679:10: error: 'regexec' was not declared in this scope; did you mean 'regex_t'?
  679 |   return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
      |          ^~~~~~~
      |          regex_t
build/_deps/googletest-src/googletest/src/gtest-port.cc: In static member function 'static bool testing::internal::RE::PartialMatch(const char*, const testing::internal::RE&)':
build/_deps/googletest-src/googletest/src/gtest-port.cc:688:10: error: 'regexec' was not declared in this scope; did you mean 'regex_t'?
  688 |   return regexec(&re.partial_regex_, str, 1, &match, 0) == 0;
      |          ^~~~~~~
      |          regex_t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions