[Wien] WIEN2k_11 compilation problem with static libraries

2011-12-09 Thread Nilton
Dear Marks and Fecher,
thank very much for the clues. It works.
Nilton

2011/12/8 Gerhard Fecher 

> 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]" im Auftrag von
> "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_

[Wien] WIEN2k_11 compilation problem with static libraries

2011-12-08 Thread Gerhard Fecher
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]" im Auftrag von "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/in

[Wien] WIEN2k_11 compilation problem with static libraries

2011-12-08 Thread Nilton
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.

[Wien] WIEN2k_11 compilation problem with static libraries

2011-12-08 Thread Laurence Marks
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 :
> 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):
>