[CPMD-list] IFC: "undefined reference"

Dr. Balasubramanian Sundaram bala at jncasr.ac.in
Wed Feb 25 12:31:52 CET 2004


Dear All,

    I have been having this trivial, yet nagging problem, and thought
I should seek help to preserve my sanity!

Details: CPMD 3.7.2, IFORT (IFC's new name): version 8.0, 
P4 at 3.0 GHz (with HT), Mandrake Linux 9.2 (kernel 2.4.22), with
Intel's MKL version 6.0, gcc, lam-mpi version 7.0.4

I compiled lam-mpi using ifort compiler, using "FFLAGS=-us" option
(i.e., equivalent of "-assume underscore"). lam-mpi compiled fine,
and I could compile and run their examples/pi/fpi code properly 
on two nodes.

I have problems at the link stage for CPMD. I provide at the end of this
mail, my Makefile. Here, I give the output of the command,

/home/bala/lam-7.0.4/tools/wrappers/mpif77 -showme

OUTPUT: 
ifort -I/usr/include -llammpio -llamf77mpi -lmpi -llam -lutil

All CPMD routines compile fine, but at the linker stage, I get the
error message,
=================
my_para.o(.text+0x6): In function `my_start_':
: undefined reference to `mpi_init_'
my_para.o(.text+0xbe5): In function `my_end_':
: undefined reference to `mpi_finalize_'
=================

I appreciate your help,

Thanks,

Regards,
Bala
-------------------------MAKEFILE HEADER--------------------------

FFLAGS = -c -r8 -w90 -w95 -O3 -pc64 -axM -ip -tpp7 -us

LFLAGS =  \
         -L/opt/intel/mkl60/lib/32 -lmkl_lapack \
         -lmkl_ia32 -lmkl_p4 -lguide \
         -static-libcxa -Xlinker -Bstatic -lsvml         \
	 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/libg2c.a  \
	 -Vaxlib -Xlinker -Bdynamic
CFLAGS = -c -O2 -Wall
CPP = /lib/cpp -P -C -traditional 

CPPFLAGS = -D__Linux -D__PGI -DLAPACK -DFFT_DEFAULT \
               -DMP_LIBRARY=__MPI -DMYRINET -DLINUX_IFC  
NOOPT_FLAG = 

CC = /home/bala/lam-7.0.4/tools/wrappers/mpicc
FC = /home/bala/lam-7.0.4/tools/wrappers/mpif77
LD = /home/bala/lam-7.0.4/tools/wrappers/mpif77
---------------------------------------------------------------------



More information about the CPMD-list mailing list