Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When building an application why do I get an error message “relocation R_X86_64_32S can not be used when making a shared object, recompile with -fPIC”?

0
Posted

When building an application why do I get an error message “relocation R_X86_64_32S can not be used when making a shared object, recompile with -fPIC”?

0

Your application is trying to create a shared library. Shared libraries are not supported on HECToR compute nodes. You should find a way to build your application without shared libraries. If you have a configure script, check for the existence of a “–disable-shared” flag and use it if it’s there. If you have a Makefile, check the targets for references to “shared” objects and remove them. Always remember to use the compiler scripts ftn, cc, CC for code that will execute on the compute nodes. The native compilers gfortran, pgf90 etc will generate code for the login node, NOT the compute node.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123