Dear Marks and Fecher,<br>thank very much for the clues. It works.<br>Nilton<br><br><div class="gmail_quote">2011/12/8 Gerhard Fecher <span dir="ltr"><<a href="mailto:fecher@uni-mainz.de">fecher@uni-mainz.de</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">probably you need the -L..... also in the line with R_Libs<br>
or did you set up LD to find where the MKL libraries are ?<br>
<br>
<br>
Ciao<br>
Gerhard<br>
<br>
DEEP THOUGHT in D. Adams; Hitchhikers Guide to the Galaxy:<br>
"I think the problem, to be quite honest with you,<br>
is that you have never actually known what the question is."<br>
<br>
====================================<br>
Dr. Gerhard H. Fecher<br>
Institut of Inorganic and Analytical Chemistry<br>
Johannes Gutenberg - University<br>
55099 Mainz<br>
________________________________________<br>
Von: <a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at">wien-bounces@zeus.theochem.tuwien.ac.at</a> [<a href="mailto:wien-bounces@zeus.theochem.tuwien.ac.at">wien-bounces@zeus.theochem.tuwien.ac.at</a>]&quot; im Auftrag von &quot;Nilton [<a href="mailto:nilton@ufba.br">nilton@ufba.br</a>]<br>
Gesendet: Donnerstag, 8. Dezember 2011 18:14<br>
An: A Mailing list for WIEN2k users<br>
Betreff: [Wien] WIEN2k_11 compilation problem with static libraries<br>
<div class="im"><br>
Dear wien2k users,<br>
<br>
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?<br>
thanks in advance<br>
Nilton<br>
<br>
Se below the specifications of my Makefile. I have use that suggested by siteconfig script.<br>
<br>
<br>
--------------------------//-----------------------------//---------------------------------------------------------<br>
FC = ifort<br>
MPF = mpif90<br>
CC = cc<br>
FOPT = -FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback<br>
FPOPT = -FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML -traceback<br>
DParallel = '-DParallel'<br>
FGEN = $(PARALLEL)<br>
LDFLAGS = $(FOPT) -L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -static -pthread<br>
R_LIBS = -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread<br>
------------------------//--------------------------//------------------------------//-----------------------///-------------<br>
My system is:<br>
<br>
</div>Linux <a href="http://bodesking.uefs.br" target="_blank">bodesking.uefs.br</a><<a href="http://bodesking.uefs.br" target="_blank">http://bodesking.uefs.br</a>> 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<br>
<div class="HOEnZb"><div class="h5">gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)<br>
<br>
Intel® Fortran Composer XE 2011 - Linux* OS whit MKL 10.3<br>
OS Centos 5.4<br>
processor : 3<br>
vendor_id : GenuineIntel<br>
cpu family : 6<br>
model : 30<br>
model name : Intel(R) Xeon(R) CPU X3430 @ 2.40GHz<br>
stepping : 5<br>
cpu MHz : 2395.000<br>
cache size : 8192 KB<br>
physical id : 0<br>
siblings : 4<br>
core id : 3<br>
cpu cores : 4<br>
apicid : 6<br>
fpu : yes<br>
fpu_exception : yes<br>
cpuid level : 11<br>
wp : yes<br>
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<br>
bogomips : 4799.97<br>
clflush size : 64<br>
cache_alignment : 64<br>
address sizes : 36 bits physical, 48 bits virtual<br>
power management: [8]<br>
<br>
--------------------------------//----------------------------//---------------------------------------<br>
<br>
See the errors from make. A lot of undefined references.<br>
<br>
__tmp_zunmtr.f:(.text+0x5a0): undefined reference to `mkl_lapack_zunmql'<br>
__tmp_zunmtr.f:(.text+0x678): undefined reference to `mkl_lapack_zunmqr'<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zsteqr.o): In function `mkl_lapack_zsteqr':<br>
__tmp_zsteqr.f:(.text+0xcbd): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_zsteqr.f:(.text+0x1239): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_zsteqr.f:(.text+0x1e32): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_zsteqr.f:(.text+0x1fdd): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_zsteqr.f:(.text+0x2b99): undefined reference to `mkl_lapack_dlasr3'<br>
/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<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zlarft.o): In function `mkl_lapack_zlarft':<br>
__tmp_zlarft.f:(.text+0xc91): undefined reference to `mkl_blas_ztrmm'<br>
__tmp_zlarft.f:(.text+0x2084): undefined reference to `mkl_blas_ztrmm'<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(zlarfb.o): In function `mkl_lapack_zlarfb':<br>
__tmp_zlarfb.f:(.text+0x289): undefined reference to `mkl_blas_ztrmm'<br>
__tmp_zlarfb.f:(.text+0x3c5): undefined reference to `mkl_blas_ztrmm'<br>
__tmp_zlarfb.f:(.text+0x505): undefined reference to `mkl_blas_ztrmm'<br>
/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<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dsytrf.o): In function `mkl_lapack_dsytrf':<br>
__tmp_dsytrf.f:(.text+0x412): undefined reference to `mkl_lapack_dlasyf'<br>
__tmp_dsytrf.f:(.text+0x68a): undefined reference to `mkl_lapack_dlasyf'<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dsteqr.o): In function `mkl_lapack_dsteqr':<br>
__tmp_dsteqr.f:(.text+0xc9e): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_dsteqr.f:(.text+0x1211): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_dsteqr.f:(.text+0x1e02): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_dsteqr.f:(.text+0x1fa7): undefined reference to `mkl_lapack_dlasr3'<br>
__tmp_dsteqr.f:(.text+0x2b70): undefined reference to `mkl_lapack_dlasr3'<br>
/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<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dsbrdb.o): In function `mkl_lapack_dsbrdb':<br>
__tmp_dsbrdb.f:(.text+0x1c78): undefined reference to `mkl_lapack_dlaeh2'<br>
__tmp_dsbrdb.f:(.text+0x2f17): undefined reference to `mkl_lapack_dlaeh2'<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(dormtr.o): In function `mkl_lapack_dormtr':<br>
__tmp_dormtr.f:(.text+0x58f): undefined reference to `mkl_lapack_dormql'<br>
__tmp_dormtr.f:(.text+0x66b): undefined reference to `mkl_lapack_dormqr'<br>
/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':<br>
../../../../lapack_ps/kernel/def/32e/dpotrf_u_small.f:(.text+0xa3): undefined reference to `mkl_blas_ddot'<br>
/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':<br>
../../../../lapack_ps/kernel/def/32e/dpotrf_l_small.f:(.text+0xad): undefined reference to `mkl_blas_ddot'<br>
/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':<br>
../../../../lapack_ps/kernel/p4n/32e/dpotrf_u_small.f:(.text+0xa2): undefined reference to `mkl_blas_ddot'<br>
/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':<br>
../../../../lapack_ps/kernel/p4n/32e/dpotrf_l_small.f:(.text+0xac): undefined reference to `mkl_blas_ddot'<br>
/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':<br>
../../../../lapack_ps/kernel/def/32e/dsytrf_u_small.f:(.text+0x898): undefined reference to `mkl_blas_dsyr'<br>
/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':<br>
../../../../lapack_ps/kernel/def/32e/dsytrf_l_small.f:(.text+0xa20): undefined reference to `mkl_blas_dsyr'<br>
/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':<br>
../../../../lapack_ps/kernel/p4n/32e/dsytrf_u_small.f:(.text+0x88a): undefined reference to `mkl_blas_dsyr'<br>
/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':<br>
../../../../lapack_ps/kernel/p4n/32e/dsytrf_l_small.f:(.text+0xa11): undefined reference to `mkl_blas_dsyr'<br>
/opt/intel/composerxe-2011.2.137/mkl/lib/intel64/libmkl_core.a(_p4n_zgerc.o): In function `mkl_blas_p4n_zgerc':<br>
../../../../blas/kernel/p4n/level2/32e/zgerc.f:(.text+0x3bb): undefined reference to `mkl_blas_zaxpy'<br>
../../../../blas/kernel/p4n/level2/32e/zgerc.f:(.text+0x446): undefined reference to `mkl_blas_zaxpy'<br>
../../../../blas/kernel/p4n/level2/32e/zgerc.f:(.text+0x517): undefined reference to `mkl_blas_zaxpy'<br>
<br>
<br>
--<br>
Nilton S. Dantas<br>
Universidade Estadual de Feira de Santana<br>
Departamento de Ciências Exatas<br>
Área de Informática<br>
Av. Transnordestina, S/N, Bairro Novo Horizonte<br>
CEP 44036900 - Feira de Santana, Bahia, Brazil<br>
Tel./Fax +55 75 32248086<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Nilton S. Dantas<br>Universidade Estadual de Feira de Santana<br>Departamento de Ciências Exatas<br>Área de Informática<br>Av. Transnordestina, S/N, Bairro Novo Horizonte<br>
CEP 44036900 - Feira de Santana, Bahia, Brazil<br>Tel./Fax +55 75 32248086<br>