1 Reply Latest reply on Jan 22, 2015 3:30 AM by dipak

    OpenCL Samples Build Error

    lunning

      Hey,guys,here comes the problem:

      I rebuild the OpenCL samples in AMD APP SDK v2.9 as the referance document did, but an error encounted:


      /usr/bin/ld: CMakeFiles/BinomialOptionMultiGPU.dir/BinomialOptionMultiGPU.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'

      //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

      collect2: error: ld returned 1 exit status

      make[2]: *** [cl/BinomialOptionMultiGPU/bin/x86_64/Release/BinomialOptionMultiGPU] Error 1

      make[1]: *** [cl/BinomialOptionMultiGPU/CMakeFiles/BinomialOptionMultiGPU.dir/all] Error 2

      make: *** [all] Error 2

       

      My system:Ubuntu 14.04 LTS.

      gcc version:4.8.2

      glibc version:2.19

       

      Has anyone else has encounted this problem?How do you solve this..

        • Re: OpenCL Samples Build Error
          dipak

          Hi,

          As I came to know, there was an issue in the earlier APP SDK 2.9 but was fixed in 2.9.1. Cmake file did not contain flag for pthread which was fixed later. You may try the latest SDK or include the pthread flag manually to compile.

           

          Regards,