On Fri, Sep 17, 2010, Anuradha Mittal wrote:
> > > mpicc -c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DBINTRAJ -DMPI -o
> > > wallclock.o wallclock.c
> > > wallclock.c(25): error: incomplete type is not allowed
> > > struct timezone tz;
> > > ^
>
> icc -g -O2 -D_XOPEN_SOURCE=600 -L/usr/local/ofed/lib64 -
> I/usr/local/packages/mvapich2/1.4/intel-11.1/include
> -L/usr/local/packages/mvapich2/1.4/intel-11.1/lib -lmpich -lpthread -lrdmacm
> -libverbs -libumad -lrt
My best guess is that mpicc is looking in
/usr/local/packages/mvapich2/1.4/intel-11.1/include to find <sys/time.h>, and
is not finding the proper declaration of the timezone structure; when you
compiled serially, you used icc (or gcc) and picked up the working header from
/usr/include (or some other place defined by the compiler.)
I don't have a good solution here, other than to use a different MPI, e.g.
openMPI or mpich2. If you are familiar enough with C, you could manually
insert the timezone struct into wallclock.c, but that *might* just lead to the
next error down the pipe.
....dac
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Sep 17 2010 - 09:30:09 PDT