@shyney7
What’s your operating system? ubuntu? centos?
Did you installed libc  and  libc6-dev? if so can you upgrade glibc?
From your latest error, that is caused by missing libs, please check the document of your operating system see how to install them. If you are on the system above, try install libc and libc6-dev and upgrade them.
Thanks for filing an issue with us, I will assign that issue to proper people to take a look at, but again we are not QNX people, if you can show your error to a QNX engineer, they might give you a quicker answer, the reason is that libtorch is built using standard libraries while QNX is built using extensions, these errors to me is caused by QNX env.