Forums - UDO compilation with qnx toolchain

1 post / 0 new
UDO compilation with qnx toolchain
imama.ali
Join Date: 17 Aug 20
Posts: 1
Posted: Mon, 2020-09-14 21:08

UDO compilation with qnx7 toolchain fails with following message:

 

/home/dcml/qnx710/host/linux/x86_64/usr/bin/aarch64-unknown-nto-qnx7.1.0-g++ -std=c++11 -fPIC -march=armv8.4-a -I /home/dcml/workspace/snpe_venv/models/inception_v3/SoftmaxUdoPackage/include -I /home/dcml/workspace/snpe_venv/include/zdl -c SoftmaxUdoPackageImplLibCpu.cpp -o ../../../obj/local/armv8-a_qnx/SoftmaxUdoPackageImplLibCpu.o
In file included from /home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__mutex_base:17,
                 from /home/dcml/qnx710/target/qnx7/usr/include/c++/v1/mutex:191,
                 from /home/dcml/workspace/snpe_venv/models/inception_v3/SoftmaxUdoPackage/include/utils/UdoUtil.hpp:13,
                 from SoftmaxUdoPackageImplLibCpu.cpp:4:
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support: In function 'int std::__1::__libcpp_recursive_mutex_init(std::__1::__libcpp_recursive_mutex_t*)':
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support:216:43: error: 'PTHREAD_MUTEX_RECURSIVE' was not declared in this scope
   __ec = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
                                           ^~~~~~~~~~~~~~~~~~~~~~~
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support:216:43: note: suggested alternative: 'PTHREAD_MUTEX_ROBUST'
   __ec = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                           PTHREAD_MUTEX_ROBUST
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support:216:10: error: 'pthread_mutexattr_settype' was not declared in this scope
   __ec = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
          ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support:216:10: note: suggested alternative: 'pthread_mutexattr_destroy'
   __ec = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
          ^~~~~~~~~~~~~~~~~~~~~~~~~
          pthread_mutexattr_destroy
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support: In function 'int std::__1::__libcpp_condvar_timedwait(std::__1::__libcpp_condvar_t*, std::__1::__libcpp_mutex_t*, timespec*)':
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support:293:10: error: 'pthread_cond_timedwait' was not declared in this scope
   return pthread_cond_timedwait(__cv, __m, __ts);
          ^~~~~~~~~~~~~~~~~~~~~~
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support:293:10: note: suggested alternative: 'pthread_cond_wait'
   return pthread_cond_timedwait(__cv, __m, __ts);
          ^~~~~~~~~~~~~~~~~~~~~~
          pthread_cond_wait
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support: In function 'void std::__1::__libcpp_thread_sleep_for(const nanoseconds&)':
/home/dcml/qnx710/target/qnx7/usr/include/c++/v1/__threading_support:375:11: error: 'nanosleep' was not declared in this scope
    while (nanosleep(&__ts, &__ts) == -1 && errno == EINTR);
           ^~~~~~~~~
../../../common.mk:73: recipe for target '../../../obj/local/armv8-a_qnx/Softmax
 
Did someone else experince similar error message?
Thanks,
 
  • Up0
  • Down0

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.