This is a cache of https://discuss.96boards.org/t/avs-device-sdk-build-error/4521. It is a snapshot of the page at 2024-10-31T08:09:05.572+0000.
Avs-device-sdk build error - DragonBoard410c - 96Boards Forum

Avs-device-sdk build error

I try avs-device-sdk on DragonBoard 410c. but build error occurred.
OS version: dragonboard-410c-sdcard-installer-buster-359-18.01

Error log is here.

[ 53%] Built target KWD
[ 53%] Building CXX object CapabilityAgents/AIP/src/CMakeFiles/AIP.dir/ESPData.cpp.o
Scanning dependencies of target AudioResources
[ 55%] Building CXX object ApplicationUtilities/Resources/Audio/src/CMakeFiles/AudioResources.dir/AlertsAudioFactory.cpp.o
[ 55%] Building CXX object ApplicationUtilities/Resources/Audio/src/CMakeFiles/AudioResources.dir/AudioFactory.cpp.o
[ 55%] Building CXX object ApplicationUtilities/Resources/Audio/src/CMakeFiles/AudioResources.dir/NotificationsAudioFactory.cpp.o
[ 57%] Linking CXX shared library libAudioResources.so
[ 57%] Built target AudioResources
Scanning dependencies of target AudioPlayer
[ 59%] Building CXX object CapabilityAgents/AudioPlayer/src/CMakeFiles/AudioPlayer.dir/AudioPlayer.cpp.o
[ 59%] Linking CXX shared library libAIP.so
[ 59%] Built target AIP
Scanning dependencies of target ExternalMediaPlayer
[ 61%] Building CXX object CapabilityAgents/ExternalMediaPlayer/src/CMakeFiles/ExternalMediaPlayer.dir/ExternalMediaPlayer.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
CapabilityAgents/AudioPlayer/src/CMakeFiles/AudioPlayer.dir/build.make:62: recipe for target ‘CapabilityAgents/AudioPlayer/src/CMakeFiles/AudioPlayer.dir/AudioPlayer.cpp.o’ failed
make[3]: *** [CapabilityAgents/AudioPlayer/src/CMakeFiles/AudioPlayer.dir/AudioPlayer.cpp.o] Error 4
CMakeFiles/Makefile2:5524: recipe for target ‘CapabilityAgents/AudioPlayer/src/CMakeFiles/AudioPlayer.dir/all’ failed
make[2]: *** [CapabilityAgents/AudioPlayer/src/CMakeFiles/AudioPlayer.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs…
[ 61%] Linking CXX shared library libExternalMediaPlayer.so
[ 61%] Built target ExternalMediaPlayer
CMakeFiles/Makefile2:8100: recipe for target ‘SampleApp/src/CMakeFiles/SampleApp.dir/rule’ failed
make[1]: *** [SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2
Makefile:2086: recipe for target ‘SampleApp’ failed
make: *** [SampleApp] Error 2

Who can help me?

Not sure :wink:

I had a quick look at this and could not reproduce the behaviour you observed. It didn’t build because it failed to link the SampleApp but there were no compiler crashes (and the failure is a bug in the avs-device-sdk build system… it does not support using pkg-config for portaudio so it gets the link arguments wrong).

I’m using one of the buster-359 builds although mine installed to eMMC rather than SD card. Is there anything in the dmesg log to suggest the kernel isn’t handling the SD card correctly for some reason?