Details
-
Bug
-
Resolution: Done
-
Medium
-
None
-
meta-ivi pull request #63 which updates the master branch HEAD commit 928f16f to use v7.6 of the AM components.
Locally tested in a build for the R-Car M3 Starter Kit. The same error was found when the Genivi CI built the PR for the offficial baseline QEMU x86 MACHINE.
Rather than build the complete baseline you can ask bitbake to do just the audio manager configure task:
bitbake -c configure audiomanager
meta-ivi pull request #63 which updates the master branch HEAD commit 928f16f to use v7.6 of the AM components. Locally tested in a build for the R-Car M3 Starter Kit. The same error was found when the Genivi CI built the PR for the offficial baseline QEMU x86 MACHINE. Rather than build the complete baseline you can ask bitbake to do just the audio manager configure task: bitbake -c configure audiomanager
Description
Build Error
Building the Genivi 13 Yocto Baseline with AM v7.6 results in the following build error in the do_configure task:
CMakeFiles/cmTC_88181.dir/CheckSymbolExists.c.o: In function `main':
/usr/src/debug/audiomanager/7.6-r0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: undefined reference to `pthread_create'
/usr/src/debug/audiomanager/7.6-r0/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
The related configure output is:
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
The build tree from the failed yocto build is attached.
Status
This issue is a blocker for the integration of AM 7.6 into the Yocto Baseline.
Initial investigation
I can resolve this issue by adding pthreads to the CFLAGS in the AM Yocto recipe like this:
OECMAKE_C_FLAGS += "-pthread"
That feels like a workaround only though so I would like input from the component maintainers. Wouldn't you expect the component makefile to set the required flags?
Attachments
Issue Links
- blocks
-
BASE-57 Update meta-ivi to use Audio Manager 7.6
- Done