[Wien] WIEN2k_11 compilation problem with static libraries

Nilton nilton at ufba.br
Fri Dec 9 14:20:21 CET 2011


Dear Marks and Fecher,
thank very much for the clues. It works.
Nilton

2011/12/8 Gerhard Fecher <fecher at uni-mainz.de>

> probably you need the -L..... also in the line with R_Libs
> or did you set up LD to find where the MKL libraries are ?
>
>
> Ciao
> Gerhard
>
> DEEP THOUGHT in D. Adams; Hitchhikers Guide to the Galaxy:
> "I think the problem, to be quite honest with you,
> is that you have never actually known what the question is."
>
> ====================================
> Dr. Gerhard H. Fecher
> Institut of Inorganic and Analytical Chemistry
> Johannes Gutenberg - University
> 55099 Mainz
> ________________________________________
> Von: wien-bounces at zeus.theochem.tuwien.ac.at [
> wien-bounces at zeus.theochem.tuwien.ac.at]&quot; im Auftrag von
> &quot;Nilton [nilton at ufba.br]
> Gesendet: Donnerstag, 8. Dezember 2011 18:14
> An: A Mailing list for WIEN2k users
> Betreff: [Wien] WIEN2k_11 compilation problem with static libraries
>
> 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<http://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
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20111209/136d0394/attachment.htm>


More information about the Wien mailing list