Uploaded image for project: 'Audio Manager Plugins'
  1. Audio Manager Plugins
  2. AMP-5

AM v7.6: configure failure - undefined reference to `pthread_create'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Medium
    • None

    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

        1. build-tree.tar.bz2
          54 kB
        2. CMakeError.log
          8 kB
        3. CMakeOutput.log
          112 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stephen.lawrence Stephen Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: