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,
You can try to configure with
You can try to configure with -D_XOPEN_SOURCE=700