[Wien] Undefined references

Michael Gurnett michael.gurnett at kau.se
Mon Apr 3 17:58:28 CEST 2006


What compile options are you using?

On Mon, 2006-04-03 at 18:20 +0800, Huiqun Zhou wrote:
> Dear list-users,
> 
> I've been working on compilation of Wien2k_06 last two days, but got a lot 
> of undefined references.
> Below is the snippet of screen output of compilation of lapw1. The attached 
> file is the Makefile for
> SRC_lapw1 I'm currently using.
> 
> It seems that it failed to find the references to API functions of BLAS, 
> which in my case is Intel's
> libmkl_em64t.a. I failed to compile all programs that use MKL libraries, 
> such that lapw1, lapw2
> lapw7, lapwdm, lapwso, aim ......
> 
> I'm using IBM BladeCenter with 2 opteron 252, 4GB RAM, InfiniBand NIC for 
> each blade, 12
> in total. OS is RHEL3 and compilers are Intel C/C++ and Fortran 9.0-021 for 
> x86_64, MKL is
> 8.0-018. Blacs and Scalapack are my self-compiled with Intel compiler and 
> MKL. They should
> have no prolem as I use the two libraries with Siesta, another order-N DFT 
> program. Most interestingly,
> I compiled Siesta, which uses MKL, scalapack, too, in the same environment, 
> and succeeded after
> I changed to use libguide.a in Intel Fortran's installation folder. But I 
> have no luck in compiling
> Wien2k with same compilers, MKL, scalapack libraries, nearly the same 
> compile options, and
> whatever libguide.a or .so in Intel Fortran's or MKL's directory.
> 
> Could anyone give me a pointer what I did wrong? Thanks in advance.
> 
> ==========================
> Huiqun Zhou, Doctor of Science
> Earth Sciences
> Nanjing University
> 22 Hankou Road, Gulou
> Nanjing, 210093
> China
> 
> e-mail: hqzhou at nju.edu.cn
> Tel.: 86(25)8368-6750
> ==========================
> 
> ......
> IPO Error: unresolved : dger
>         Referenced in libmkl_lapack.a(dlarf.o)
> IPO Error: unresolved : dasum
>         Referenced in libmkl_lapack.a(dstein.o)
>         Referenced in libmkl_lapack.a(zstein.o)
> IPO Error: unresolved : ddot
>         Referenced in libmkl_lapack.a(dstein.o)
>         Referenced in libmkl_lapack.a(dlatrd.o)
>         Referenced in libmkl_lapack.a(dsytd2.o)
>         Referenced in libmkl_lapack.a(dpotf2.o)
> IPO Error: unresolved : daxpy
>         Referenced in libmkl_lapack.a(dstein.o)
>         Referenced in libmkl_lapack.a(dsygs2.o)
>         Referenced in libmkl_lapack.a(dlatrd.o)
>         Referenced in libmkl_lapack.a(dsytd2.o)
> IPO Error: unresolved : idamax
>         Referenced in libmkl_lapack.a(dstein.o)
>         Referenced in libmkl_lapack.a(zstein.o)
>         Referenced in libmkl_lapack.a(dormqr_omp.o)
>         Referenced in libmkl_lapack.a(dlarft.o)
>         Referenced in libmkl_lapack.a(dlarftb.o)
> IPO Error: unresolved : dtrmv
>         Referenced in libmkl_lapack.a(dsygs2.o)
>         Referenced in libmkl_lapack.a(dlarft.o)
>         Referenced in libmkl_lapack.a(dlarftb.o)
> IPO Error: unresolved : dsyr2
> ......
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0xa0a): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `izamax'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0xf93): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `zscal'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0x101c): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `ztrmv'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0x127d): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `izamax'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0x18fa): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `zscal'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0x19b5): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `ztrmv'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0x1c68): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `izamax'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0x2295): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `zscal'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarft.o)(.text+0x233f): In 
> function `mkl_lapack_zlarft':
> : undefined reference to `ztrmv'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zung2l.o)(.text+0x3a8): In 
> function `mkl_lapack_zung2l':
> : undefined reference to `zscal'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zung2r.o)(.text+0x421): In 
> function `mkl_lapack_zung2r':
> : undefined reference to `zscal'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarf.o)(.text+0x10a): In 
> function `mkl_lapack_zlarf':
> : undefined reference to `zgerc'
> /opt/intel/mkl/8.0/lib/em64t/libmkl_lapack.a(zlarf.o)(.text+0x1e7): In 
> function `mkl_lapack_zlarf':
> : undefined reference to `zgerc'
> /opt/intel/mkl/8.0/lib/em64t/libguide.so: undefined reference to 
> `pthread_atfork'
> make[1]: *** [lapw1] Error 1
> make[1]: Leaving directory `/home/geol/wien2k_06/SRC_lapw1'
> make: *** [real] Error 2
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien



More information about the Wien mailing list