avs-device-sdk icon indicating copy to clipboard operation
avs-device-sdk copied to clipboard

Build failure and startsample.sh not found

Open dakshsriv opened this issue 2 years ago • 5 comments

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

Briefly summarize your issue:

I want to run the Alexa software on my Raspberry Pi 3B, however the build fails to complete and the startsample.sh is not being created.

What is the expected behavior?

I expect the build to successfully be completed, along with providing the startsample.sh file so I can authenticate and run the software.

What behavior are you observing?

I am seeing the following error: [ 95%] Building CXX object ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/DefaultClientComponent.cpp.o c++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[3]: *** [ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/build.make:108: ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/DefaultClientComponent.cpp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/Makefile2:16699: ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:16539: SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2 make: *** [Makefile:4211: SampleApp] Error 2 pi@raspberrypi:~/Alexa $ ls avs-device-sdk build config.json db genConfig.sh pi.sh setup.sh sounds third-party

Provide the steps to reproduce the issue, if applicable:

To reproduce, you follow the steps outlined in https://developer.amazon.com/alexa/console/avs/products/RaspberryPiAlexa/details/securityprofile until the moment when the build command sudo bash setup.sh config.json [-s 123456] is run.

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <1.26.0>

Tell us what hardware you're using:

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

Tell us about your OS (Type & version):

  • [ ] Linux
  • [ ] MacOS
  • [ ] Raspbian Stretch
  • [ ] Raspbian Jessy
  • [ x] Other - tell us more: Raspbian Bullseye

dakshsriv avatar May 23 '22 18:05 dakshsriv

Hello @dakshsriv

It is possible that your Raspberry Pi has run out of memory during the installation process, or that it was overwhelmed with a multi-threaded compilation.

Could you please try the two following in our Troubleshooting guide:

blazusiak-amazon avatar May 30 '22 16:05 blazusiak-amazon

I tried your fixes, but now my program hangs: [ 84%] Linking CXX executable DiscoveryEventSenderTest [ 84%] Built target DiscoveryEventSenderTest Scanning dependencies of target CapabilitiesDelegateTest [ 84%] Building CXX object CapabilitiesDelegate/test/CMakeFiles/CapabilitiesDelegateTest.dir/CapabilitiesDelegateTest.cpp.o [ 84%] Linking CXX executable CapabilitiesDelegateTest [ 84%] Built target CapabilitiesDelegateTest Scanning dependencies of target PostConnectCapabilitiesPublisherTest [ 84%] Building CXX object CapabilitiesDelegate/test/CMakeFiles/PostConnectCapabilitiesPublisherTest.dir/PostConnectCapabilitiesPublisherTest.cpp.o Also, it hangs at random places in each build. The RAM or the swap is hardly full at that time. The only thing I've found is the build process is somehow deleted when the code hangs.

dakshsriv avatar Jun 04 '22 00:06 dakshsriv

Hello @dakshsriv, Could you please try building on the latest version of the SDK (3.0) and let us know if you are still experiencing issues building on the latest Raspbian OS.

blazusiak-amazon avatar Nov 14 '22 01:11 blazusiak-amazon

Same here... Building on a Raspberry Pi 3b, the process fails on the 95% of compilation: `/home/elton/alexa/sdk-source/avs-device-sdk/ThirdParty/rapidjson/rapidjson-1.1.0/include/rapidjson/document.h:578:7: note: ‘class rapidjson::GenericValue<rapidjson::UTF8<> >’ declared here 578 | class GenericValue { | ^~~~~~~~~~~~ [ 95%] Linking CXX shared library libAVSSystem.so [ 95%] Built target AVSSystem Scanning dependencies of target acsdkDefaultDeviceSettingsManager [ 95%] Building CXX object applications/acsdkDefaultDeviceSettingsManager/src/CMakeFiles/acsdkDefaultDeviceSettingsManager.dir/DeviceSettingsManagerComponent.cpp.o [ 95%] Building CXX object applications/acsdkDefaultDeviceSettingsManager/src/CMakeFiles/acsdkDefaultDeviceSettingsManager.dir/DeviceSettingsManagerBuilder.cpp.o [ 95%] Linking CXX shared library libacsdkDefaultDeviceSettingsManager.so [ 95%] Built target acsdkDefaultDeviceSettingsManager Scanning dependencies of target DefaultClient [ 95%] Building CXX object ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/ConnectionRetryTrigger.cpp.o [ 95%] Building CXX object ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/DefaultClient.cpp.o [ 95%] Building CXX object ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/DefaultClientBuilder.cpp.o [ 95%] Building CXX object ApplicationUtilities/DefaultClient/src/CMakeFiles/DefaultClient.dir/DefaultClientComponent.cpp.o

`

I notice that the issue could be related with memory. The Pi starts to be very slow and on HTOP command, I can see that the memor is full:

Mem 880M/922M Swap 100.0M/100.0M

eltonk avatar Nov 22 '22 13:11 eltonk

Hola, me pasa algo parecido. He realizado todos los pasos que aparecen aquí. https://developer.amazon.com/es-ES/docs/alexa/avs-device-sdk-1-2x/raspberry-pi-script.html Ha finalizado todo el proceso sin errores, pero cuando realizó el último paso. Ejecute el startsample.shscript. sudo bash startsample.sh

Me salta este error en la consola. pi@raspberrypi:~ $ sudo bash startsample.sh startsample.sh: línea 1: cd: /home/pi/build/SampleApplications/ConsoleSampleApplication/src: No existe el fichero o el directorio startsample.sh: línea 3: ./SampleApp: No existe el fichero o el directorio

Utilizo el sistema RaspberryPi Buster (Legacy) ya que con el Bullseye siempre me saltaba errores al Ejecute el setup.shscript usando su config.json.

orisbel23 avatar Dec 13 '22 14:12 orisbel23