LAPACK and ZGBSV problems

Our platform is Centos 4 (RHES 4 rebuild) on Xeon 32bit using PGI 5.2.
mpif77 is mapped to pgf90.

I have a user who is getting the following error:

[user@univac ~/kolmed]$ mpif77 funk.f90 kolmed.f90 -o kolmed -llapack
funk.f90:
kolmed.f90:
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0xf38): In function
zgbtrf_': : undefined reference to izamax_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x106b): In function
zgbtrf_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x1106): In function
zgbtrf_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x1186): In function
zgbtrf_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x126e): In function
zgbtrf_': : undefined reference to zscal_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x134d): In function
zgbtrf_': : undefined reference to zgeru_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x13e8): In function
zgbtrf_': : undefined reference to zcopy_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x187e): In function
zgbtrf_': : undefined reference to ztrsm_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x196f): In function
zgbtrf_': : undefined reference to zgemm_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x1a5d): In function
zgbtrf_': : undefined reference to zgemm_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x1e7e): In function
zgbtrf_': : undefined reference to ztrsm_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x1f5e): In function
zgbtrf_': : undefined reference to zgemm_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x201d): In function
zgbtrf_': : undefined reference to zgemm_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x25b9): In function
zgbtrf_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x2631): In function
zgbtrf_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrf.o)(.text+0x26aa): In function
zgbtrf_': : undefined reference to zcopy_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x330): In function
zgbtrs_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x397): In function
zgbtrs_': : undefined reference to zgeru_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x46b): In function
zgbtrs_': : undefined reference to ztbsv_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x577): In function
zgbtrs_': : undefined reference to ztbsv_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x699): In function
zgbtrs_': : undefined reference to zgemv_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x6e4): In function
zgbtrs_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x7be): In function
zgbtrs_': : undefined reference to ztbsv_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x909): In function
zgbtrs_': : undefined reference to zgemv_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtrs.o)(.text+0x97d): In function
zgbtrs_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zlaswp.o)(.text+0xf2): In function
zlaswp_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zlaswp.o)(.text+0x196): In function
zlaswp_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zlaswp.o)(.text+0x246): In function
zlaswp_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtf2.o)(.text+0x867): In function
zgbtf2_': : undefined reference to izamax_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtf2.o)(.text+0x946): In function
zgbtf2_': : undefined reference to zswap_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtf2.o)(.text+0xa1d): In function
zgbtf2_': : undefined reference to zscal_’
/usr/pgi/linux86/5.2/lib/liblapack.a(zgbtf2.o)(.text+0xac2): In function
zgbtf2_': : undefined reference to zgeru_’


Any pointers on figuring this out?

-geoff

Hi Galitz,

The user is needs to include the BLAS library, (-lblas).

  • Mat