Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in testing (googletest) #41

Closed
ghost opened this issue Feb 18, 2023 · 1 comment
Closed

Error in testing (googletest) #41

ghost opened this issue Feb 18, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 18, 2023

...
[ 72%] Building CXX object source/tests/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
In file included from /opt/Development/libs/cppfs/source/tests/googletest/googletest/src/gtest-all.cc:42:
/opt/Development/libs/cppfs/source/tests/googletest/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
/opt/Development/libs/cppfs/source/tests/googletest/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
 1301 |   StackLowerThanAddress(&dummy, &result);
...

i've got this error in both of my linux devices [Arch/Debian].
The way I used to get around the problem was to stop all tests by typing cmake .. -DOPTION_BUILD_TESTS=OFF, and I was able to build and install the library

@scheibel
Copy link
Member

scheibel commented Mar 5, 2023

Thanks for reporting.
We're experiencing recurring problems with our in-source googletest module.
I updated the cppfs repository to reflect our more robust use of an external googletest installation.

@ghost ghost closed this as completed Mar 13, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant