undefined reference to `__pgi_unified_version_selector71'

Hi,

I am trying to compile a few examples of acml using PGI 7.1 and I am getting above error. Here is the acml info:

ACML (AMD Core Math Library) version 4.0.1 (Wed Oct 10 15:47:41 BST 2007)
Copyright AMD,NAG 2007
Build system: Linux 2.6.16.46-0.10-smp x86_64
Built using Fortran compiler: pgf77 7.1-0e 64-bit target on x86-64 Linux
with flags: -Minform=warn -Mdclchk -Kpic -Mcache_align -Mreentrant -Mlarge_arrays -DIS_64BIT -tp=k8-64,barcelona-64 -O3 -fast -Mvect=sse -Mscalarsse
and C compiler: pgcc 7.1-0e 64-bit target on x86-64 Linux
with flags: -Minform=warn -Kpic -Mcache_align -Mreentrant -Mlarge_arrays -DIS_64BIT -tp=k8-64 -O3
FORTRAN STOP

AND ERROR IS:
Compiling program sgetrf_example.f:
pgf77 -c sgetrf_example.f -o sgetrf_example.o
Linking program sgetrf_example.exe:
pgf77 sgetrf_example.o /opt/acml/pgi64/lib/libacml.a -o sgetrf_example.exe
/opt/acml/pgi64/lib/libacml.a(sgetrf.o)(.text+0x2091): In function sgetrf_': : undefined reference to __pgi_unified_version_selector71’
/opt/acml/pgi64/lib/libacml.a(sgetrs.o)(.text+0x2a11): In function sgetrs_': : undefined reference to __pgi_unified_version_selector71’
/opt/acml/pgi64/lib/libacml.a(strsm.o)(.text+0xa81): In function strsm_': : undefined reference to __pgi_unified_version_selector71’
/opt/acml/pgi64/lib/libacml.a(strsmwrap.o)(.text+0xf41): In function strsmwrap_': : undefined reference to __pgi_unified_version_selector71’
/opt/acml/pgi64/lib/libacml.a(strsv.o)(.text+0x811): In function strsv_': : undefined reference to __pgi_unified_version_selector71’
/opt/acml/pgi64/lib/libacml.a(xerbla.o)(.text+0x851): more undefined references to `__pgi_unified_version_selector71’ follow
make: *** [sgetrf_example.res] Error 2

Hi YVJ,

The 4.0.1 version of ACML had issues. Please update your ACML version to 4.1 (found here:http://developer.amd.com/cpu/Libraries/acml/downloads/Pages/default.aspx) or use the ACML library that ships with your compilers.

  • Mat