[CPMD-list] Help on Compiling PC-PGI-MPI(again)

anucha yangthaisong a.yangthaisong at physics.org
Tue Aug 14 16:15:43 CEST 2007


Dear all,


I have a problem on compiling the parallel PC-PGI-MPI. Everything seems to
go well when I type "make". Anyway, I got just two errors like :


***********************************************************************

/opt/mpich/ch-p4/lib64//libmpich.a(farg.o): In function `mpir_iargc_':
(.text+0x9): undefined reference to `_gfortran_iargc'
/opt/mpich/ch-p4/lib64//libmpich.a(farg.o): In function `mpir_getarg_':
(.text+0x34): undefined reference to `_gfortran_getarg_i4'
make: *** [cpmd.x] Error 2

**********************************************************************

I would be grateful for any help/advice. By the way,  some part of  Makefile
used is as follows.

#------------------------------------------------------------------------------------------------------------
#Makefile for cpmd.x (plane wave electronic calculation)
# Configuration: PGI-AMD64-MPI
# Creation of Makefile: Jul 18 2007
# on Linux kankrao 2.6.16.13-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006 x86_64
x86_64 x86_64 GNU/Linux
# Author: yanucha
#----------------------------------------------------------------------------
#
SHELL = /bin/sh
#
#--------------- Default Configuration for PGI-AMD64-MPI ---------------
#checking for Fortran libraries of pgf77...
-L/programs/pgi/linux86-64/6.1/lib -L/usr/lib64
 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.0/ -lpgftnrtl -lnspgc -lpgc -lm

SRC  = .
DEST = .
BIN  = .
FFLAGS = -r8 -pc=64  -I/opt/mpich/include \
LFLAGS =   -L/usr/lib64 -lg2c -lm\
         -L/programs/pgi/linux86-64/6.1/lib  -lacml -lpgc -lnspgc
-lpgftnrtl\
         -L/opt/mpich/ch-p4/lib64/ -lmpich
CFLAGS =
CPP = /lib/cpp -P -C -traditional
CPPFLAGS = -D__Linux -D__PGI -DFFT_DEFAULT -DPOINTER8 -D__GNU -D__pgf90 \
               -DPARALLEL -DMYRINET
NOOPT_FLAG =
#
#CC = mpicc -O2 -Wall -m64
#FC = mpif90 -c -fastsse -tp k8-64
#LD = mpif90 -fastsse -tp k8-64
#AR = ar
#
CC = pgcc -O -Wall -m64
FC = pgf90 -c -fastsse -tp k8-64
LD = pgf90 -fastsse -tp k8-64
AR = ar
#
#----------------------------------------------------------------------------
# Personal Configuration
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# End of Personal Configuration
#----------------------------------------------------------------------------
CFGDEST = .
CFGMACH = PGI-AMD64-MPI



---------------------------------------------------------------------------------

Dr Anucha Yangthaisong
Department of Physics,
Ubonrajathanee University,
THAILAND 34190.

--------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cpmd.org/pipermail/cpmd-list/attachments/20070814/2c24cb51/attachment.html 


More information about the CPMD-list mailing list