[Wien] Compile problems

Pio Bättig baettigp at gmx.net
Tue Oct 21 04:09:02 CEST 2003


Dear Wien users

I am trying to compile Wien2k 03, 14.10.2003, on a Pentium4 using
IFC 7.1 and the MKL 6.1.
I am using the following options:

      O   Compiler options:        -FR -mp -w
      L   Linker Flags:            -L../SRC_lib -L/opt/intel/mkl61/lib/32 -Vaxlib -static
      P   Preprocessor flags       '-DParallel'
      R   R_LIB (LAPACK+BLAS):     -lmkl_lapack -lmkl_ia32 -lguide -lpthread

and get a lot of errors (most probably always the same, referring
to 'pthread_mutex_unlock', here a relevant bit from SRC_lapw7/compile.msg:

...
ifc -o ./lapw7 moduls.o lapw7.o  main.o   latgen.o rotdef.o locdef.o orth.o   grdgen.o spcgen.o findmt.o auggen.o augpw.o  auglo.o  wavsph.o wavint.o
  trans.o  bessel.o gbass.o  outwin.o rint13.o ylm.o    sphbes.o dvbes1.o  -L../SRC_lib -L/opt/intel/mkl61/lib/32 -Vaxlib -static -lmkl_lapack -lmkl_i
a32 -lguide -lpthread
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(fstop.o): In function `libi_exit':
fstop.o(.text+0xaa): undefined reference to `pthread_self'
fstop.o(.text+0xb6): undefined reference to `pthread_equal'
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(threadsafe.o): In function `f_claim_mutex':
threadsafe.o(.text+0x23): undefined reference to `pthread_mutex_lock'
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(threadsafe.o): In function `f_exitthread':
threadsafe.o(.text+0x33): undefined reference to `pthread_exit'
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(threadsafe.o): In function `f_release_mutex':
threadsafe.o(.text+0x53): undefined reference to `pthread_mutex_unlock'
/opt/intel/compiler70/ia32/lib/libIEPCF90.a(f90init.o): In function `f90_init':
f90init.o(.text+0x1b): undefined reference to `pthread_self'
/opt/intel/compiler70/ia32/lib/libcxa.a(exception.o): In function `std::set_unexpected(void (*)())':
exception.o(.text+0x7d): undefined reference to `pthread_mutex_lock'
exception.o(.text+0x95): undefined reference to `pthread_mutex_unlock'
/opt/intel/compiler70/ia32/lib/libcxa.a(exception.o): In function `std::set_terminate(void (*)())':
exception.o(.text+0x107): undefined reference to `pthread_mutex_lock'
exception.o(.text+0x11f): undefined reference to `pthread_mutex_unlock'
/opt/intel/compiler70/ia32/lib/libcxa.a(newhandler.o): In function `std::set_new_handler(void (*)())':
newhandler.o(.text+0xd): undefined reference to `pthread_mutex_lock'
newhandler.o(.text+0x25): undefined reference to `pthread_mutex_unlock'
/opt/intel/compiler70/ia32/lib/libunwind.a(ptn_ix86.o): In function `_eh_get_lock':
ptn_ix86.o(.text+0x2f): undefined reference to `pthread_mutex_lock'
/opt/intel/compiler70/ia32/lib/libunwind.a(ptn_ix86.o): In function `.B1.2':
ptn_ix86.o(.text+0x42): undefined reference to `pthread_mutex_lock'
/opt/intel/compiler70/ia32/lib/libunwind.a(ptn_ix86.o): In function `_eh_release_lock':
ptn_ix86.o(.text+0x63): undefined reference to `pthread_mutex_unlock'
/opt/intel/compiler70/ia32/lib/libunwind.a(ptn_ix86.o): In function `.B2.2':
ptn_ix86.o(.text+0x76): undefined reference to `pthread_mutex_unlock'
make[1]: *** [lapw7] Error 1
make[1]: Leaving directory `/people/pchome/baettig/wien2k_03/SRC_lapw7'
make: *** [real] Error 2
...

I get the errors in the following files, the corresponding
executables are not compiled:

[~/wien2k_03]$ grep -i error */compile.msg
SRC_afminput/compile.msg:make: *** [afminput] Error 1
SRC_aim/compile.msg:make[1]: *** [aim] Error 1
SRC_aim/compile.msg:make: *** [real] Error 2
SRC_aim/compile.msg:make[1]: *** [aimc] Error 1
SRC_aim/compile.msg:make: *** [complex] Error 2
SRC_balsac-utils/compile.msg:make: [clean] Error 1 (ignored)
SRC_balsac-utils/compile.msg:make: *** [../outnn2plt] Error 1
SRC_cif2struct/compile.msg:make: *** [cif2struct] Error 1
SRC_clmcopy/compile.msg:make: *** [clmcopy] Error 1
SRC_dstart/compile.msg:make: *** [dstart] Error 1
SRC_elast/compile.msg:make: [clean] Error 1 (ignored)
SRC_elast/compile.msg:make: *** [../genetempl] Error 1
SRC_eosfit/compile.msg:make: [clean] Error 1 (ignored)
SRC_eosfit/compile.msg:make: *** [eosfit] Error 1
SRC_filtvec/compile.msg:make[1]: *** [filtvec] Error 1
SRC_filtvec/compile.msg:make: *** [real] Error 2
SRC_filtvec/compile.msg:make[1]: *** [filtvecc] Error 1
SRC_filtvec/compile.msg:make: *** [complex] Error 2
SRC_fsgen/compile.msg:make: [clean] Error 1 (ignored)
SRC_fsgen/compile.msg:make: *** [../bcc_fs_mesh] Error 1
SRC_initelnes/compile.msg:make: *** [initelnes] Error 1
SRC_initxspec/compile.msg:make: *** [initxspec] Error 1
SRC_irrep/compile.msg:make: *** [irrep] Error 1
SRC_joint/compile.msg:make: *** [joint] Error 1
SRC_kgen/compile.msg:make: *** [kgen] Error 1
SRC_kram/compile.msg:make: *** [kram] Error 1
SRC_lapw0/compile.msg:make[1]: *** [lapw0] Error 1
SRC_lapw0/compile.msg:make: *** [seq] Error 2
SRC_lapw3/compile.msg:make[1]: *** [lapw3] Error 1
SRC_lapw3/compile.msg:make: *** [real] Error 2
SRC_lapw3/compile.msg:make[1]: *** [lapw3c] Error 1
SRC_lapw3/compile.msg:make: *** [complex] Error 2
SRC_lapw5/compile.msg:make[1]: *** [lapw5] Error 1
SRC_lapw5/compile.msg:make: *** [real] Error 2
SRC_lapw5/compile.msg:make[1]: *** [lapw5c] Error 1
SRC_lapw5/compile.msg:make: *** [complex] Error 2
SRC_lapw7/compile.msg:make[1]: *** [lapw7] Error 1
SRC_lapw7/compile.msg:make: *** [real] Error 2
SRC_lapw7/compile.msg:make[1]: *** [lapw7c] Error 1
SRC_lapw7/compile.msg:make: *** [complex] Error 2
SRC_lcore/compile.msg:make: *** [lcore] Error 1
SRC_lorentz/compile.msg:make: *** [lorentz] Error 1
SRC_lstart/compile.msg:make: *** [lstart] Error 1
SRC_mini/compile.msg:make: *** [mini] Error 1
SRC_mixer/compile.msg:make: *** [mixer] Error 1
SRC_nn/compile.msg:make: *** [nn] Error 1
SRC_optic/compile.msg:make[1]: *** [optic] Error 1
SRC_optic/compile.msg:make: *** [real] Error 2
SRC_optic/compile.msg:make[1]: *** [opticc] Error 1
SRC_optic/compile.msg:make: *** [complex] Error 2
SRC_optimize/compile.msg:make: [clean] Error 1 (ignored)
SRC_optimize/compile.msg:make: *** [optimize] Error 1
SRC_orb/compile.msg:make: *** [orb] Error 1
SRC_phonon/compile.msg:make: [clean] Error 1 (ignored)
SRC_phonon/compile.msg:make: *** [../phonon2wien2k_sym] Error 1
SRC_spacegroup/compile.msg:make: *** [spacegroup] Error 1
SRC_spaghetti/compile.msg:make: *** [spaghetti] Error 1
SRC_sumpara/compile.msg:make: *** [sumpara] Error 1
SRC_supercell/compile.msg:make: *** [supercell] Error 1
SRC_symmetry/compile.msg:make: *** [symmetry] Error 1
SRC_symmetso/compile.msg:make: *** [symmetso] Error 1
SRC_telnes/compile.msg:make: *** [telnes] Error 1
SRC_tetra/compile.msg:make: *** [tetra] Error 1
SRC_trig/compile.msg:make: [clean] Error 1 (ignored)
SRC_trig/compile.msg:make: *** [../rhomb_in5] Error 1
SRC_txspec/compile.msg:make: *** [txspec] Error 1

Is this maybe related to some changes from MKL 6.0 to 6.1 or am I
overlooking something?

Thank you very much in advance for your help

Best Regards,

Pio Baettig

P.S. What compiler-options can one set to optimize the performance
without losing accuracy on the P4-architecture?





More information about the Wien mailing list