Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

gtest error during sampleapp build #2084

Open
6 tasks
jacobjuneau6 opened this issue Apr 8, 2023 · 1 comment
Open
6 tasks

gtest error during sampleapp build #2084

jacobjuneau6 opened this issue Apr 8, 2023 · 1 comment

Comments

@jacobjuneau6
Copy link

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

I am following this guide and i get an error on <make -j2>.

What is the expected behavior?

<Scanning dependencies of target SampleApp
[ 98%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/ConsolePrinter.cpp.o
[ 98%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/ConsoleReader.cpp.o
[ 98%] Built target DoNotDisturbCapabilityAgentTest
[ 98%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/GuiRenderer.cpp.o
[ 99%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/InteractionManager.cpp.o
[ 99%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/KeywordObserver.cpp.o
[ 99%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/LocaleAssetsManager.cpp.o
[ 99%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/UIManager.cpp.o
[ 99%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/UserInputManager.cpp.o
[100%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/SampleApplication.cpp.o
[100%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/SampleEqualizerModeController.cpp.o
[100%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/main.cpp.o
[100%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/PortAudioMicrophoneWrapper.cpp.o
[100%] Linking CXX executable SampleApp
[100%] Built target SampleApp>

What behavior are you observing?

</usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
Consolidate compiler generated dependencies of target AVSCommon
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[ 10%] Built target AVSCommon
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
Consolidate compiler generated dependencies of target acsdkNotifier
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[ 10%] Built target acsdkNotifier
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
Consolidate compiler generated dependencies of target acsdkAPLCapabilityCommon
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[ 10%] Built target acsdkAPLCapabilityCommon
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
Consolidate compiler generated dependencies of target gmock_main
/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[ 10%] Building CXX object ThirdParty/googletest-release-1.8.0/googlemock/CMakeFiles/gmock_main.dir//googletest/src/gtest-all.cc.o
In file included from /home/ml-tf-m/sdk-folder/src/avs-device-sdk/ThirdParty/googletest-release-1.8.0/googletest/src/gtest-all.cc:43:
/home/ml-tf-m/sdk-folder/src/avs-device-sdk/ThirdParty/googletest-release-1.8.0/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’:
/home/ml-tf-m/sdk-folder/src/avs-device-sdk/ThirdParty/googletest-release-1.8.0/googletest/src/gtest-death-test.cc:1009:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized]
1009 | StackLowerThanAddress(&dummy, &result);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/ml-tf-m/sdk-folder/src/avs-device-sdk/ThirdParty/googletest-release-1.8.0/googletest/src/gtest-death-test.cc:999:6: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here
999 | void StackLowerThanAddress(const void* ptr, bool* result) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/ml-tf-m/sdk-folder/src/avs-device-sdk/ThirdParty/googletest-release-1.8.0/googletest/src/gtest-death-test.cc:1007:7: note: ‘dummy’ declared here
1007 | int dummy;
| ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [ThirdParty/googletest-release-1.8.0/googlemock/CMakeFiles/gmock_main.dir/build.make:76: ThirdParty/googletest-release-1.8.0/googlemock/CMakeFiles/gmock_main.dir/
/googletest/src/gtest-all.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:8239: ThirdParty/googletest-release-1.8.0/googlemock/CMakeFiles/gmock_main.dir/all] Error 2
make: *** [Makefile:146: all] Error 2>

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:

What version of the AVS Device SDK are you using?

  3.0.0

Tell us what hardware you're using:

  • [x ] Desktop / Laptop
  • Raspberry Pi
  • Other - tell us more:

Tell us about your OS (Type & version):

  • [ x] Linux: <ubuntu 22>
  • MacOS
  • Raspbian Stretch
  • Raspbian Jessy
  • Other - tell us more:
@restorerootfs
Copy link

I'm having the same issue on Raspberry Pi 5, Debian Bookworm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants