Shared libraries building support in PGF 2011


Looks like during shared library compilation an issue is encountered on PGI libraries site:

/usr/bin/ld: /opt/pgi/linux86-64/11.1/lib/libpgbind.a(bindsa.o): relocation R_X86_64_PC32 against `syscall@@GLIBC_2.2.5’ can not be used when making a shared object; recompile with -fPIC

Does it mean it’s not possible to create a shared library with pgf90? Maybe there is a workaround?


  • D.

Hi D,

Maybe there is a workaround?

Add “-nomp” to the link. This will remove the libbind.a library. Also, you can move to the 11.3 release where we removed libpgbind and moved it’s functionality to another library.

Hope this helps,

It works now with -nomp, thank you for helpful suggestion, Mat!