Forums - SNPE UDO fatal error: 'pthread.h' file not found

3 posts / 0 new
Last post
SNPE UDO fatal error: 'pthread.h' file not found
yuepx1027
Join Date: 21 Nov 16
Posts: 4
Posted: Sat, 2022-11-19 05:40

Hi Qualcomm,

When I compiled UDO according to SNPE documents I met the compiling error below.

I've tried many methods and could you help provide some suggestions?

Here is the error I met.

~/snpe-sdk/models/inception_v3/SoftmaxUdoPackage$ make dsp_android
/home/user/workspace/user/Android/android-ndk-r21e/ndk-build APP_MODULES="UdoSoftmaxUdoPackageReg" APP_ALLOW_MISSING_DEPS=true APP_ABI="arm64-v8a armeabi-v7a"
make[1]: Entering directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage'
/home/user/workspace/user/Android/android-ndk-r21e/build/core/build-binary.mk:651: Android NDK: Module UdoSoftmaxUdoPackageImplGpu depends on undefined modules: OpenCL    
/home/user/workspace/user/Android/android-ndk-r21e/build/core/build-binary.mk:651: Android NDK: Module UdoSoftmaxUdoPackageImplGpu depends on undefined modules: OpenCL    
make[1]: Leaving directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage'
make[1]: Entering directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage'
[arm64-v8a] Install        : libUdoSoftmaxUdoPackageReg.so => libs/arm64-v8a/libUdoSoftmaxUdoPackageReg.so
[arm64-v8a] Install        : libc++_shared.so => libs/arm64-v8a/libc++_shared.so
[armeabi-v7a] Install        : libUdoSoftmaxUdoPackageReg.so => libs/armeabi-v7a/libUdoSoftmaxUdoPackageReg.so
[armeabi-v7a] Install        : libc++_shared.so => libs/armeabi-v7a/libc++_shared.so
make[1]: Leaving directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage'
make -C jni/src/DSP_V68 dsp
make[1]: Entering directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage/jni/src/DSP_V68'
==== Using Hexagon Tools at /local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/tools/HEXAGON_Tools/8.5.08 ====
==== Build output directory: /home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage/jni/src/DSP_V68/hexagon_Release_toolv85_v68/ship ====
making .
In file included from SoftmaxImplLibDsp.cpp:5:
In file included from /home/user/workspace/Framework/QNN/qnn-v1.19.0.221017083229_38444/include/HTP/core/optimize.h:17:
In file included from /home/user/workspace/Framework/QNN/qnn-v1.19.0.221017083229_38444/include/HTP/core/op_def.h:13:
In file included from /local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/bin/../target/hexagon/include/c++/v1/functional:504:
In file included from /local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/bin/../target/hexagon/include/c++/v1/memory:681:
In file included from /local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/bin/../target/hexagon/include/c++/v1/atomic:571:
/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/bin/../target/hexagon/include/c++/v1/__threading_support:27:11: fatal error: 'pthread.h' file not found
# include <pthread.h>
          ^~~~~~~~~~~
1 error generated.
make[2]: *** [hexagon_Release_toolv85_v68/SoftmaxImplLibDsp.o] Error 1
ERROR making .
make[2]: Entering directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage/jni/src/DSP_V68'
==== Using Hexagon Tools at /local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/tools/HEXAGON_Tools/8.5.08 ====
==== Build output directory: /home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage/jni/src/DSP_V68/hexagon_Release_toolv85_v68/ship ====
/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/bin/hexagon-clang++  -mv68 -c -G0  -O2 -Wall -Werror -Wstrict-prototypes -fno-exceptions -fno-strict-aliasing -fno-zero-initialized-in-bss -fdata-sections  -fpic -D__V_DYNAMIC__ -mhvx -mhvx-length=128B -std=c++17 -fvisibility=default -stdlib=libc++ -fexceptions -MMD -DTHIS_PKG_NAME=SoftmaxUdoPackage -I/home/user/workspace/Framework/QNN/qnn-v1.19.0.221017083229_38444/include -I/home/user/workspace/Framework/QNN/qnn-v1.19.0.221017083229_38444/include/HTP -I/home/user/workspace/Framework/QNN/qnn-v1.19.0.221017083229_38444/include/HTP/core -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/rtos/qurt/computev68/include/qurt -mhvx -mhvx-length=128B -mhmx -DUSE_OS_QURT -std=c++03 -DQNN_API="__attribute__((visibility(\"default\")))"  -D__QAIC_HEADER_EXPORT="__attribute__((visibility(\"default\")))"           -D__FILENAME__=\"SoftmaxImplLibDsp.cpp\"  -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/incs -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/incs/stddef -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/ipc/fastrpc/incs -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/ipc/fastrpc/remote/ship/hexagon_Release_toolv85_v68 -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/incs/qnx -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/libs/common/qnx/ship/hexagon_Release_toolv85_v68 -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/utils/examples -I/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/ipc/fastrpc/rtld/ship/hexagon_toolv85_v68 -I/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage/obj/local/dsp_v68  -o hexagon_Release_toolv85_v68/SoftmaxImplLibDsp.o SoftmaxImplLibDsp.cpp
/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/build/make.d/rules.min:706: recipe for target 'hexagon_Release_toolv85_v68/SoftmaxImplLibDsp.o' failed
make[2]: Leaving directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage/jni/src/DSP_V68'
/local/mnt/workspace/Qualcomm/Hexagon_SDK/4.5.0.3/build/defines.min:145: recipe for target 'tree' failed
make[1]: *** [tree] Error 1
make[1]: Leaving directory '/home/user/workspace/Framework/SNPE/snpe-1.61.0.3358/models/inception_v3/SoftmaxUdoPackage/jni/src/DSP_V68'
Makefile:71: recipe for target 'dsp_android' failed
make: *** [dsp_android] Error 2

Thanks

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 133
Posted: Sun, 2022-11-20 04:11

Dear customer,

What's Hexagon SDK version you used? We suspect this issue was caused by the incorrect Hexagon SDK. It's recommending to test with the latest SDK version which is 5.1.0.0.

 

BR.
Wei

  • Up0
  • Down0
sanjjey.a.sanjjey
Join Date: 17 May 22
Posts: 19
Posted: Tue, 2022-11-29 01:17

Hi,

Please check the below mentioned link. I hope it may help you.

https://developer.qualcomm.com/comment/18645

Thanks.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.