[Wien] WIEN2k_11 compilation problem with static libraries

Laurence Marks L-marks at northwestern.edu
Thu Dec 8 18:20:12 CET 2011


Go to http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/

It is more complicated that just using -static. (Just -i-static may be
enough, although check that this is the correct format for your
version.)

2011/12/8 Nilton <nilton at ufba.br>:
> Dear wien2k users,
>
> I tried to compile WIEN2k_11 on my rocks cluster whit static libraries but I
> got a lot of errors in lapw0, 1, and 2 and many others programs. If I use
> tha same Makefile without the key -static the compilation is ok. Any body
> could helo me?
> thanks in advance
> Nilton
>
> Se below the specifications of my Makefile. I have use that suggested by
> siteconfig script.
>
>
> --------------------------//-----------------------------//---------------------------------------------------------
> FC = ifort
> MPF = mpif90
> CC = cc
> FOPT =  -FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback
> FPOPT = -FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback
> DParallel = '-DParallel'
> FGEN = $(PARALLEL)
> LDFLAGS = $(FOPT) -L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -static -pthread
> R_LIBS = -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core
> -openmp -lpthread
> ------------------------//--------------------------//------------------------------//-----------------------///-------------
> My system is:
>
> Linux bodesking.uefs.br 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT
> 2011 x86_64 x86_64 x86_64 GNU/Linux
> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
>
> Intel® Fortran Composer XE 2011 - Linux* OS whit MKL 10.3
> OS Centos 5.4
> processor       : 3
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 30
> model name      : Intel(R) Xeon(R) CPU           X3430  @ 2.40GHz
> stepping        : 5
> cpu MHz         : 2395.000
> cache size      : 8192 KB
> physical id     : 0
> siblings        : 4
> core id         : 3
> cpu cores       : 4
> apicid          : 6
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 11
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp
> lm constant_tsc ida nonstop_tsc pni monitor ds_cpl vmx smx est tm2 ssse3
> cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
> bogomips        : 4799.97
> clflush size    : 64
> cache_alignment : 64
> address sizes   : 36 bits physical, 48 bits virtual
> power management: [8]
>
> --------------------------------//----------------------------//---------------------------------------
>
>  See the errors from make. A lot of undefined references.
>
> __tmp_zunmtr.f:(.text+0x5a0): undefined reference to `mkl_lapack_zunmql'
> __tmp_zunmtr.f:(.text+0x678): undefined reference to `mkl_lapack_zunmqr'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zsteqr.o): In
> function `mkl_lapack_zsteqr':
> __tmp_zsteqr.f:(.text+0xcbd): undefined reference to `mkl_lapack_dlasr3'
> __tmp_zsteqr.f:(.text+0x1239): undefined reference to `mkl_lapack_dlasr3'
> __tmp_zsteqr.f:(.text+0x1e32): undefined reference to `mkl_lapack_dlasr3'
> __tmp_zsteqr.f:(.text+0x1fdd): undefined reference to `mkl_lapack_dlasr3'
> __tmp_zsteqr.f:(.text+0x2b99): undefined reference to `mkl_lapack_dlasr3'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zsteqr.o):__tmp_zsteqr.f:(.text+0x2ddc):
> more undefined references to `mkl_lapack_dlasr3' follow
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zlarft.o): In
> function `mkl_lapack_zlarft':
> __tmp_zlarft.f:(.text+0xc91): undefined reference to `mkl_blas_ztrmm'
> __tmp_zlarft.f:(.text+0x2084): undefined reference to `mkl_blas_ztrmm'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zlarfb.o): In
> function `mkl_lapack_zlarfb':
> __tmp_zlarfb.f:(.text+0x289): undefined reference to `mkl_blas_ztrmm'
> __tmp_zlarfb.f:(.text+0x3c5): undefined reference to `mkl_blas_ztrmm'
> __tmp_zlarfb.f:(.text+0x505): undefined reference to `mkl_blas_ztrmm'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zlarfb.o):__tmp_zlarfb.f:(.text+0x715):
> more undefined references to `mkl_blas_ztrmm' follow
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dsytrf.o): In
> function `mkl_lapack_dsytrf':
> __tmp_dsytrf.f:(.text+0x412): undefined reference to `mkl_lapack_dlasyf'
> __tmp_dsytrf.f:(.text+0x68a): undefined reference to `mkl_lapack_dlasyf'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dsteqr.o): In
> function `mkl_lapack_dsteqr':
> __tmp_dsteqr.f:(.text+0xc9e): undefined reference to `mkl_lapack_dlasr3'
> __tmp_dsteqr.f:(.text+0x1211): undefined reference to `mkl_lapack_dlasr3'
> __tmp_dsteqr.f:(.text+0x1e02): undefined reference to `mkl_lapack_dlasr3'
> __tmp_dsteqr.f:(.text+0x1fa7): undefined reference to `mkl_lapack_dlasr3'
> __tmp_dsteqr.f:(.text+0x2b70): undefined reference to `mkl_lapack_dlasr3'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dsteqr.o):__tmp_dsteqr.f:(.text+0x2dad):
> more undefined references to `mkl_lapack_dlasr3' follow
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dsbrdb.o): In
> function `mkl_lapack_dsbrdb':
> __tmp_dsbrdb.f:(.text+0x1c78): undefined reference to `mkl_lapack_dlaeh2'
> __tmp_dsbrdb.f:(.text+0x2f17): undefined reference to `mkl_lapack_dlaeh2'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dormtr.o): In
> function `mkl_lapack_dormtr':
> __tmp_dormtr.f:(.text+0x58f): undefined reference to `mkl_lapack_dormql'
> __tmp_dormtr.f:(.text+0x66b): undefined reference to `mkl_lapack_dormqr'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_def_dpotrf_u_small.o):
> In function `mkl_lapack_ps_def_dpotrf_u_small':
> ../../../../lapack_ps/kernel/def/32e/dpotrf_u_small.f:(.text+0xa3):
> undefined reference to `mkl_blas_ddot'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_def_dpotrf_l_small.o):
> In function `mkl_lapack_ps_def_dpotrf_l_small':
> ../../../../lapack_ps/kernel/def/32e/dpotrf_l_small.f:(.text+0xad):
> undefined reference to `mkl_blas_ddot'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_p4n_dpotrf_u_small.o):
> In function `mkl_lapack_ps_p4n_dpotrf_u_small':
> ../../../../lapack_ps/kernel/p4n/32e/dpotrf_u_small.f:(.text+0xa2):
> undefined reference to `mkl_blas_ddot'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_p4n_dpotrf_l_small.o):
> In function `mkl_lapack_ps_p4n_dpotrf_l_small':
> ../../../../lapack_ps/kernel/p4n/32e/dpotrf_l_small.f:(.text+0xac):
> undefined reference to `mkl_blas_ddot'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_def_dsytrf_u_small.o):
> In function `mkl_lapack_ps_def_dsytrf_u_small':
> ../../../../lapack_ps/kernel/def/32e/dsytrf_u_small.f:(.text+0x898):
> undefined reference to `mkl_blas_dsyr'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_def_dsytrf_l_small.o):
> In function `mkl_lapack_ps_def_dsytrf_l_small':
> ../../../../lapack_ps/kernel/def/32e/dsytrf_l_small.f:(.text+0xa20):
> undefined reference to `mkl_blas_dsyr'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_p4n_dsytrf_u_small.o):
> In function `mkl_lapack_ps_p4n_dsytrf_u_small':
> ../../../../lapack_ps/kernel/p4n/32e/dsytrf_u_small.f:(.text+0x88a):
> undefined reference to `mkl_blas_dsyr'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_p4n_dsytrf_l_small.o):
> In function `mkl_lapack_ps_p4n_dsytrf_l_small':
> ../../../../lapack_ps/kernel/p4n/32e/dsytrf_l_small.f:(.text+0xa11):
> undefined reference to `mkl_blas_dsyr'
> /opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_p4n_zgerc.o):
> In function `mkl_blas_p4n_zgerc':
> ../../../../blas/kernel/p4n/level2/32e/zgerc.f:(.text+0x3bb): undefined
> reference to `mkl_blas_zaxpy'
> ../../../../blas/kernel/p4n/level2/32e/zgerc.f:(.text+0x446): undefined
> reference to `mkl_blas_zaxpy'
> ../../../../blas/kernel/p4n/level2/32e/zgerc.f:(.text+0x517): undefined
> reference to `mkl_blas_zaxpy'
>
>
> --
> Nilton S. Dantas
> Universidade Estadual de Feira de Santana
> Departamento de Ciências Exatas
> Área de Informática
> Av. Transnordestina, S/N, Bairro Novo Horizonte
> CEP 44036900 - Feira de Santana, Bahia, Brazil
> Tel./Fax +55 75 32248086
>
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
>



-- 
Professor Laurence Marks
Department of Materials Science and Engineering
Northwestern University
www.numis.northwestern.edu 1-847-491-3996
"Research is to see what everybody else has seen, and to think what
nobody else has thought"
Albert Szent-Gyorgi


More information about the Wien mailing list