[Wien] Compile problems

Michael Ryan Hansen mrh at chem.au.dk
Tue Oct 21 13:08:46 CEST 2003


Hi Pio,

I have recently compiled the wien code with ifc7.1/mkl5.1 and I had
similar error codes when including -static in the Linker options. If I
excluded -static the source code compiles nicely. Maybe this could be
the case here?

Best regards

Michael

---
Michael Ryan Hansen
MSc, PhD stud.
Department of Chemistry
University of Aarhus 
Langelandsgade 140
8000 Aarhus C, Denmark

Office: +045 89 42 38 71
Home:   +045 28 78 56 54
email: mrh at chem.au.dk


On (20/10/03 19:09), Pio Bättig wrote:

> 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
> ...



More information about the Wien mailing list