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

complation error when performing make or sudo make install #77

Open
JustLutz opened this issue Mar 6, 2023 · 4 comments
Open

complation error when performing make or sudo make install #77

JustLutz opened this issue Mar 6, 2023 · 4 comments

Comments

@JustLutz
Copy link

JustLutz commented Mar 6, 2023

When I perform these command to get the thing working I get this error:


In file included from /home/vm/owl/googletest/googletest/src/gtest-all.cc:42:
/home/vm/owl/googletest/googletest/src/gtest-death-test.cc: In function 'bool testing::internal::StackGrowsDown()':
/home/vm/owl/googletest/googletest/src/gtest-death-test.cc:1301:24: error: 'dummy' may be used uninitialized [-Werror=maybe-uninitialized]
 1301 |   StackLowerThanAddress(&dummy, &result);
      |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/vm/owl/googletest/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type 'const void*' to 'void testing::internal::StackLowerThanAddress(const void*, bool*)' declared here
 1290 | static void StackLowerThanAddress(const void* ptr, bool* result) {
      |             ^~~~~~~~~~~~~~~~~~~~~
/home/vm/owl/googletest/googletest/src/gtest-death-test.cc:1299:7: note: 'dummy' declared here
 1299 |   int dummy;
      |       ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [googletest/googletest/CMakeFiles/gtest.dir/build.make:76: googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:322: googletest/googletest/CMakeFiles/gtest.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

@thedtvn
Copy link

thedtvn commented Mar 17, 2023

same

@guihi
Copy link

guihi commented Mar 18, 2023

My workarround:
In the file owl/googletest/googletest/src/gtest-death-test.cc I inserted the following as the new line 1301:
dummy = 0;
After this I was able to execute "make install" (only one warning left, but not considered as an error).

@oa01
Copy link

oa01 commented May 11, 2023

My workarround: In the file owl/googletest/googletest/src/gtest-death-test.cc I inserted the following as the new line 1301: dummy = 0; After this I was able to execute "make install" (only one warning left, but not considered as an error).

works for me.
For anyone wondering it should look like this:
image

@BenjaminMickler
Copy link

See #84 (comment)

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

5 participants